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/ -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers