summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHartmut Holzgraefe <hholzgra@php.net>2006-07-10 16:29:50 +0000
committerHartmut Holzgraefe <hholzgra@php.net>2006-07-10 16:29:50 +0000
commitc1b67d83cc85202c305cf2899a576066461beabf (patch)
treec8d442d522faae80ffd374910e67abad9aa7178f
parentfbd3ef09edb17ab1687b30e617d602f4b198647f (diff)
downloadphp-git-c1b67d83cc85202c305cf2899a576066461beabf.tar.gz
(MFH) "transaction" tests should test commit, too, not only rollback
-rw-r--r--ext/pdo/tests/pdo_017.phpt9
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/pdo/tests/pdo_017.phpt b/ext/pdo/tests/pdo_017.phpt
index f1bfb97f6c..651ee2860c 100644
--- a/ext/pdo/tests/pdo_017.phpt
+++ b/ext/pdo/tests/pdo_017.phpt
@@ -56,8 +56,17 @@ $db->rollBack();
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.