cvs: php-src(PHP_5_2) /ext/pdo/tests pdo_017.phpt
| From: | Hartmut Holzgraefe | Date: | Mon, 10 Jul 2006 16:29:50 +0000 |
| Subject: | cvs: php-src(PHP_5_2) /ext/pdo/tests pdo_017.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-39128@lists.php.net to get a copy of this message | ||
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.