Re: BUG #4549: ecpg produces code that don't compile

From: Michael Meskes <meskes(at)postgresql(dot)org>
To: Clemens Fischer <cfi(at)mbs-software(dot)de>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4549: ecpg produces code that don't compile
Date: 2008-11-26 13:20:19
Message-ID: 20081126132019.GA12021@feivel.credativ.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Tue, Nov 25, 2008 at 10:44:32AM +0000, Clemens Fischer wrote:
> Using ecpg and gcc generates the following output:
> ecpg -t -o ecpgtest-multidim.c ecpgtest-multidim.pgc
> cc -c -I/usr/local/pgsql/include ecpgtest-multidim.c
> ecpgtest-multidim.pgc: In function `main':
> ecpgtest-multidim.pgc:30: parse error before `_13'
> cc: /usr/qnx630/host/qnx6/x86/usr/lib/gcc-lib/ntox86/2.95.3/cc1 error 33
> make: *** [ecpgtest-multidim.o] Error 1

Thanks for reporting. Fixed in CVS HEAD and 8.3.

Patch is attached, it was just a small oversight that happened when the new
varchar naming was introduced.

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
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes(at)jabber(dot)org
Go VfL Borussia! Go SF 49ers! Use Debian GNU/Linux! Use PostgreSQL!

Attachment Content-Type Size
ecpg_varchar.diff text/x-diff 1.3 KB

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message 劉大維 2008-11-26 13:31:13 PQescapeStringConn in C:\Program Files\PostgreSQL\8.3\lib not found"
Previous Message John R Pierce 2008-11-26 10:06:24 Re: could not read block 77 of relation 1663/16385/388818775