From: Wez Furlong Date: Wed, 20 Jul 2005 05:27:00 +0000 (+0000) Subject: some drivers want you to say that its ok to use NULL for these columns. X-Git-Tag: RELEASE_0_9~56 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=08891a1c1b6a409d48075c73331a731732316724;p=php some drivers want you to say that its ok to use NULL for these columns. --- diff --git a/ext/pdo/tests/pdo_018.phpt b/ext/pdo/tests/pdo_018.phpt index ba9aef7d34..9cf2cc2fb8 100644 --- a/ext/pdo/tests/pdo_018.phpt +++ b/ext/pdo/tests/pdo_018.phpt @@ -70,7 +70,7 @@ $db->exec('CREATE TABLE classtypes(id int NOT NULL PRIMARY KEY, name VARCHAR(20) $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, val VARCHAR(255))'); +$db->exec('CREATE TABLE test(id int NOT NULL PRIMARY KEY, classtype int NULL, val VARCHAR(255))'); $db->setAttribute(PDO_ATTR_ERRMODE, PDO_ERRMODE_EXCEPTION); diff --git a/ext/pdo/tests/pdo_024.phpt b/ext/pdo/tests/pdo_024.phpt index c76c81fbf2..e16303370d 100644 --- a/ext/pdo/tests/pdo_024.phpt +++ b/ext/pdo/tests/pdo_024.phpt @@ -13,7 +13,7 @@ PDOTest::skip(); require getenv('REDIR_TEST_DIR') . 'pdo_test.inc'; $db = PDOTest::factory(); -$db->exec('create table test (id int, name varchar(10))'); +$db->exec('create table test (id int, name varchar(10) NULL)'); $stmt = $db->prepare('insert into test (id, name) values(0, :name)'); $name = NULL;