summaryrefslogtreecommitdiff
path: root/ext/pgsql/tests
diff options
context:
space:
mode:
authorRemi Collet <remi@php.net>2015-05-20 14:03:01 +0200
committerRemi Collet <remi@php.net>2015-05-20 14:03:01 +0200
commite0cd1823ec6cdd4ea692f035e2cebe33cfeea1a9 (patch)
tree3404d2eb9a55fd0a8f6d179c50acbe9fcfba2d4d /ext/pgsql/tests
parentc4129694a823076fc9bc32b61e326d45fbc01250 (diff)
parent59a78d48f06de10d927987dd0c940bf3c03dd316 (diff)
downloadphp-git-e0cd1823ec6cdd4ea692f035e2cebe33cfeea1a9.tar.gz
Merge branch 'PHP-5.6'
* PHP-5.6: move test
Diffstat (limited to 'ext/pgsql/tests')
-rw-r--r--ext/pgsql/tests/pg_insert_002.phpt27
1 files changed, 27 insertions, 0 deletions
diff --git a/ext/pgsql/tests/pg_insert_002.phpt b/ext/pgsql/tests/pg_insert_002.phpt
new file mode 100644
index 0000000000..87d87b8475
--- /dev/null
+++ b/ext/pgsql/tests/pg_insert_002.phpt
@@ -0,0 +1,27 @@
+--TEST--
+PostgreSQL pg_select() - basic test using schema
+--SKIPIF--
+<?php include("skipif.inc"); ?>
+--FILE--
+<?php
+
+include('config.inc');
+
+$conn = pg_connect($conn_str);
+
+foreach (array('', '.', '..') as $table) {
+ var_dump(pg_insert($conn, $table, array('id' => 1, 'id2' => 1)));
+}
+?>
+Done
+--EXPECTF--
+
+Warning: pg_insert(): The table name must be specified in %s on line %d
+bool(false)
+
+Warning: pg_insert(): The table name must be specified in %s on line %d
+bool(false)
+
+Warning: pg_insert(): The table name must be specified in %s on line %d
+bool(false)
+Done \ No newline at end of file