Lines Matching refs:id
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));
39 pg_delete($conn, 'bar', array('id' => 1, 'id2' => 2));
40 var_dump(pg_delete($conn, 'bar', array('id' => 1, 'id2' => 2), PGSQL_DML_STRING));
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;"
53 ["id"]=>
60 ["id"]=>
69 ["id"]=>
76 ["id"]=>