mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-21 19:45:34 +00:00
7 ate 9
This commit is contained in:
parent
784380a650
commit
b002394f21
@ -330,13 +330,13 @@ SWITCH_DECLARE(switch_status_t) _switch_cache_db_get_db_handle_dsn(switch_cache_
|
|||||||
if (!strncasecmp(dsn, "pgsql://", 8)) {
|
if (!strncasecmp(dsn, "pgsql://", 8)) {
|
||||||
type = SCDB_TYPE_PGSQL;
|
type = SCDB_TYPE_PGSQL;
|
||||||
connection_options.pgsql_options.dsn = (char *)(dsn + 8);
|
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;
|
type = SCDB_TYPE_ODBC;
|
||||||
|
|
||||||
if (i) {
|
if (i) {
|
||||||
switch_set_string(tmp, dsn);
|
switch_set_string(tmp, dsn);
|
||||||
} else {
|
} else {
|
||||||
switch_set_string(tmp, dsn+8);
|
switch_set_string(tmp, dsn+7);
|
||||||
}
|
}
|
||||||
|
|
||||||
connection_options.odbc_options.dsn = tmp;
|
connection_options.odbc_options.dsn = tmp;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user