From: Anthony Minessale Date: Fri, 2 Nov 2012 17:49:39 +0000 (-0500) Subject: 7 ate 9 X-Git-Tag: v1.3.1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b002394f2102fddd78dc87373fd227a997440768;p=thirdparty%2Ffreeswitch.git 7 ate 9 --- diff --git a/src/switch_core_sqldb.c b/src/switch_core_sqldb.c index ac32d7d146..7fa478815e 100644 --- a/src/switch_core_sqldb.c +++ b/src/switch_core_sqldb.c @@ -330,13 +330,13 @@ SWITCH_DECLARE(switch_status_t) _switch_cache_db_get_db_handle_dsn(switch_cache_ if (!strncasecmp(dsn, "pgsql://", 8)) { type = SCDB_TYPE_PGSQL; connection_options.pgsql_options.dsn = (char *)(dsn + 8); - } else if ((!(i = strncasecmp(dsn, "odbc://", 8))) || strchr(dsn, ':')) { + } else if ((!(i = strncasecmp(dsn, "odbc://", 7))) || strchr(dsn, ':')) { type = SCDB_TYPE_ODBC; if (i) { switch_set_string(tmp, dsn); } else { - switch_set_string(tmp, dsn+8); + switch_set_string(tmp, dsn+7); } connection_options.odbc_options.dsn = tmp;