Fixed 'Prepared statement contains too many placeholders' error in bulk processing
authorMarcel Werk <burntime@woltlab.com>
Tue, 23 Jun 2020 10:03:01 +0000 (12:03 +0200)
committerMarcel Werk <burntime@woltlab.com>
Tue, 23 Jun 2020 10:03:01 +0000 (12:03 +0200)
wcfsetup/install/files/lib/acp/form/AbstractBulkProcessingForm.class.php

index 1eb79e0ec95e7468cbd3ea28ad27e022f47153aa..a6b92bcec5f7dd73bd3d7de7d303e0afc1997ad8 100644 (file)
@@ -164,6 +164,10 @@ abstract class AbstractBulkProcessingForm extends AbstractForm {
                                }
                        }
                }
+               
+               // Set a limit to avoid the 'Prepared statement contains too many placeholders' error
+               $this->objectList->sqlLimit = 65000;
+               
                $this->objectList->readObjects();
                
                // execute action