hholzgra Mon Jul 10 16:29:24 2006 UTC
Modified files:
/php-src/ext/pdo/tests pdo_017.phpt
Log:
"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.9&r2=1.10&diff_format=u
Index: php-src/ext/pdo/tests/pdo_017.phpt
diff -u php-src/ext/pdo/tests/pdo_017.phpt:1.9
php-src/ext/pdo/tests/pdo_017.phpt:1.10
--- php-src/ext/pdo/tests/pdo_017.phpt:1.9 Mon Oct 3 15:06:06 2005
+++ php-src/ext/pdo/tests/pdo_017.phpt Mon Jul 10 16:29:24 2006
@@ -23,7 +23,7 @@
?>
--FILE--
<?php
-if (getenv('REDIR_TEST_DIR') === false)
putenv('REDIR_TEST_DIR='.dirname(__FILE__) . '/../../pdo/tests/');
+if (getenv('REDIR_TEST_DIR') === false)
putenv('REDIR_TEST_DIR='.dirname(__FILE__) . '/../../pdo/tests/');
require_once getenv('REDIR_TEST_DIR') . 'pdo_test.inc';
$db = PDOTest::factory();
@@ -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