[svn-commits] tilghman: trunk r612 - /trunk/apps/app_addon_sql_mysql.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Fri May 30 11:49:07 CDT 2008
Author: tilghman
Date: Fri May 30 11:49:06 2008
New Revision: 612
URL: http://svn.digium.com/view/asterisk-addons?view=rev&rev=612
Log:
When the result id is invalid, indicate that the fetch returned no rows
(closes issue #12758)
Reported by: atis
Patches:
mysql_fetch_bad_conn.patch uploaded by atis (license 242)
Modified:
trunk/apps/app_addon_sql_mysql.c
Modified: trunk/apps/app_addon_sql_mysql.c
URL: http://svn.digium.com/view/asterisk-addons/trunk/apps/app_addon_sql_mysql.c?view=diff&rev=612&r1=611&r2=612
==============================================================================
--- trunk/apps/app_addon_sql_mysql.c (original)
+++ trunk/apps/app_addon_sql_mysql.c Fri May 30 11:49:06 2008
@@ -402,6 +402,7 @@
}
return 0;
} else {
+ set_asterisk_int(chan, args.resultvar, 0);
ast_log(LOG_WARNING, "aMYSQL_fetch: Invalid result identifier %d passed\n", resultid);
}
} else {
More information about the svn-commits
mailing list