summaryrefslogtreecommitdiff
path: root/ext/pgsql/tests
diff options
context:
space:
mode:
authorRemi Collet <remi@php.net>2015-05-20 14:02:25 +0200
committerRemi Collet <remi@php.net>2015-05-20 14:02:25 +0200
commit59a78d48f06de10d927987dd0c940bf3c03dd316 (patch)
treec50763803e01f81c9583100592ec2a9353019e4c /ext/pgsql/tests
parentf228bc5230ee7ad6f1a544a031dd3a1fb41c689d (diff)
parent3be4e5d71af3d7f495876fabd5a9ce46580e2d0d (diff)
downloadphp-git-59a78d48f06de10d927987dd0c940bf3c03dd316.tar.gz
Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5: 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