From a5bea797bc0a98b1e6696f2b6dc1969b5380a47b Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Wed, 12 Dec 2001 22:37:33 +0000 Subject: [PATCH] fixed #12863. added return values for pg_freeresult. Also changed file permissions from 0444 to 0644. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@64876 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/pgsql.xml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/functions/pgsql.xml b/functions/pgsql.xml index d97246da1e..7307bd1e1a 100644 --- a/functions/pgsql.xml +++ b/functions/pgsql.xml @@ -1,5 +1,5 @@ - + PostgreSQL functions PostgreSQL @@ -885,12 +885,13 @@ for ($i=0; $i < $num; $i++) { pg_freeresult only needs to be called if you are worried about using too much memory while your script is - running. All result memory will automatically be freed when the - script is finished. But, if you are sure you are not going to + running. All result memory will automatically be freed when the + script is finished. But, if you are sure you are not going to need the result data anymore in a script, you may call pg_freeresult with the result resource as an argument and the - associated result memory will be freed. + associated result memory will be freed. It returns true on success + and false if an error occurs. See also pg_exec.