| От | Bruce Momjian |
|---|---|
| Тема | Re: [GENERAL] detecting NULL from libpq... |
| Дата | |
| Msg-id | 199806200325.XAA06727@candle.pha.pa.us обсуждение исходный текст |
| Ответ на | detecting NULL from libpq... (dave madden <dhm@paradigm.webvision.com>) |
| Список | pgsql-general |
>
> Hi. I'm wondering if it's possible to tell whether a field returned
> by PQgetvalue() is NULL? Can one distinguish between a varchar field
> that contains a string of zero length and a varchar field that is
> NULL? (And if so, how? :-)
From man libpq:
PQgetisnull returns the NULL status of a field.
int PQgetisnull(PGresult *res,
int tup_num,
int field_num);
--
Bruce Momjian | 830 Blythe Avenue
maillist@candle.pha.pa.us | Drexel Hill, Pennsylvania 19026
+ If your life is a hard drive, | (610) 353-9879(w)
+ Christ can be your backup. | (610) 853-3000(h)
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера