wez Wed Jul 6 09:16:42 2005 EDT Modified files: /php-src/ext/pdo/tests pdo_021.phpt Log: juggling to track down a problem with odbc http://cvs.php.net/diff.php/php-src/ext/pdo/tests/pdo_021.phpt?r1=1.1&r2=1.2&ty=u Index: php-src/ext/pdo/tests/pdo_021.phpt diff -u php-src/ext/pdo/tests/pdo_021.phpt:1.1 php-src/ext/pdo/tests/pdo_021.phpt:1.2 --- php-src/ext/pdo/tests/pdo_021.phpt:1.1 Wed Jul 6 02:07:26 2005 +++ php-src/ext/pdo/tests/pdo_021.phpt Wed Jul 6 09:16:40 2005 @@ -10,9 +10,9 @@ require getenv('REDIR_TEST_DIR') . 'pdo_test.php'; $db = PDOTest::factory(); -$db->exec('CREATE TABLE test(id INT NOT NULL PRIMARY KEY, val VARCHAR(10), val2 VARCHAR(16))'); +var_dump($db->exec('CREATE TABLE test(id INT NOT NULL PRIMARY KEY, val VARCHAR(10), val2 VARCHAR(16))')); -$select = $db->prepare('SELECT COUNT(*) FROM test'); +$select = $db->prepare('SELECT COUNT(id) FROM test'); $data = array( array('10', 'Abc', 'zxy'), @@ -29,7 +29,6 @@ foreach ($data as $row) { $stmt->execute($row); } - $select->execute(); $num = $select->fetchColumn(); echo 'There are ' . $num . " rows in the table.\n"; @@ -48,5 +47,6 @@ ?> --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