mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-27 13:44:16 +00:00
misc fixes
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5053 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
578e2cd389
commit
d99b4bb86f
5 files changed
+679
-280
No files matched your search
@@ -176,6 +176,11 @@ static int db_is_up(switch_odbc_handle_t *handle)
|
||||
char *err_str = NULL;
|
||||
SQLCHAR sql[] = "select 1";
|
||||
|
||||
if (!handle) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "No DB Handle\n");
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (SQLAllocHandle(SQL_HANDLE_STMT, handle->con, &stmt) != SQL_SUCCESS) {
|
||||
goto error;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user