misc fixes

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5053 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale committed 2007-05-01 16:12:02 +00:00
1 parent 578e2cd389
commit d99b4bb86f
5 files changed
+679 -280

No files matched your search

+5
View File
@@ -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;
}