diff options
Diffstat (limited to 'plugins/omlibdbi/omlibdbi.c')
-rw-r--r-- | plugins/omlibdbi/omlibdbi.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/plugins/omlibdbi/omlibdbi.c b/plugins/omlibdbi/omlibdbi.c index 02b56b51..0b0f4abf 100644 --- a/plugins/omlibdbi/omlibdbi.c +++ b/plugins/omlibdbi/omlibdbi.c @@ -153,23 +153,13 @@ static rsRetVal initConn(instanceData *pData, int bSilent) ASSERT(pData != NULL); ASSERT(pData->conn == NULL); + // TODO: add config setting for driver directory iDrvrsLoaded = dbi_initialize(NULL); - //iDrvrsLoaded = dbi_initialize("/usr/lib64/dbd/"); -RUNLOG_VAR("%d", iDrvrsLoaded); if(iDrvrsLoaded == 0) { logerror("libdbi error: no dbi drivers present on this system - suspending. Install drivers!"); ABORT_FINALIZE(RS_RET_SUSPENDED); } - // debug drivers - dbi_driver drvr; - drvr = NULL; - do { -RUNLOG; - drvr = dbi_driver_list(drvr); - dbgprintf("driver: '%s'\n", dbi_driver_get_name(drvr)); - } while(drvr != NULL); - RUNLOG_VAR("%s", pData->drvrName); pData->conn = dbi_conn_new((char*)pData->drvrName); if(pData->conn == NULL) { |