PGresult::EMPTY_QUERY

When PGresult::EMPTY_QUERY is returned? I’m asking because of ‘SELECT *
FROM customer LIMIT 0’ cause PGresult::TUPLES_OK.
I have thought that ‘LIMIT 0’ clause determines empty result, didn’t it?

Szymon

÷ ðÎÄ, 17.03.2003, × 16:40, Szymon Drejewicz ÎÁÐÉÓÁÌ:

When PGresult::EMPTY_QUERY is returned? I’m asking because of ‘SELECT *
FROM customer LIMIT 0’ cause PGresult::TUPLES_OK.
I have thought that ‘LIMIT 0’ clause determines empty result, didn’t it?

I think it’s returned when you pass empty query to sth.execute :wink:

You say above about empty result.

···


Regards,
Sergei Dolmatov.

A language that doesn’t have everything is actually easier to program in
than some that do. – Dennis M. Ritchie