summaryrefslogtreecommitdiff
path: root/ext/pgsql/tests/pg_select.inc
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pgsql/tests/pg_select.inc')
-rw-r--r--ext/pgsql/tests/pg_select.inc18
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/pgsql/tests/pg_select.inc b/ext/pgsql/tests/pg_select.inc
new file mode 100644
index 0000000000..04ca501deb
--- /dev/null
+++ b/ext/pgsql/tests/pg_select.inc
@@ -0,0 +1,18 @@
+<?php
+error_reporting(E_ALL);
+
+include 'config.inc';
+
+$db = pg_connect($conn_str);
+
+$fields = array('num'=>'1234', 'str'=>'XXX', 'bin'=>'YYY');
+$ids = array('num'=>'1234');
+if (!($res = pg_select($db, $table_name, $ids, 1))) {
+ echo "Error\n";
+}
+else {
+ var_dump($res);
+ echo "Ok\n";
+}
+
+?> \ No newline at end of file