Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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: ecpg_varchar.diff
Description: text/x-diff (1.3 KB)

In response to

Responses

pgsql-bugs by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group