On Wed, 26 Apr 2000, Michael hall wrote:
 
> Just tried it here and aside from some warnings it compiled and passed all
> its tests. Can't say whether it works or not though as Msql-Mysql doesn't
> compile, you got a patch hiding for that somewhere too :-)

sure :)  again, just compiles, not sure if it works.
 
> PS: Mind if I post your message/patch on 'dbi-users' for Tim's benefit ?

not at all, but i doubt either patch is quite right (the mysql one esp. is
a quick hack)

--- dbdimp.h~   Tue Jul 13 01:14:45 1999
+++ dbdimp.h    Wed Apr 26 01:27:57 2000
@@ -29,6 +29,10 @@
  */
 #include <DBIXS.h>  /* installed by the DBI module                        */
 
+#ifdef USE_ITHREADS
+#define dbis ((dbistate_t*)SvIVX(DBISTATE_ADDRSV))
+#endif
+
 #include "myMsql.h"
 
 
--- dbdimp.c~   Sun Oct 10 05:08:11 1999
+++ dbdimp.c    Wed Apr 26 01:27:51 2000
@@ -373,7 +373,11 @@
  **************************************************************************/
 
 void dbd_init(dbistate_t* dbistate) {
+#ifdef USE_ITHREADS
+    sv_setiv(DBISTATE_ADDRSV, (void*)dbistate);
+#else
     DBIS = dbistate;
+#endif
 }
 
 

Reply via email to