HOWEVER, it is not possible to get a result resource from a failed
pg_query!  pg_query() returns FALSE on failure, not a result.


You could call pg_last_error(), or pg_last_notice(). Although the last one
is currently somehow broken: http://bugs.php.net/bug.php?id=32223

Those functions are basically useless - they just return a string. Everyone's PHP/Pgsql apps at the moment have to to regexes on those strings to figure out what the error was.


Chris

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to