Re: [INTERFACES] eekk tuples ok when there not!

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [INTERFACES] eekk tuples ok when there not!
Дата
Msg-id 14994.935166832@sss.pgh.pa.us
обсуждение исходный текст
Ответ на eekk tuples ok when there not!  (StOo <stuart@comodo.net>)
Список pgsql-interfaces
StOo <stuart@comodo.net> writes:
> after calling PgConnection::Exec(const char *query);
> it returns PGRES_TUPLES_OK even when there is nothing in the table!

Yes.  Always has, always will.  PGRES_TUPLES_OK means you did a
SELECT and had no error --- it is not an error for the SELECT
to find no matching tuples.  You have to look at PQntuples
to find out how many tuples you got back.
        regards, tom lane


В списке pgsql-interfaces по дате отправления:

Предыдущее
От: "Ken J. Wright"
Дата:
Сообщение: Re: [INTERFACES] eekk tuples ok when there not!
Следующее
От: Yu Cao
Дата:
Сообщение: Re: [INTERFACES] libpq++ ---- PgDatabase instance problem