[asterisk-commits] tilghman: branch 1.6.2 r308990 - /branches/1.6.2/funcs/func_odbc.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Feb 28 03:32:30 CST 2011
Author: tilghman
Date: Mon Feb 28 03:32:22 2011
New Revision: 308990
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=308990
Log:
Statements updating zero rows may return SQL_NO_DATA. This is fine; it's handled.
(closes issue #18815)
Reported by: irroot
Patches:
func_odbc.insert_nodata.patch uploaded by irroot (license 52)
Modified:
branches/1.6.2/funcs/func_odbc.c
Modified: branches/1.6.2/funcs/func_odbc.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/funcs/func_odbc.c?view=diff&rev=308990&r1=308989&r2=308990
==============================================================================
--- branches/1.6.2/funcs/func_odbc.c (original)
+++ branches/1.6.2/funcs/func_odbc.c Mon Feb 28 03:32:22 2011
@@ -170,7 +170,7 @@
}
res = SQLExecDirect(stmt, (unsigned char *)sql, SQL_NTS);
- if ((res != SQL_SUCCESS) && (res != SQL_SUCCESS_WITH_INFO)) {
+ if ((res != SQL_SUCCESS) && (res != SQL_SUCCESS_WITH_INFO) && (res != SQL_NO_DATA)) {
if (res == SQL_ERROR) {
int i;
SQLINTEGER nativeerror=0, numfields=0;
More information about the asterisk-commits
mailing list