On Monday 17 February 2003 08:42, Jamie Rasmussen wrote: > This needs to be fixed in most of the database drivers - nsoracle, > nsodbc, nsmysql, etc. I know the ACT was working on a document > describing the (few) changes modules need for 4.0, can anyone comment on > the status of that?
I did this is the HEAD CVS of nspostgres: /* NOTE: for OpenACS use, you need to define FOR_ACS_USE! */ #include "ns.h" /* If we're under AOLserver 3, we don't need some things. the constant NS_AOLSERVER_3_PLUS is defined in AOLserver 3 and greater's ns.h */ #ifndef NS_DML #include "nsdb.h" #endif #ifndef NS_AOLSERVER_3_PLUS #include "nstcl.h" #endif /* NS_AOLSERVER_3_PLUS */ In AOLserver 3, NS_DML is defined in ns.h. In AS4, it is in nsdb.h. Likewise, in AS2.3.3 (which I still use on one machine) it is defined as it is in AS4. This works in both 3.x and 4.0 as tested here. I may roll a 4.0beta1 nspostgres later today. -- Lamar Owen WGCR Internet Radio 1 Peter 4:11
