diff --git a/src/switch_odbc.c b/src/switch_odbc.c index eaa6e9830c..19cff2d7d0 100644 --- a/src/switch_odbc.c +++ b/src/switch_odbc.c @@ -301,7 +301,7 @@ SWITCH_DECLARE(switch_odbc_status_t) switch_odbc_handle_exec(switch_odbc_handle_ result = SQLExecute(stmt); - if (result != SQL_SUCCESS && result != SQL_SUCCESS_WITH_INFO) { + if (result != SQL_SUCCESS && result != SQL_SUCCESS_WITH_INFO && result != SQL_NO_DATA) { goto error; }