summaryrefslogtreecommitdiff
path: root/ext/pdo/tests/pdo_018.phpt
diff options
context:
space:
mode:
authorDan Scott <dbs@php.net>2005-10-26 06:23:12 +0000
committerDan Scott <dbs@php.net>2005-10-26 06:23:12 +0000
commitf987de46b4bd3d5b6e4e6fb0c07e0dfe36af89a8 (patch)
treeb7d246d503842ea21a2a01394686a5528ed9a762 /ext/pdo/tests/pdo_018.phpt
parent936b1e56c36b8e40973f4b89b1e636e511bcc375 (diff)
downloadphp-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.phpt2
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);