Modified DAL and DB2 adapter to allow use of the official ibm_db_dbi driver or ODBC.
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user