mirror of
https://github.com/php/php-src.git
synced 2024-10-14 13:02:37 +00:00
e7e0eddadd
pg_convert() may ignore, NOT NULL and/or DEFAULT. pg_insert/pg_update/pg_select/pg_update may return query string.
14 lines
294 B
PHP
14 lines
294 B
PHP
<?php
|
|
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";
|
|
?>
|