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

Reply via email to