Lines Matching refs:foo
14 pg_query('CREATE TABLE foo (id INT, id2 INT)');
15 pg_query('CREATE TABLE phptests.foo (id INT, id2 INT)');
17 pg_insert($conn, 'foo', array('id' => 1, 'id2' => 1));
18 pg_insert($conn, 'foo', array('id' => 1, 'id2' => 2));
19 pg_insert($conn, 'foo', array('id' => 1, 'id2' => 2));
20 pg_insert($conn, 'foo', array('id' => 3, 'id2' => 3));
22 pg_insert($conn, 'phptests.foo', array('id' => 1, 'id2' => 1));
23 pg_insert($conn, 'phptests.foo', array('id' => 1, 'id2' => 2));
24 pg_insert($conn, 'phptests.foo', array('id' => 2, 'id2' => 3));
25 pg_insert($conn, 'phptests.foo', array('id' => 2, 'id2' => 3));
27 pg_delete($conn, 'foo', array('id' => 1, 'id2' => 0));
28 pg_delete($conn, 'foo', array('id' => 1, 'id2' => 2));
29 var_dump(pg_delete($conn, 'foo', array('id' => 1, 'id2' => 2), PGSQL_DML_STRING));
31 pg_delete($conn, 'phptests.foo', array('id' => 2, 'id2' => 1));
32 pg_delete($conn, 'phptests.foo', array('id' => 2, 'id2' => 3));
33 var_dump(pg_delete($conn, 'phptests.foo', array('id' => 2, 'id2' => 3), PGSQL_DML_STRING));
35 var_dump(pg_fetch_all(pg_query('SELECT * FROM foo')));
36 var_dump(pg_fetch_all(pg_query('SELECT * FROM phptests.foo')));
42 pg_query('DROP TABLE foo');
43 pg_query('DROP TABLE phptests.foo');
48 string(43) "DELETE FROM "foo" WHERE "id"=1 AND "id2"=2;"
49 string(54) "DELETE FROM "phptests"."foo" WHERE "id"=2 AND "id2"=3;"