Annotation of embedaddon/php/ext/pgsql/tests/12pg_insert_85.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: PostgreSQL pg_insert() (8.5+)
3: --SKIPIF--
4: <?php
5: include("skipif.inc");
6: skip_server_version('8.5dev', '<');
7: ?>
8: --FILE--
9: <?php
10: error_reporting(E_ALL);
11:
12: include 'config.inc';
13:
14: $db = pg_connect($conn_str);
15: $fields = array('num'=>'1234', 'str'=>'AAA', 'bin'=>'BBB');
16:
17: pg_insert($db, $table_name, $fields) or print "Error in test 1\n";
18: echo pg_insert($db, $table_name, $fields, PGSQL_DML_STRING)."\n";
19:
20: echo "Ok\n";
21: ?>
22: --EXPECT--
23: INSERT INTO php_pgsql_test (num,str,bin) VALUES (1234,'AAA','\\x424242');
24: Ok
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>