Re: using arrays within structure in ECPG
От | Ashutosh Bapat |
---|---|
Тема | Re: using arrays within structure in ECPG |
Дата | |
Msg-id | CAFjFpReujo8H_KeHF3k1Zbk7LL7AX2cQ2d_r_8R6fnDStpD1kA@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: using arrays within structure in ECPG (Michael Meskes <meskes@postgresql.org>) |
Ответы |
Re: using arrays within structure in ECPG
|
Список | pgsql-hackers |
I have one more doubt, regarding offsets.
In ECPGdump_a_simple() we have codeif (siz == NULL || strlen(siz) == 0 || strcmp(arrsize, "0") == 0 || strcmp(arrsize, "1") == 0)
fprintf(o, "\n\t%s,%s,(long)%s,(long)%s,%s, ", get_type(type), variable, varcharsize, arrsize, offset);
else
fprintf(o, "\n\t%s,%s,(long)%s,(long)%s,%s, ", get_type(type), variable, varcharsize, arrsize, siz);
On Wed, Apr 2, 2014 at 3:10 PM, Michael Meskes <meskes@postgresql.org> wrote:
On Wed, Apr 02, 2014 at 09:33:15AM +0530, Ashutosh Bapat wrote:Well, I think this goes without saying.
> So, you are saying that we should try to catch such errors and report
> during pre-compile time. That's better than silently corrupting the data.
Michael
--
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org
Jabber: michael.meskes at gmail dot com
VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL
--
Best Wishes,
Ashutosh Bapat
EnterpriseDB Corporation
The Postgres Database Company
Ashutosh Bapat
EnterpriseDB Corporation
The Postgres Database Company
В списке pgsql-hackers по дате отправления: