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

Поиск
Список
Период
Сортировка
От The Hermit Hacker
Тема Re: [INTERFACES] eekk tuples ok when there not!
Дата
Msg-id Pine.BSF.4.10.9908201243230.61055-100000@thelab.hub.org
обсуждение исходный текст
Ответ на eekk tuples ok when there not!  (StOo <stuart@comodo.net>)
Список pgsql-interfaces
On Fri, 20 Aug 1999, StOo wrote:

> 
> postgres 6-5-1 on linux
> 
> after calling PgConnection::Exec(const char *query);
> it returns PGRES_TUPLES_OK even when there is nothing in the table!
> has anyone else noticed this?? or am i mad again =)

PGRES_TUPLES_OK, as I've always interpreted it, means that there were no
errors in the query itself...checking for res->ntuples is how to check for
the existence of any data...

Systems Administrator @ hub.org 
primary: scrappy@hub.org           secondary: scrappy@{freebsd|postgresql}.org 



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

Предыдущее
От: StOo
Дата:
Сообщение: eekk tuples ok when there not!
Следующее
От: "Ken J. Wright"
Дата:
Сообщение: Re: [INTERFACES] eekk tuples ok when there not!