|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2019-04-13 16:31 UTC] ch dot derenne at gmail dot com
Description: ------------ Autocommit is not working well with firebird : In fact : Create a selecatble stored procedure that juste insert a row in a table Connect to pdo firebird database Use autocommit : $db->setAttribute( PDO::ATTR_AUTOCOMMIT, 1 ); Call the stored procedure Close the connection Do a select of tha table : the row is not present !! Now insert a commit just before closing connection. Execute the script : the row is present !! Expected result: ---------------- The transaction should be commited Actual result: -------------- The transaction is not commited PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 19:00:02 2025 UTC |
The following script gives the desired results for me (PHP-7.4 with Firebird 3.0.7): <?php $pdo = new PDO("firebird:dbname=C:\\test.fdb", "sysdba", "masterkey", [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]); $pdo->exec("CREATE TABLE bug77888 (nam VARCHAR(50))"); $pdo->exec("CREATE PROCEDURE prc AS BEGIN INSERT INTO bug77888 VALUES ('foo'); END"); $pdo->exec("EXECUTE PROCEDURE prc"); $stmt = $pdo->query("SELECT nam FROM bug77888"); var_dump($stmt->fetchAll()); ?> If you still experience issues with any of the actively supported PHP versions[1], please provide a small self-contained reproducer, and/or further details of your system. [1] <https://www.php.net/supported-versions.php>