]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
7 ate 9
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 2 Nov 2012 17:49:39 +0000 (12:49 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 2 Nov 2012 17:49:39 +0000 (12:49 -0500)
src/switch_core_sqldb.c

index ac32d7d146f3806ef55b225c690541ea95ac50d3..7fa478815e211905a915c5656ebca6b08165c501 100644 (file)
@@ -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;