Skip to content

Commit 40b3a03

Browse files
committed
cleanup table after test
1 parent 90c6cbd commit 40b3a03

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ext/pdo_pgsql/tests/bug_last_insert_id.phpt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ $db = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt');
1616

1717
$db->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, false);
1818

19-
@$db->query('CREATE TABLE test_last_id (id SERIAL NOT NULL, field1 VARCHAR(10))');
19+
$db->query('CREATE TABLE test_last_id (id SERIAL NOT NULL, field1 VARCHAR(10))');
2020

2121
$stmt = $db->prepare("INSERT INTO test_last_id (field1) VALUES ('test')");
2222

@@ -30,7 +30,10 @@ var_dump($db->lastInsertId());
3030
* Sequence name informed
3131
*/
3232
var_dump($db->lastInsertId('test_last_id_id_seq'));
33+
34+
$db->query('DROP TABLE test_last_id');
35+
3336
?>
3437
--EXPECTREGEX--
3538
string\([0-9]*\)\ \"[0-9]*\"
36-
string\([0-9]*\)\ \"[0-9]*\"
39+
string\([0-9]*\)\ \"[0-9]*\"

0 commit comments

Comments
 (0)