From 743deb09c97259201ca967fead62fcb060d77092 Mon Sep 17 00:00:00 2001 From: Hartmut Holzgraefe Date: Mon, 10 Jul 2006 16:29:24 +0000 Subject: [PATCH] "transaction" tests should test commit, too, not only rollback --- ext/pdo/tests/pdo_017.phpt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ext/pdo/tests/pdo_017.phpt b/ext/pdo/tests/pdo_017.phpt index 6713bfda9d..651ee2860c 100644 --- a/ext/pdo/tests/pdo_017.phpt +++ b/ext/pdo/tests/pdo_017.phpt @@ -23,7 +23,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') { ?> --FILE-- 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. -- 2.40.0