Subject: | order of variable declaration for Win32 in DB2.xs |
In DBD-DB2-1.1, there's a problem in the order of declaration of a
variable in DB2.xs that prevents compilation on Win32 using VC++ 6. This
is fixed with the attached patch - with it, all supplied tests pass.
Subject: | DB2.xs.diff |
--- DB2.xs.orig 2007-08-01 23:00:12.312500000 -0500
+++ DB2.xs 2007-08-01 23:00:09.359375000 -0500
@@ -116,12 +116,12 @@
SV * dbh
CODE:
D_imp_dbh(dbh);
+ SV **svp = hv_fetch((HV*)SvRV(dbh), "CachedKids", 10, 0);
if ( !DBIc_ACTIVE(imp_dbh) ) {
XSRETURN_YES;
}
/* pre-disconnect checks and tidy-ups */
- SV **svp = hv_fetch((HV*)SvRV(dbh), "CachedKids", 10, 0);
if (svp && SvROK(*svp) && SvTYPE(SvRV(*svp)) == SVt_PVHV) {
hv_clear((HV*)SvRV(dbh));
}