Modified: freeswitch/trunk/src/switch_core_sqldb.c (17330 => 17331)
--- freeswitch/trunk/src/switch_core_sqldb.c 2010-04-17 13:05:48 UTC (rev 17330)
+++ freeswitch/trunk/src/switch_core_sqldb.c 2010-04-17 11:13:25 UTC (rev 17331)
@@ -311,7 +311,7 @@
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 @@
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);