--TEST-- transaction --SKIPIF-- --FILE-- exec("DROP TABLE IF EXISTS test; CREATE TABLE test (id serial, data text)"); $s = $c->prepare("test_insert", "INSERT INTO test (data) VALUES (\$1)", array((new pq\Types($c))["text"]->oid)); $s->exec(array("a")); $s->exec(array("b")); $s->exec(array("c")); $r = $c->exec("SELECT * FROM test"); while ($row = $r->fetchRow(pq\Result::FETCH_OBJECT)) { printf("%d => %s\n", $row->id, $row->data); } $t->rollback(); ?> DONE --EXPECT-- Test Got notice: NOTICE: table "test" does not exist, skipping Got notice: NOTICE: CREATE TABLE will create implicit sequence "test_id_seq" for serial column "test.id" 1 => a 2 => b 3 => c DONE