1--TEST-- 2PostgreSQL pg_insert() 3--EXTENSIONS-- 4pgsql 5--SKIPIF-- 6<?php 7include("skipif.inc"); 8skip_bytea_not_escape(); 9?> 10--FILE-- 11<?php 12error_reporting(E_ALL); 13 14include 'config.inc'; 15 16$db = pg_connect($conn_str); 17$fields = array('num'=>'1234', 'str'=>'AAA', 'bin'=>'BBB'); 18 19pg_insert($db, $table_name, $fields) or print "Error in test 1\n"; 20echo pg_insert($db, $table_name, $fields, PGSQL_DML_STRING)."\n"; 21 22echo "Ok\n"; 23?> 24--EXPECT-- 25INSERT INTO "php_pgsql_test" ("num","str","bin") VALUES (1234,E'AAA',E'BBB'); 26Ok 27