cvs: php-src(PHP_5_1) /ext/pdo/tests pdo_018.phpt pdo_024.phpt pdo_027.phpt

From: Date: Wed, 26 Oct 2005 06:23:15 +0000
Subject: cvs: php-src(PHP_5_1) /ext/pdo/tests pdo_018.phpt pdo_024.phpt pdo_027.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-34789@lists.php.net to get a copy of this message
dbs Wed Oct 26 02:23:15 2005 EDT Modified files: (Branch: PHP_5_1) /php-src/ext/pdo/tests pdo_018.phpt pdo_024.phpt pdo_027.phpt Log: Correct non-standard SQL. Standard SQL would define "DEFAULT NULL" -- but that is the default value if the DEFAULT clause is omitted anyways. http://cvs.php.net/diff.php/php-src/ext/pdo/tests/pdo_018.phpt?r1=1.11.2.3&r2=1.11.2.4&ty=u Index: php-src/ext/pdo/tests/pdo_018.phpt diff -u php-src/ext/pdo/tests/pdo_018.phpt:1.11.2.3 php-src/ext/pdo/tests/pdo_018.phpt:1.11.2.4 --- php-src/ext/pdo/tests/pdo_018.phpt:1.11.2.3 Mon Oct 3 11:06:27 2005 +++ php-src/ext/pdo/tests/pdo_018.phpt Wed Oct 26 02:23:12 2005 @@ -71,7 +71,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 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); http://cvs.php.net/diff.php/php-src/ext/pdo/tests/pdo_024.phpt?r1=1.5.2.2&r2=1.5.2.3&ty=u Index: php-src/ext/pdo/tests/pdo_024.phpt diff -u php-src/ext/pdo/tests/pdo_024.phpt:1.5.2.2 php-src/ext/pdo/tests/pdo_024.phpt:1.5.2.3 --- php-src/ext/pdo/tests/pdo_024.phpt:1.5.2.2 Mon Oct 3 11:06:27 2005 +++ php-src/ext/pdo/tests/pdo_024.phpt Wed Oct 26 02:23:12 2005 @@ -14,7 +14,7 @@ require_once getenv('REDIR_TEST_DIR') . 'pdo_test.inc'; $db = PDOTest::factory(); -$db->exec('create table test (id int, name varchar(10) NULL)'); +$db->exec('create table test (id int, name varchar(10))'); $stmt = $db->prepare('insert into test (id, name) values(0, :name)'); $name = NULL; http://cvs.php.net/diff.php/php-src/ext/pdo/tests/pdo_027.phpt?r1=1.2.2.3&r2=1.2.2.4&ty=u Index: php-src/ext/pdo/tests/pdo_027.phpt diff -u php-src/ext/pdo/tests/pdo_027.phpt:1.2.2.3 php-src/ext/pdo/tests/pdo_027.phpt:1.2.2.4 --- php-src/ext/pdo/tests/pdo_027.phpt:1.2.2.3 Mon Oct 3 11:06:27 2005 +++ php-src/ext/pdo/tests/pdo_027.phpt Wed Oct 26 02:23:12 2005 @@ -14,7 +14,7 @@ require_once getenv('REDIR_TEST_DIR') . 'pdo_test.inc'; $db = PDOTest::factory(); -$db->exec('create table test (id int, name varchar(10) NULL)'); +$db->exec('create table test (id int, name varchar(10))'); $db->exec("INSERT INTO test (id,name) VALUES(1,'test1')"); $db->exec("INSERT INTO test (id,name) VALUES(2,'test2')");

« previous php.cvs (#34789) next »