note 81343 rejected from ref.pdo by betz

From: Date: Sat, 23 Feb 2008 11:43:20 +0000
Subject: note 81343 rejected from ref.pdo by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-136437@lists.php.net to get a copy of this message
Note Submitter: rene dot dettelbacher at gmail dot com ---- I encountered a strange problem while writing my unit tests for a database abstraction layer using PDO and transactions: $statement=$pdo->prepare('SELECT * FROM tablename'); //works $statement->execute(); $pdo->rollBack(); //error! $statement->execute(); From my point of view a prepared statement has nothing to do with transactions. Even if I rollback the statement should stay prepared. I did the same with the older extension for postgres and this worked! PHP 5.2.5 (Win) Postgre SQL 8.1

« previous php.notes (#136437) next »