From 5f856161a24d381da5a51de44a5589c9df9c63f2 Mon Sep 17 00:00:00 2001 From: Yasuo Ohgaki Date: Tue, 11 Dec 2001 03:32:41 +0000 Subject: [PATCH] Removed note for PHP/FI. Added note for default connection. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@64511 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/pgsql.xml | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/functions/pgsql.xml b/functions/pgsql.xml index 1238de89c4..09616c008f 100644 --- a/functions/pgsql.xml +++ b/functions/pgsql.xml @@ -1,5 +1,5 @@ - + PostgreSQL functions PostgreSQL @@ -415,19 +415,27 @@ $dbconn4 = pg_connect ($conn_string); pg_fetch_array. - PHP/FI returned 1 if the query was not expected to return data - (inserts or updates, for example) and greater than 1 even on - selects that did not return anything. No such assumption can be - made in PHP. + connection is a optional parameter for + pg_exec. If + connection is not used, default + connection is used. Default connection is the last connection + made by pg_connect or + pg_pconnect. + + + Although connection can be omitted, it + is not recommended, since it could be a cause of hard to find + bug in script. - See also pg_fetch_array, + See also pg_connect, + pg_pconnect, + pg_fetch_array, pg_fetch_object, - pg_result, pg_numrows, - pg_cmdtuples and - pg_numfields. + pg_numrows, + and pg_cmdtuples.