[Informixdb-cvs] SF.net SVN: informixdb: [166] trunk/informixdb
Brought to you by:
chaese,
f-apolloner
From: <ch...@us...> - 2007-10-15 01:47:17
|
Revision: 166 http://informixdb.svn.sourceforge.net/informixdb/?rev=166&view=rev Author: chaese Date: 2007-10-14 18:47:21 -0700 (Sun, 14 Oct 2007) Log Message: ----------- Let's assume for now that ESQL/C understands DESCRIBE INPUT iff it's version 9.40 or better. Modified Paths: -------------- trunk/informixdb/ext/_informixdb.ec trunk/informixdb/setup.py Modified: trunk/informixdb/ext/_informixdb.ec =================================================================== --- trunk/informixdb/ext/_informixdb.ec 2007-10-14 17:40:37 UTC (rev 165) +++ trunk/informixdb/ext/_informixdb.ec 2007-10-15 01:47:21 UTC (rev 166) @@ -1939,6 +1939,7 @@ (self->stype == 0 || (self->stype == SQ_EXECPROC && tdaOut->sqld > 0) ); if (self->has_output) { +$ifdef HAVE_DESCRIBE_INPUT; if (self->conn->can_describe_input) { struct sqlda *tda = NULL; EXEC SQL DESCRIBE INPUT :queryName INTO tda; @@ -1948,6 +1949,7 @@ _da_free(tda); } } +$endif; bindOutput(self); switch (self->is_hold + 2*self->is_scroll) { case 3: Modified: trunk/informixdb/setup.py =================================================================== --- trunk/informixdb/setup.py 2007-10-14 17:40:37 UTC (rev 165) +++ trunk/informixdb/setup.py 2007-10-15 01:47:21 UTC (rev 166) @@ -80,6 +80,8 @@ esqlversion = 850 if esqlversion >= 900: self.esql_parts.append("-EDHAVE_ESQL9") + if esqlversion >= 940: + self.esql_parts.append("-EDHAVE_DESCRIBE_INPUT") f = open(os.path.join("ext","esqlver.h"), "w") f.write("""\ #define DRIVER_NAME "%(driver_name)s" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |