Skip Menu |

This queue is for tickets about the DBD-DB2 CPAN distribution.

Report information
The Basics
Id: 28623
Status: resolved
Priority: 0/
Queue: DBD-DB2

People
Owner: opendev [...] us.ibm.com
Requestors: RKOBES [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.1
Fixed in: (no value)



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)); }
RT-Send-CC: opendev [...] us.ibm.com
This has been fixed in later issue. Thus I am closing this issue. Thanks -- Thanks IBM OpenSource Application Development Team India Software Labs, Bangalore (India)