diff options
author | Dan Scott <dbs@php.net> | 2005-10-26 06:23:12 +0000 |
---|---|---|
committer | Dan Scott <dbs@php.net> | 2005-10-26 06:23:12 +0000 |
commit | f987de46b4bd3d5b6e4e6fb0c07e0dfe36af89a8 (patch) | |
tree | b7d246d503842ea21a2a01394686a5528ed9a762 /ext/pdo/tests/pdo_018.phpt | |
parent | 936b1e56c36b8e40973f4b89b1e636e511bcc375 (diff) | |
download | php-git-f987de46b4bd3d5b6e4e6fb0c07e0dfe36af89a8.tar.gz |
Correct non-standard SQL. Standard SQL would define "DEFAULT NULL" -- but
that is the default value if the DEFAULT clause is omitted anyways.
Diffstat (limited to 'ext/pdo/tests/pdo_018.phpt')
-rw-r--r-- | ext/pdo/tests/pdo_018.phpt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo/tests/pdo_018.phpt b/ext/pdo/tests/pdo_018.phpt index d03935b773..c46ffde07b 100644 --- a/ext/pdo/tests/pdo_018.phpt +++ b/ext/pdo/tests/pdo_018.phpt @@ -71,7 +71,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 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); |