]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add no_data as success (thx rupa)
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 19 Nov 2008 15:24:30 +0000 (15:24 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 19 Nov 2008 15:24:30 +0000 (15:24 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10455 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_odbc.c

index eaa6e9830cdbeb38198f89c2671c057b4859b6c0..19cff2d7d01a2fe669f99a3ed9f64f13d795bf1d 100644 (file)
@@ -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;
        }