Re: SQLDA fix for ECPG

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Boszormenyi Zoltan <zb(at)cybertec(dot)at>
Cc: PostgreSQL-development Hackers <pgsql-hackers(at)postgresql(dot)org>, Michael Meskes <meskes(at)postgresql(dot)org>
Subject: Re: SQLDA fix for ECPG
Date: 2011-11-13 16:27:11
Message-ID: 6624.1321201631@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Boszormenyi Zoltan <zb(at)cybertec(dot)at> writes:
> I had a report about ECPG code crashing which involved
> a query using a date field. Attached is a one liner fix to make
> the date type's offset computed consistently across
> sqlda_common_total_size(), sqlda_compat_total_size() and
> sqlda_native_total_size().

Is this really the only issue there? I notice discrepancies among those
three routines for some other types too, notably ECPGt_timestamp and
ECPGt_interval.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2011-11-13 16:31:31 Re: why do we need two snapshots per query?
Previous Message Tom Lane 2011-11-13 16:09:52 Re: why do we need two snapshots per query?