Re: BUG #14267: ecpg bug causes hanging for certain data types - Mailing list pgsql-bugs

From Michael Meskes
Subject Re: BUG #14267: ecpg bug causes hanging for certain data types
Date
Msg-id 20160801051551.GA4672@feivel
Whole thread Raw
In response to BUG #14267: ecpg bug causes hanging for certain data types  (nilesoien@gmail.com)
List pgsql-bugs
On Wed, Jul 27, 2016 at 07:30:42PM +0000, nilesoien@gmail.com wrote:
> The following bug has been logged on the website:
> ...
> We have a program that compiles with ecpg that seemed to hang until we
> changed the type of a variable from "unsigned long long" to be simply "long
> long int".

Thanks for finding this.

> We think we've tracked this down somewhat.
>
> It appears that there might be a defect in the guard statement that appears
> on lines 377 and 378 of data.c (in the ECPG C preprocessor in PG version
> ...

And more thanks for tracking it down. I have no idea why this ages old code is
still in there. Apparently not many people use unsigned long long. Anyway, a
fix will be pushed as soon as I'm online again.

Michael
--
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Meskes at (Debian|Postgresql) dot Org
Jabber: michael at xmpp dot meskes dot org
VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL

pgsql-bugs by date:

Previous
From: Jens.Wilke@parcIT.de
Date:
Subject: missing comment in lwlock.c
Next
From: Andres Freund
Date:
Subject: Re: missing comment in lwlock.c