]> granicus.if.org Git - php/commitdiff
(MFH) "transaction" tests should test commit, too, not only rollback
authorHartmut Holzgraefe <hholzgra@php.net>
Mon, 10 Jul 2006 16:29:50 +0000 (16:29 +0000)
committerHartmut Holzgraefe <hholzgra@php.net>
Mon, 10 Jul 2006 16:29:50 +0000 (16:29 +0000)
ext/pdo/tests/pdo_017.phpt

index f1bfb97f6c6557a665432b490b8944577a2ff63b..651ee2860c5969b04669896255256832405578ff 100644 (file)
@@ -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.