Re: ECPG patch 2, SQLDA support

Boszormenyi Zoltan <zb@cybertec.at>

From: Boszormenyi Zoltan <zb@cybertec.at>
To: Michael Meskes <meskes@postgresql.org>
Cc: Jaime Casanova <jcasanov@systemguards.com.ec>, Alvaro Herrera <alvherre@commandprompt.com>, Dan Colish <dan@unencrypted.org>, Tom Lane <tgl@sss.pgh.pa.us>, Robert Haas <robertmhaas@gmail.com>, pgsql-hackers@postgresql.org, Hans-Juergen Schoenig <hs@cybertec.at>
Date: 2009-12-14T12:10:22Z
Lists: pgsql-hackers

Attachments

Boszormenyi Zoltan írta:
> Will post a new version soon, Michael asked to turn it
> into an ECPG native feature instead of compat-mode-only.
>   

Attached is the new version that applies cleanly to HEAD.

Changes:
- SQLDA is now an ECPG native feature, not compat-only.
- As a consequence, and to be coherent with the Informix syntax,
  keyword "SQL" in SQL DESCRIPTOR is now mandatory
  to denote the named SQL descriptor. "DESCRIPTOR"
  without "SQL" means SQLDA descriptor
- SQLDA can now return more than one tuples using
  the ->desc_next pointer
- Bcause SQLDA is now a native feature, there are two
  sqlda.pgc regression tests, to test compat-only syntax in
  compat mode and multi-tuple return values in native mode.
- sqlda->sqlvar[i].sqltype uses ECPGt_* type symbols,
  no more funny-looking typedefs in sqltypes.h, it's a clean
  compat-only header, as it was before

Best regards,
Zoltán Böszörményi

-- 
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/