wez Wed Jul 20 01:27:01 2005 EDT
Modified files:
/php-src/ext/pdo/tests pdo_018.phpt pdo_024.phpt
Log:
some drivers want you to say that its ok to use NULL for these columns.
http://cvs.php.net/diff.php/php-src/ext/pdo/tests/pdo_018.phpt?r1=1.10&r2=1.11&ty=u
Index: php-src/ext/pdo/tests/pdo_018.phpt
diff -u php-src/ext/pdo/tests/pdo_018.phpt:1.10
php-src/ext/pdo/tests/pdo_018.phpt:1.11
--- php-src/ext/pdo/tests/pdo_018.phpt:1.10 Mon Jul 11 22:38:39 2005
+++ php-src/ext/pdo/tests/pdo_018.phpt Wed Jul 20 01:27:00 2005
@@ -70,7 +70,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, 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);
http://cvs.php.net/diff.php/php-src/ext/pdo/tests/pdo_024.phpt?r1=1.4&r2=1.5&ty=u
Index: php-src/ext/pdo/tests/pdo_024.phpt
diff -u php-src/ext/pdo/tests/pdo_024.phpt:1.4
php-src/ext/pdo/tests/pdo_024.phpt:1.5
--- php-src/ext/pdo/tests/pdo_024.phpt:1.4 Thu Jul 7 11:32:32 2005
+++ php-src/ext/pdo/tests/pdo_024.phpt Wed Jul 20 01:27:00 2005
@@ -13,7 +13,7 @@
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;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php