mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-09 01:06:00 +00:00
Merge 90ccab7159910ac32729302e2a25871b0c966742 into 3b58ebc5f309708bde0ad26eef73e606144792f6
This commit is contained in:
commit
d832233a28
@ -243,7 +243,7 @@ static int db_is_up(switch_odbc_handle_t *handle)
|
|||||||
|
|
||||||
SQLSetStmtAttr(stmt, SQL_ATTR_QUERY_TIMEOUT, (SQLPOINTER)30, 0);
|
SQLSetStmtAttr(stmt, SQL_ATTR_QUERY_TIMEOUT, (SQLPOINTER)30, 0);
|
||||||
|
|
||||||
if (SQLPrepare(stmt, sql, SQL_NTS) != SQL_SUCCESS) {
|
if (SQLExecDirect(stmt, sql, SQL_NTS) != SQL_SUCCESS) {
|
||||||
code = __LINE__;
|
code = __LINE__;
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
@ -473,8 +473,8 @@ SWITCH_DECLARE(switch_odbc_status_t) switch_odbc_handle_exec(switch_odbc_handle_
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (SQLPrepare(stmt, (unsigned char *) sql, SQL_NTS) != SQL_SUCCESS) {
|
if (SQLExecDirect(stmt, (unsigned char *) sql, SQL_NTS) != SQL_SUCCESS) {
|
||||||
err2 = "SQLPrepare failed.";
|
err2 = "SQLExecDirect failed.";
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -572,7 +572,7 @@ SWITCH_DECLARE(switch_odbc_status_t) switch_odbc_handle_callback_exec_detailed(c
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (SQLPrepare(stmt, (unsigned char *) sql, SQL_NTS) != SQL_SUCCESS) {
|
if (SQLExecDirect(stmt, (unsigned char *) sql, SQL_NTS) != SQL_SUCCESS) {
|
||||||
x_err = "Unable to prepare SQL statement!";
|
x_err = "Unable to prepare SQL statement!";
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user