Modified DAL and DB2 adapter to allow use of the official ibm_db_dbi driver or ODBC.

This commit is contained in:
Stephen Tanner
2014-10-24 14:58:52 -04:00
parent b7b94ca6b5
commit b9fe941dcc
4 changed files with 22 additions and 4 deletions
+6
View File
@@ -144,6 +144,12 @@ if not 'google' in DRIVERS:
pyodbc = None
LOGGER.debug('no MSSQL/DB2/Teradata/Ingres driver pyodbc')
try:
import ibm_db_dbi
DRIVERS.append('ibm_db_dbi')
except ImportError:
LOGGER.debug('no DB2 driver ibm_db_dbi')
try:
import Sybase
DRIVERS.append('Sybase')