]> granicus.if.org Git - php/commitdiff
some drivers want you to say that its ok to use NULL for these columns.
authorWez Furlong <wez@php.net>
Wed, 20 Jul 2005 05:27:00 +0000 (05:27 +0000)
committerWez Furlong <wez@php.net>
Wed, 20 Jul 2005 05:27:00 +0000 (05:27 +0000)
ext/pdo/tests/pdo_018.phpt
ext/pdo/tests/pdo_024.phpt

index ba9aef7d346259a188d6bde335e1bf7ac7d77626..9cf2cc2fb86372e7f01f47dc7331404ef6e2260d 100644 (file)
@@ -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);
 
index c76c81fbf2548f43ec776d32261895c7cdd777b7..e16303370db4e27eb88477a645e6949244b7a9da 100644 (file)
@@ -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;