[BUG?] strange PQgetisnull

Поиск
Список
Период
Сортировка
От Park, Chul-Su
Тема [BUG?] strange PQgetisnull
Дата
Msg-id 35ADB583.4FFBE4CD@mhlx01.kek.jp
обсуждение исходный текст
Ответы Re: [HACKERS] [BUG?] strange PQgetisnull
Re: [HACKERS] [BUG?] strange PQgetisnull
Список pgsql-hackers
Hi all,

    I got strange result with PQgetisnull, say

for empty table(I think that it's empty so null)

I guess that
after fetch some selection
PQgetisnull(result, 0, 0) should give me "1 or true"
But
it gives me
ERROR! field 0(of 0) of row 0(of 0) is not available... Segmentation
Fault

so I tried
if (PQntuples(result) == 0)
...

But  PQntules gives me "1" not "0" !

do I have to check result with
char* value = PQgetvalue(result, 0, 0);
and test value is "" or not?  any idea???

I'm using v6.3.2 on linux && Solaris.

Best Regards, C.S.Park


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

Предыдущее
От: Maarten Boekhold
Дата:
Сообщение: Re: [INTERFACES] Re: [HACKERS] changes in 6.4
Следующее
От: Hannu Krosing
Дата:
Сообщение: Re: [INTERFACES] Re: [HACKERS] changes in 6.4