The second SQL statement below returns an error in phpMyAdmin:
SET @num=2000040; INSERT INTO artikel( artikel_nr, lieferant_nr, bezeichnung_1, bezeichnung_1 ) SE
This is expected behavior. Since there are two statements and the first one is valid, you have to use nextRowset()
try { $pdo_statement->execute(); while ($pdo_statement->nextRowset()) {/* https://bugs.php.net/bug.php?id=61613 */}; }
Source: bugs.php.net/bug.php?id=61613