mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00

pg_convert() may ignore, NOT NULL and/or DEFAULT. pg_insert/pg_update/pg_select/pg_update may return query string.
13 lines
294 B
PHP
13 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";
|
|
?>
|