From f4681fd86b7d216da8bc7ecaf5c93e69df5753fd Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Thu, 7 Jul 2005 12:42:52 +0000 Subject: [PATCH] It's not portable to expect any consistency between drivers in the return value of an exec() when running DDL; revise test. --- ext/pdo/tests/pdo_021.phpt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ext/pdo/tests/pdo_021.phpt b/ext/pdo/tests/pdo_021.phpt index 71615725e9..8300737582 100644 --- a/ext/pdo/tests/pdo_021.phpt +++ b/ext/pdo/tests/pdo_021.phpt @@ -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. -- 2.40.0