hholzgra Mon Jul 10 16:29:50 2006 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/pdo/tests pdo_017.phpt
Log:
(MFH) "transaction" tests should test commit, too, not only rollback
http://cvs.php.net/viewvc.cgi/php-src/ext/pdo/tests/pdo_017.phpt?r1=1.6.2.3&r2=1.6.2.3.2.1&diff_format=u
Index: php-src/ext/pdo/tests/pdo_017.phpt
diff -u php-src/ext/pdo/tests/pdo_017.phpt:1.6.2.3
php-src/ext/pdo/tests/pdo_017.phpt:1.6.2.3.2.1
--- php-src/ext/pdo/tests/pdo_017.phpt:1.6.2.3 Mon Oct 3 15:06:27 2005
+++ php-src/ext/pdo/tests/pdo_017.phpt Mon Jul 10 16:29:50 2006
@@ -56,8 +56,17 @@
echo countRows('rollback');
+$db->beginTransaction();
+$delete->execute();
+echo countRows('delete');
+$db->commit();
+
+echo countRows('commit');
+
?>
--EXPECT--
Counted 3 rows after insert.
Counted 0 rows after delete.
Counted 3 rows after rollback.
+Counted 0 rows after delete.
+Counted 0 rows after commit.
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php