Re: NULL feilds and ERROR messages from libpq++

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: NULL feilds and ERROR messages from libpq++
Дата
Msg-id Pine.LNX.4.30.0106161449110.755-100000@peter.localdomain
обсуждение исходный текст
Ответ на NULL feilds and ERROR messages from libpq++  (Tabor Kelly <pdxmax@dsl-only.net>)
Список pgsql-general
Tabor Kelly writes:

> I am using the libpq++ interface to interact with a table that has
> some NULL fields in it. Why is it that every time I do a
> PgDatabase::GetValue on a field that has a NULL value, I get an error
> message printed to my console ("PQgetvalue: ERROR! tuple number 0 is
> out of range 0..-1")? Is this the normal behavior? It seems very odd
> that it would be, since it is common to interact with tables that
> contain NULL fields.

I think you're operating on a query result that returned zero rows.

--
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Need help with COPY
Следующее
От: Lincoln Yeoh
Дата:
Сообщение: Re: ODBC, ssl, problems with.