diff options
Diffstat (limited to 'ext/pgsql/tests/12pg_insert.phpt')
-rw-r--r-- | ext/pgsql/tests/12pg_insert.phpt | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/ext/pgsql/tests/12pg_insert.phpt b/ext/pgsql/tests/12pg_insert.phpt index 104b6fe662..8d98f220fd 100644 --- a/ext/pgsql/tests/12pg_insert.phpt +++ b/ext/pgsql/tests/12pg_insert.phpt @@ -4,7 +4,17 @@ PostgreSQL pg_insert() <?php include("skipif.inc"); ?> --FILE-- <?php -include("pg_insert.inc"); +error_reporting(E_ALL); + +include 'config.inc'; + +$db = pg_connect($conn_str); +$fields = array('num'=>'1234', 'str'=>'AAA', 'bin'=>'BBB'); + +pg_insert($db, $table_name, $fields) or print "Error in test 1\n"; +echo pg_insert($db, $table_name, $fields, PGSQL_DML_STRING)."\n"; + +echo "Ok\n"; ?> --EXPECT-- INSERT INTO php_pgsql_test (num,str,bin) VALUES (1234,'AAA','BBB'); |