Re: Convert Datum* to char*

Поиск
Список
Период
Сортировка
От Masterprojekt Naumann1
Тема Re: Convert Datum* to char*
Дата
Msg-id CANjJybTR7-h=rg2m9B-9HSJ-_nqYueC+Suo0sBCaa+T_YLyR5Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Convert Datum* to char*  (Thomas Fanghaenel <tfanghaenel@salesforce.com>)
Ответы Re: Convert Datum* to char*  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2014/1/6 Thomas Fanghaenel <span dir="ltr"><<a
href="mailto:tfanghaenel@salesforce.com"target="_blank">tfanghaenel@salesforce.com</a>></span><br /><blockquote
class="gmail_quote"style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div
class="im">OnMon, Jan 6, 2014 at 8:09 AM, Masterprojekt Naumann1<br /> <<a
href="mailto:mpws2013n1@gmail.com">mpws2013n1@gmail.com</a>>wrote:<br /> > Why is the memory of the variable
uninitialized?<br/><br /></div>Are you checking that "i <= slot->tts_nvalid" before accessing the<br />
tts_valuesand tts_isnull arrays?<br /></blockquote></div><br /><br /></div><div class="gmail_extra">Thanks for your
ideas!I could fix the segmentation fault. I have to check both, slot->tts_isnull and 0 == slot->tts_values[i]. If
bothare false, I can convert the value with the method TextDatumGetCString(...).<br /> Nevertheless,
slot->tts_nvalidis always 0. I hope that there is no other problem.<br /></div></div> 

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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: generic pseudotype IO functions?
Следующее
От: Robert Haas
Дата:
Сообщение: Re: dynamic shared memory and locks