wez Thu Jul 7 08:42:53 2005 EDT
Modified files:
/php-src/ext/pdo/tests pdo_021.phpt
Log:
It's not portable to expect any consistency between drivers in the return
value
of an exec() when running DDL; revise test.
http://cvs.php.net/diff.php/php-src/ext/pdo/tests/pdo_021.phpt?r1=1.3&r2=1.4&ty=u
Index: php-src/ext/pdo/tests/pdo_021.phpt
diff -u php-src/ext/pdo/tests/pdo_021.phpt:1.3
php-src/ext/pdo/tests/pdo_021.phpt:1.4
--- php-src/ext/pdo/tests/pdo_021.phpt:1.3 Wed Jul 6 09:19:25 2005
+++ php-src/ext/pdo/tests/pdo_021.phpt Thu Jul 7 08:42:52 2005
@@ -10,7 +10,7 @@
require getenv('REDIR_TEST_DIR') . 'pdo_test.inc';
$db = PDOTest::factory();
-var_dump($db->exec('CREATE TABLE test(id INT NOT NULL PRIMARY KEY, val
VARCHAR(10), val2 VARCHAR(16))'));
+$db->exec('CREATE TABLE test(id INT NOT NULL PRIMARY KEY, val VARCHAR(10),
val2 VARCHAR(16))');
$select = $db->prepare('SELECT COUNT(id) FROM test');
@@ -47,6 +47,5 @@
?>
--EXPECT--
-int(0)
There are 6 rows in the table.
There are 12 rows in the table.
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php