com php-src: Revert "cleanup table after test": ext/pdo_pgsql /tests/bug_last_insert_id.phpt
| From: | Ferenc Kovacs | Date: | Tue, 16 Aug 2016 22:57:55 +0000 |
| Subject: | com php-src: Revert "cleanup table after test": ext/pdo_pgsql /tests/bug_last_insert_id.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-93808@lists.php.net to get a copy of this message | ||
Commit: cf1f579fcd53b5f8f9e58c23a96d18bde7ee6d5d
Author: Ferenc Kovacs <tyra3l@gmail.com> Wed, 17 Aug 2016 00:57:55 +0200
Parents: 327f538e917ce5fc2b106a59d835c2724ed46602
Branches: PHP-5.6.25
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=cf1f579fcd53b5f8f9e58c23a96d18bde7ee6d5d
Log:
Revert "cleanup table after test"
This reverts commit 40b3a031b2549aeafd5ca9290b504a4c537a9adf.
Changed paths:
M ext/pdo_pgsql/tests/bug_last_insert_id.phpt
Diff:
diff --git a/ext/pdo_pgsql/tests/bug_last_insert_id.phpt
b/ext/pdo_pgsql/tests/bug_last_insert_id.phpt
index 30dd0f0..af5d342 100644
--- a/ext/pdo_pgsql/tests/bug_last_insert_id.phpt
+++ b/ext/pdo_pgsql/tests/bug_last_insert_id.phpt
@@ -16,7 +16,7 @@ $db = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt');
$db->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, false);
-$db->query('CREATE TABLE test_last_id (id SERIAL NOT NULL, field1 VARCHAR(10))');
+@$db->query('CREATE TABLE test_last_id (id SERIAL NOT NULL, field1 VARCHAR(10))');
$stmt = $db->prepare("INSERT INTO test_last_id (field1) VALUES ('test')");
@@ -30,10 +30,7 @@ var_dump($db->lastInsertId());
* Sequence name informed
*/
var_dump($db->lastInsertId('test_last_id_id_seq'));
-
-$db->query('DROP TABLE test_last_id');
-
?>
--EXPECTREGEX--
string\([0-9]*\)\ \"[0-9]*\"
-string\([0-9]*\)\ \"[0-9]*\"
+string\([0-9]*\)\ \"[0-9]*\"
\ No newline at end of file