[asterisk-dev] [Patch] Trivial app_addon_sql_mysql.c patch.
Eric Futch
efutch at nyct.net
Fri Apr 14 08:56:06 MST 2006
I saw there was some posts to the lists about getting the messages on the
console like this one "Apr 14 11:01:47 WARNING[8406]:
app_addon_sql_mysql.c:318 aMYSQL_fetch: ast_MYSQL_fetch: numFields=1" when
using Mysql.
This patch just changes one #ifdef to just #if to silence this warning
when EXTRA_LOG is defined as 0. All the others were #if, except for this
one. It's working fine on my Asterisk installation.
--- app_addon_sql_mysql.c.bak 2006-04-14 11:43:18.000000000 -0400
+++ app_addon_sql_mysql.c 2006-04-14 11:43:39.000000000 -0400
@@ -314,7 +314,7 @@
s6=mysqlrow[j];
pbx_builtin_setvar_helper(chan,s5,
s6 ? s6 : "NULL");
}
-#ifdef EXTRA_LOG
+#if EXTRA_LOG
ast_log(LOG_WARNING,"ast_MYSQL_fetch: numFields=%d\n",numFields);
#endif
set_asterisk_int(chan,fetchid_var,1); // try more rows
--
New York Connect Technical Support Staff
Eric Futch <efutch at nyct.net> (212) 293-2620
Weather for KNYC: Apr 14 10:51a EDT, 66F (19C), Partly Cloudy, Humidity 43%
More information about the asterisk-dev
mailing list