Re: using arrays within structure in ECPG

Поиск
Список
Период
Сортировка
От Ashutosh Bapat
Тема Re: using arrays within structure in ECPG
Дата
Msg-id CAFjFpRe6dxuCr3i4BqMuPj-AW8qPNp0sa5nsU4-pOfRNxt3VHg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: using arrays within structure in ECPG  (Michael Meskes <meskes@postgresql.org>)
Ответы Re: using arrays within structure in ECPG  (Michael Meskes <meskes@postgresql.org>)
Список pgsql-hackers
<div dir="ltr">So, you are saying that we should try to catch such errors and report during pre-compile time. That's
betterthan silently corrupting the data.<br /></div><div class="gmail_extra"><br /><br /><div class="gmail_quote"> On
Tue,Apr 1, 2014 at 10:20 PM, Michael Meskes <span dir="ltr"><<a href="mailto:meskes@postgresql.org"
target="_blank">meskes@postgresql.org</a>></span>wrote:<br /><blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px#ccc solid;padding-left:1ex"> Hi Ashutosh,<br /><div class=""><br /> > I tried to fix the offset
problem.PFA the patch. It does solve the<br /> > problem of setting wrong offset in ECPGdo() call.<br /><br
/></div>Thanks,looks correct to me.<br /><div class=""><br /> > But then there is problem of interpreting the result
fromserver as an<br /> > array within array of structure. The problem is there is in<br /> > ecpg_get_data().
Thisfunction can not understand that the "field" is an<br /> > array of integers (or for that matter array of
anything)and store all<br /> > the values in contiguous memory at the given address.<br /><br /></div>I guess I know
wherethat comes from, without actually looking at the<br /> code, though. Nested arrays are not supported by ecpg and
the<br/> precompiler spits out an error message, just check preproc/type.c.<br /> However, in your example you have the
structessantially sandwiched<br /> between the arrays and the (too) simple check in that file doesn't<br /> notice, but
becausethe implementation is nevertheless lacking.<br /><br /> I'm sorry, but this sounds like a missing feature
bug.<br/><div class="HOEnZb"><div class="h5"><br /> Michael<br /> --<br /> Michael Meskes<br /> Michael at Fam-Meskes
dotDe, Michael at Meskes dot (De|Com|Net|Org)<br /> Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot
Org<br/> Jabber: michael.meskes at gmail dot com<br /> VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux,
PostgreSQL<br/></div></div></blockquote></div><br /><br clear="all" /><br />-- <br /><div dir="ltr">Best Wishes,<br
/>AshutoshBapat<br />EnterpriseDB Corporation<br />The Postgres Database Company<br /></div></div> 

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [BUGS] BUG #9518: temporary login failure - "missing pg_hba entry"
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: It seems no Windows buildfarm members are running find_typedefs