Re: pg_last_error()

From: Date: Mon, 02 Apr 2007 22:28:23 +0000
Subject: Re: pg_last_error()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-251954@lists.php.net to get a copy of this message
Miguel J. Jiménez wrote:
Hello, the question is simple... After I try to free a resultset in postgres using pg_free_result() it returns false ... Can I use pg_last_error() to get the cause of this last error? I have tried but it returns an empty string and I do not know if it is because I cannot use pg_last_error() thus. Thanks a lot...
pg_free_result tells you whether memory was free'd up or not. pg_last_error tells you the last error message from postgresql. They aren't related, so you can't use pg_last_error to work out why pg_free_result didn't work. Do you have a small test script that fails to free memory? What php version? -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#251954) next »