]> granicus.if.org Git - php/commitdiff
It's not portable to expect any consistency between drivers in the return value
authorWez Furlong <wez@php.net>
Thu, 7 Jul 2005 12:42:52 +0000 (12:42 +0000)
committerWez Furlong <wez@php.net>
Thu, 7 Jul 2005 12:42:52 +0000 (12:42 +0000)
of an exec() when running DDL; revise test.

ext/pdo/tests/pdo_021.phpt

index 71615725e900c044b810fabea81a9a25bfa54e11..8300737582bce0eecb144d771dccafec95b137c1 100644 (file)
@@ -10,7 +10,7 @@ if (false == getenv('REDIR_TEST_DIR')) print 'skip no driver';
 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 @@ echo 'There are ' . $num . " rows in the table.\n";
 
 ?>
 --EXPECT--
-int(0)
 There are 6 rows in the table.
 There are 12 rows in the table.