Re: pg_last_error()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux