Subject: | PATCH: Keeping DBD-Sybase compatible with older compilers |
This patch allows DBD::Sybase to still be built by very old compilers.
Subject: | dbd_sybase_declare.patch |
diff -Naur old/dbdimp.c new/dbdimp.c
--- old/dbdimp.c 2011-10-03 01:56:17.000000000 +1100
+++ new/dbdimp.c 2013-03-30 19:16:54.959739974 +1100
@@ -3843,6 +3843,7 @@
dTHX;
D_imp_dbh_from_sth;
int restype;
+ CS_DATAFMT datafmt;
#if 0
/* XXX */
@@ -3913,7 +3914,6 @@
/* Since we have a parameter result, bind all the output parameters */
for (i = 0; i < foundOutput; i++) {
phs = params[i].phs;
- CS_DATAFMT datafmt;
/* find the maxlenght through ct_describe */
if( ct_describe(imp_sth->cmd, i+1, &datafmt) != CS_SUCCEED)
croak("ct_describe() failed");