Lines Matching refs:db
10 $db = pg_connect($conn_str);
13 pg_exec ($db, "begin");
14 $oid = pg_lo_create ($db);
16 $handle = pg_lo_open ($db, $oid, "w");
20 pg_exec ($db, "commit");
23 pg_exec ($db, "begin");
24 $handle = pg_lo_open ($db, $oid, "w");
29 pg_exec ($db, "commit");
32 pg_exec ($db, "begin");
33 $handle = pg_lo_open ($db, $oid, "w");
37 pg_exec ($db, "commit");
40 pg_exec ($db, "begin");
41 pg_lo_unlink($db, $oid) or print("pg_lo_unlink() error 1\n");
42 pg_exec ($db, "commit");
46 pg_exec ($db, "begin");
47 $oid = pg_lo_create ($db) or print("pg_lo_create() error\n");
49 pg_exec ($db, "commit");
52 pg_exec ($db, "begin");
53 $oid = pg_lo_create ($db) or print("pg_lo_create() error\n");
54 pg_lo_unlink($db, (string)$oid) or print("pg_lo_unlink() error 3\n");
55 pg_exec ($db, "commit");
59 pg_query($db, 'begin');
60 $oid = pg_lo_import($db, $path . 'php.gif');
61 pg_query($db, 'commit');
62 pg_query($db, 'begin');
64 pg_lo_export($oid, $path . 'php.gif.exported', $db);
69 pg_query($db, 'commit');