From: Jeff Lenk Date: Tue, 24 Dec 2013 17:37:09 +0000 (-0600) Subject: FS-5585 --resolve X-Git-Tag: v1.4.2~2^2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f03e9fe8af867c7c8939a6e7120b468d77bbbf8b;p=thirdparty%2Ffreeswitch.git FS-5585 --resolve --- diff --git a/src/switch_core_sqldb.c b/src/switch_core_sqldb.c index c53fc75a40..05d27c6caf 100644 --- a/src/switch_core_sqldb.c +++ b/src/switch_core_sqldb.c @@ -347,7 +347,7 @@ SWITCH_DECLARE(switch_status_t) _switch_cache_db_get_db_handle_dsn(switch_cache_ } else if (!strncasecmp(dsn, "sqlite://", 9)) { type = SCDB_TYPE_CORE_DB; connection_options.core_db_options.db_path = (char *)(dsn + 9); - } else if ((!(i = strncasecmp(dsn, "odbc://", 7))) || strchr(dsn, ':')) { + } else if ((!(i = strncasecmp(dsn, "odbc://", 7))) || strchr(dsn+2, ':')) { type = SCDB_TYPE_ODBC; if (i) {