php-src/ext/pgsql/tests/07optional.phpt
Christopher Kings-Lynne e2b87e6230 Tweak some #if's to be more orthogonal.
(PHP pg_set_error_verbosity) New function to set PostgreSQL error verbosity

(PHP pg_copy_from) Use non-deprecated API if it is available

(PHP pg_copy_to) Use non-deprecated API if it is available
2005-03-22 08:51:23 +00:00

25 lines
460 B
PHP

--TEST--
PostgreSQL optional functions
--SKIPIF--
<?php include("skipif.inc"); ?>
--FILE--
<?php
// optional functions
include('config.inc');
$db = pg_connect($conn_str);
$enc = pg_client_encoding($db);
pg_set_client_encoding($db, $enc);
if (function_exists('pg_set_error_verbosity')) {
pg_set_error_verbosity(PGSQL_ERRORS_TERSE);
pg_set_error_verbosity(PGSQL_ERRORS_DEFAULT);
pg_set_error_verbosity(PGSQL_ERRORS_VERBOSE);
}
echo "OK";
?>
--EXPECT--
OK