Lines Matching refs:id
16 pg_query($conn, 'CREATE TABLE foo (id INT, id2 INT)');
17 pg_query($conn, 'CREATE TABLE phptests.foo (id INT, id2 INT)');
19 pg_insert($conn, 'foo', array('id' => 1, 'id2' => 1));
20 pg_insert($conn, 'foo', array('id' => 1, 'id2' => 2));
21 pg_insert($conn, 'foo', array('id' => 1, 'id2' => 2));
22 pg_insert($conn, 'foo', array('id' => 3, 'id2' => 3));
24 pg_insert($conn, 'phptests.foo', array('id' => 1, 'id2' => 1));
25 pg_insert($conn, 'phptests.foo', array('id' => 1, 'id2' => 2));
26 pg_insert($conn, 'phptests.foo', array('id' => 2, 'id2' => 3));
27 pg_insert($conn, 'phptests.foo', array('id' => 2, 'id2' => 3));
29 pg_delete($conn, 'foo', array('id' => 1, 'id2' => 0));
30 pg_delete($conn, 'foo', array('id' => 1, 'id2' => 2));
31 var_dump(pg_delete($conn, 'foo', array('id' => 1, 'id2' => 2), PGSQL_DML_STRING));
33 pg_delete($conn, 'phptests.foo', array('id' => 2, 'id2' => 1));
34 pg_delete($conn, 'phptests.foo', array('id' => 2, 'id2' => 3));
35 var_dump(pg_delete($conn, 'phptests.foo', array('id' => 2, 'id2' => 3), PGSQL_DML_STRING));
41 pg_delete($conn, 'bar', array('id' => 1, 'id2' => 2));
42 var_dump(pg_delete($conn, 'bar', array('id' => 1, 'id2' => 2), PGSQL_DML_STRING));
50 string(43) "DELETE FROM "foo" WHERE "id"=1 AND "id2"=2;"
51 string(54) "DELETE FROM "phptests"."foo" WHERE "id"=2 AND "id2"=3;"
55 ["id"]=>
62 ["id"]=>
71 ["id"]=>
78 ["id"]=>