dbs Wed Oct 26 04:32:25 2005 EDT Modified files: /php-src/ext/pdo/tests pdo_018.phpt pdo_024.phpt pdo_027.phpt Log: Correct non-standard SQL. Standard SQL would define "DEFAULT NULL" -- but that is the default value if the DEFAULT clause is omitted anyways. http://cvs.php.net/diff.php/php-src/ext/pdo/tests/pdo_018.phpt?r1=1.16&r2=1.17&ty=u Index: php-src/ext/pdo/tests/pdo_018.phpt diff -u php-src/ext/pdo/tests/pdo_018.phpt:1.16 php-src/ext/pdo/tests/pdo_018.phpt:1.17 --- php-src/ext/pdo/tests/pdo_018.phpt:1.16 Mon Oct 3 11:06:06 2005 +++ php-src/ext/pdo/tests/pdo_018.phpt Wed Oct 26 04:32:25 2005 @@ -71,7 +71,7 @@ $db->exec('INSERT INTO classtypes VALUES(0, \'stdClass\')'); $db->exec('INSERT INTO classtypes VALUES(1, \'TestBase\')'); $db->exec('INSERT INTO classtypes VALUES(2, \'TestDerived\')'); -$db->exec('CREATE TABLE test(id int NOT NULL PRIMARY KEY, classtype int NULL, val VARCHAR(255))'); +$db->exec('CREATE TABLE test(id int NOT NULL PRIMARY KEY, classtype int, val VARCHAR(255))'); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); http://cvs.php.net/diff.php/php-src/ext/pdo/tests/pdo_024.phpt?r1=1.7&r2=1.8&ty=u Index: php-src/ext/pdo/tests/pdo_024.phpt diff -u php-src/ext/pdo/tests/pdo_024.phpt:1.7 php-src/ext/pdo/tests/pdo_024.phpt:1.8 --- php-src/ext/pdo/tests/pdo_024.phpt:1.7 Mon Oct 3 11:06:06 2005 +++ php-src/ext/pdo/tests/pdo_024.phpt Wed Oct 26 04:32:25 2005 @@ -14,7 +14,7 @@ require_once getenv('REDIR_TEST_DIR') . 'pdo_test.inc'; $db = PDOTest::factory(); -$db->exec('create table test (id int, name varchar(10) NULL)'); +$db->exec('create table test (id int, name varchar(10))'); $stmt = $db->prepare('insert into test (id, name) values(0, :name)'); $name = NULL; http://cvs.php.net/diff.php/php-src/ext/pdo/tests/pdo_027.phpt?r1=1.5&r2=1.6&ty=u Index: php-src/ext/pdo/tests/pdo_027.phpt diff -u php-src/ext/pdo/tests/pdo_027.phpt:1.5 php-src/ext/pdo/tests/pdo_027.phpt:1.6 --- php-src/ext/pdo/tests/pdo_027.phpt:1.5 Mon Oct 3 11:06:06 2005 +++ php-src/ext/pdo/tests/pdo_027.phpt Wed Oct 26 04:32:25 2005 @@ -14,7 +14,7 @@ require_once getenv('REDIR_TEST_DIR') . 'pdo_test.inc'; $db = PDOTest::factory(); -$db->exec('create table test (id int, name varchar(10) NULL)'); +$db->exec('create table test (id int, name varchar(10))'); $db->exec("INSERT INTO test (id,name) VALUES(1,'test1')"); $db->exec("INSERT INTO test (id,name) VALUES(2,'test2')");
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php