]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Fix fallback to CORE_DB when MSSQL fails init
authorJeff Lenk <jeff@jefflenk.com>
Fri, 10 Dec 2010 05:05:49 +0000 (23:05 -0600)
committerJeff Lenk <jeff@jefflenk.com>
Fri, 10 Dec 2010 05:05:49 +0000 (23:05 -0600)
src/switch_core_sqldb.c

index 4364ff2844cce0319cfc041b6540369b5bb7fa6d..b561ebe77589c45032bf47cee3df571ad3306f35 100644 (file)
@@ -1624,6 +1624,7 @@ switch_status_t switch_core_sqldb_start(switch_memory_pool_t *pool, switch_bool_
                        runtime.odbc_dsn = NULL;
                        runtime.odbc_user = NULL;
                        runtime.odbc_pass = NULL;
+                       runtime.odbc_dbtype = DBTYPE_DEFAULT;
                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Falling back to core_db.\n");
                        goto top;
                }