[1/3] gcc-4.5: Fix enum type mismatches in switch_core_sqldb.c.
This commit is contained in:
parent
f772b05da8
commit
16d672a273
|
@ -311,7 +311,7 @@ SWITCH_DECLARE(switch_status_t) _switch_cache_db_get_db_handle(switch_cache_db_h
|
|||
|
||||
if ((odbc_dbh = switch_odbc_handle_new(connection_options->odbc_options.dsn,
|
||||
connection_options->odbc_options.user, connection_options->odbc_options.pass))) {
|
||||
if (switch_odbc_handle_connect(odbc_dbh) != SWITCH_STATUS_SUCCESS) {
|
||||
if (switch_odbc_handle_connect(odbc_dbh) != SWITCH_ODBC_SUCCESS) {
|
||||
switch_odbc_handle_destroy(&odbc_dbh);
|
||||
}
|
||||
}
|
||||
|
@ -386,7 +386,7 @@ static switch_status_t switch_cache_db_execute_sql_real(switch_cache_db_handle_t
|
|||
case SCDB_TYPE_ODBC:
|
||||
{
|
||||
switch_odbc_statement_handle_t stmt = NULL;
|
||||
if ((status = switch_odbc_handle_exec(dbh->native_handle.odbc_dbh, sql, &stmt, NULL)) != SWITCH_ODBC_SUCCESS) {
|
||||
if ((status = switch_odbc_handle_exec(dbh->native_handle.odbc_dbh, sql, &stmt, NULL)) != SWITCH_STATUS_SUCCESS) {
|
||||
errmsg = switch_odbc_handle_get_error(dbh->native_handle.odbc_dbh, stmt);
|
||||
}
|
||||
switch_odbc_statement_handle_free(&stmt);
|
||||
|
|
Loading…
Reference in New Issue