469,910 Members | 1,615 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,910 developers. It's quick & easy.

What does error code PGSQL_TUPLES_OK (2) actually mean?

I have ported a PHP MySQL app to PostgreSQL, and a pg_send_query()
call is returning error code 2 (PGSQL_TUPLES_OK). Unfortunately
the PHP manual lists the error codes but doesn't indicate what
they mean, and pg_result_error() returns a blank message.

As the token ends in '_OK', I suspect 'error' 2 isn't an error
at all, but some kind of OK status. However, I'd like to confirm
that. Does anyone have a reference where PostgreSQL error codes
are listed along with the meaning of each?
Cheers

John R Ramsden
Nov 23 '05 #1
1 1645
ljb
jo**********@sagitta-ps.com wrote:
I have ported a PHP MySQL app to PostgreSQL, and a pg_send_query()
call is returning error code 2 (PGSQL_TUPLES_OK). Unfortunately
the PHP manual lists the error codes but doesn't indicate what
they mean, and pg_result_error() returns a blank message.

As the token ends in '_OK', I suspect 'error' 2 isn't an error
at all, but some kind of OK status. However, I'd like to confirm
that. Does anyone have a reference where PostgreSQL error codes
are listed along with the meaning of each?


(You might be better off with this in comp.databases.postgresql.interfaces.php)

I don't understand - pg_send_query() returns true/false, not an error code,
and there's no result handle to use with pg_result_error until you call
pg_get_result. Are you really trying to do asynchronous queries?
Nov 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

121 posts views Thread by typingcat | last post: by
13 posts views Thread by Jason Huang | last post: by
669 posts views Thread by Xah Lee | last post: by
4 posts views Thread by grizggg | last post: by
2 posts views Thread by Lambda | last post: by
32 posts views Thread by Stephen Horne | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.