summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorMichael L. Young <elgueromexicano@gmail.com>2014-01-23 22:56:54 +0000
committerMichael L. Young <elgueromexicano@gmail.com>2014-01-23 22:56:54 +0000
commit4e866029218780ed8a1a20a6740b046c7dc8abf1 (patch)
treec3a808f3b4e4628aa3846bf5519d7e2c5413bad3 /addons
parent9b8f2db47e3f17a9b5dd9d428d0b33ec700e04f2 (diff)
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 patch 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 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@406312 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'addons')
-rw-r--r--addons/res_config_mysql.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/res_config_mysql.c b/addons/res_config_mysql.c
index f9201698c..e7bbfb07e 100644
--- a/addons/res_config_mysql.c
+++ b/addons/res_config_mysql.c
@@ -613,7 +613,7 @@ static int update_mysql(const char *database, const char *tablename, const char
}
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) {