diff options
author | Anatol Belski <ab@php.net> | 2017-01-03 17:56:22 +0100 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2017-01-03 17:56:22 +0100 |
commit | 595453ac9196a6d559468d6132dca2e290245427 (patch) | |
tree | 88ab964077e887521a518a420734f571390b032c /ext | |
parent | defd45adc20ac2080d6ee37ea4f1f9ca484577d2 (diff) | |
parent | b15cc7913a1aa108b3e27c8c361202785bea4033 (diff) | |
download | php-git-595453ac9196a6d559468d6132dca2e290245427.tar.gz |
Merge branch 'PHP-7.1'
* PHP-7.1:
Fix PDO tests to match SQL standard syntax and pass Firebird tests.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/pdo/tests/pdo_018.phpt | 2 | ||||
-rw-r--r-- | ext/pdo_firebird/tests/bug_72931.phpt | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/pdo/tests/pdo_018.phpt b/ext/pdo/tests/pdo_018.phpt index 80e3453287..57430ae20d 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) NULL)'); +$db->exec('CREATE TABLE test(id int NOT NULL PRIMARY KEY, classtype int, val VARCHAR(255))'); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); diff --git a/ext/pdo_firebird/tests/bug_72931.phpt b/ext/pdo_firebird/tests/bug_72931.phpt index ecbde6a109..4f8a1a1746 100644 --- a/ext/pdo_firebird/tests/bug_72931.phpt +++ b/ext/pdo_firebird/tests/bug_72931.phpt @@ -10,7 +10,7 @@ $C->exec('create table tablea (id integer)'); $S = $C->prepare('insert into tablea (id) values (1) returning id'); $S->execute(); $D = $S->fetch(PDO::FETCH_NUM); -echo $D[0][0]; +echo $D[0]; unset($S); unset($C); ?> @@ -18,7 +18,7 @@ unset($C); <?php require 'testdb.inc'; $C = new PDO('firebird:dbname='.$test_base, $user, $password) or die; -$C->exec('DROP table tablea'); +$C->exec('drop table tablea'); ?> --EXPECT-- 1 |