[asterisk-commits] elguero: trunk r406312 - in /trunk: ./ addons/res_config_mysql.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jan 23 16:56:56 CST 2014
Author: elguero
Date: Thu Jan 23 16:56:54 2014
New Revision: 406312
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=406312
Log:
res_config_mysql: Fix Setting The Column Name Incorrectly
When support for a realtime sorcery module was added in revision 386731, the
wrong property was accidentally used for setting the column name to be updated
in the database table. This patches fixes the typo.
(closes issue ASTERISK-23177)
Reported by: Denis
Tested by: Denis
Patches:
asterisk-23177-use-field-name.diff by Michael L. Young (license 5026)
........
Merged revisions 406311 from http://svn.asterisk.org/svn/asterisk/branches/12
Modified:
trunk/ (props changed)
trunk/addons/res_config_mysql.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-12-merged' - no diff available.
Modified: trunk/addons/res_config_mysql.c
URL: http://svnview.digium.com/svn/asterisk/trunk/addons/res_config_mysql.c?view=diff&rev=406312&r1=406311&r2=406312
==============================================================================
--- trunk/addons/res_config_mysql.c (original)
+++ trunk/addons/res_config_mysql.c Thu Jan 23 16:56:54 2014
@@ -613,7 +613,7 @@
}
ESCAPE_STRING(buf, field->value);
- ast_str_append(&sql, 0, ", `%s` = '%s'", field->value, ast_str_buffer(buf));
+ ast_str_append(&sql, 0, ", `%s` = '%s'", field->name, ast_str_buffer(buf));
/* If the column length isn't long enough, give a chance to lengthen it. */
if (strncmp(column->type, "char", 4) == 0 || strncmp(column->type, "varchar", 7) == 0) {
More information about the asterisk-commits
mailing list