|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-09-26 11:14 UTC] indeyets at gmail dot com
Description: ------------ SQLite 3.0.8 and higher supports various transactions modes (DEFERRED, IMMEDIATE, EXCLUSIVE), but PDO's ->beginTransaction() doesn't take parameter, which would allow specifying this see: http://sqlite.org/lang_transaction.html Reproduce code: --------------- $dbh = new Pdo(); $dbh->beginTransaction(PDO_Sqlite::IMMEDIATE); // etc. $dbh->commit(); Expected result: ---------------- immediate transaction starts Actual result: -------------- error, because beginTransaction doesn't support modes PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 21:00:01 2025 UTC |
The beginTransaction() seems to only do deferred transactions. This situation is aggravated by the fact that one cannot do their own transactions using exec(). This will fail: $dbHandler->exec("BEGIN EXCLUSIVE TRANSACTION"); It would be great if at least that was possible.