File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ $db = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt');
16
16
17
17
$ db ->setAttribute (PDO ::ATTR_STRINGIFY_FETCHES , false );
18
18
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)) ' );
20
20
21
21
$ stmt = $ db ->prepare ("INSERT INTO test_last_id (field1) VALUES ('test') " );
22
22
@@ -30,7 +30,10 @@ var_dump($db->lastInsertId());
30
30
* Sequence name informed
31
31
*/
32
32
var_dump ($ db ->lastInsertId ('test_last_id_id_seq ' ));
33
+
34
+ $ db ->query ('DROP TABLE test_last_id ' );
35
+
33
36
?>
34
37
--EXPECTREGEX--
35
38
string\([0-9]*\)\ \"[0-9]*\"
36
- string\([0-9]*\)\ \"[0-9]*\"
39
+ string\([0-9]*\)\ \"[0-9]*\"
You can’t perform that action at this time.
0 commit comments