提交 6c8eb054 authored 作者: Nathan Neulinger's avatar Nathan Neulinger

mod_skinny: allow to work with native pgsql

上级 358b6e08
...@@ -1850,14 +1850,8 @@ switch_status_t skinny_profile_set(skinny_profile_t *profile, const char *var, c ...@@ -1850,14 +1850,8 @@ switch_status_t skinny_profile_set(skinny_profile_t *profile, const char *var, c
profile->keep_alive = atoi(val); profile->keep_alive = atoi(val);
} else if (!strcasecmp(var, "date-format")) { } else if (!strcasecmp(var, "date-format")) {
strncpy(profile->date_format, val, 6); strncpy(profile->date_format, val, 6);
} else if (!strcasecmp(var, "odbc-dsn")) { } else if (!strcasecmp(var, "odbc-dsn") && !zstr(val)) {
if (!zstr(val)) { profile->odbc_dsn = switch_core_strdup(profile->pool, val);
if (switch_odbc_available()) {
profile->odbc_dsn = switch_core_strdup(profile->pool, val);
} else {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "ODBC IS NOT AVAILABLE!\n");
}
}
} else if (!strcasecmp(var, "debug")) { } else if (!strcasecmp(var, "debug")) {
profile->debug = atoi(val); profile->debug = atoi(val);
} else if (!strcasecmp(var, "auto-restart")) { } else if (!strcasecmp(var, "auto-restart")) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论