[Zope-DB] use with unixODBC

Dirk Datzert dirk.datzert@tks-rasselstein.thyssenkrupp.com
Tue, 29 Oct 2002 23:03:14 +0100


Dies ist eine mehrteilige Nachricht im MIME-Format.
--------------46A3338349B883C580D076CA
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi,

I think that I got ZODBCDA running with unixODBC drivers. Don't know if
this is some point of interessed, but I sent you the little patch.

Regards,
Dirk
--------------46A3338349B883C580D076CA
Content-Type: text/plain; charset=us-ascii;
 name="ZODBCDA-unixODBC.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="ZODBCDA-unixODBC.patch"

diff -uNr ZODBCDA/src/Setup /tmp/lib/python/Products/ZODBCDA/src/Setup
--- ZODBCDA/src/Setup	Tue Oct 29 22:45:32 2002
+++ /tmp/lib/python/Products/ZODBCDA/src/Setup	Wed Jan  6 20:20:06 1999
@@ -1,10 +1,7 @@
 *shared*
 
-# Use this for Linux unixODBC
-sql sql.c -DOS_LINUX -L/usr/local/lib -lodbc -I/usr/local/include
-
 # Use this for Solid
-#sql sql.c -DSOLIDSQLAPI -I/usr/local/solid/include /usr/local/solid/lib/scllux22.a
+sql sql.c -DSOLIDSQLAPI -I/usr/local/solid/include /usr/local/solid/lib/scllux22.a
 
 # Or maybe this for Solid 2.3, based ob feedback from Andrew Kuchling:
 #sql sql.c -DSOLIDSQLAPI -I/usr/local/solid/include -L/usr/local/solid/lib -lsolcli
diff -uNr ZODBCDA/src/sql.c /tmp/lib/python/Products/ZODBCDA/src/sql.c
--- ZODBCDA/src/sql.c	Tue Oct 29 20:22:39 2002
+++ /tmp/lib/python/Products/ZODBCDA/src/sql.c	Fri Jan  8 16:30:25 1999
@@ -585,11 +585,7 @@
 }
 
 #else
-
-#if ! defined OS_LINUX
 #include <windows.h>
-#endif /* ! defined OS_LINUX  */
-
 #include "sql.h"
 #include "sqlext.h"
 #endif

--------------46A3338349B883C580D076CA--