Re: Split-up ECPG patches - Mailing list pgsql-hackers

From Boszormenyi Zoltan
Subject Re: Split-up ECPG patches
Date
Msg-id 4A882CF2.6010701@cybertec.at
Whole thread Raw
In response to Re: Split-up ECPG patches  (Michael Meskes <meskes@postgresql.org>)
Responses Re: Split-up ECPG patches  (Michael Meskes <meskes@postgresql.org>)
List pgsql-hackers
Michael Meskes írta:
> On Fri, Aug 14, 2009 at 10:12:24PM +0200, Boszormenyi Zoltan wrote:
>   
>> Will add the ecpg_log(). What the code does is:
>> - sets up a minimal SQLDA on the first call (called with NULL ptr),
>>   so the field types and field names and some other properties are in place.
>>   doesn't do further work if out of memory
>>     
>
> So this is an empty but compatible sqlda, right? 
>   

Yes. Is's the same sqlda as DESCRIBE would create.

>> - upon subsequent calls it checks whether a "compatible" sqlda was
>> passed in,
>>   i.e. same number of fields, same types, etc. Sanity check. Doesn't do
>> further
>>   work if the check fails.
>>     
>
> What heppens if the sqlda is incompatible?
>   

Returns false?

> Michael
>   


-- 
Bible has answers for everything. Proof:
"But let your communication be, Yea, yea; Nay, nay: for whatsoever is more
than these cometh of evil." (Matthew 5:37) - basics of digital technology.
"May your kingdom come" - superficial description of plate tectonics

----------------------------------
Zoltán Böszörményi
Cybertec Schönig & Schönig GmbH
http://www.postgresql.at/



pgsql-hackers by date:

Previous
From: Michael Meskes
Date:
Subject: Re: Split-up ECPG patches
Next
From: Tom Lane
Date:
Subject: Re: GRANT ON ALL IN schema