diff options
Diffstat (limited to 'sql/sql_insert.cc')
-rw-r--r-- | sql/sql_insert.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc index 9f26d0c4a09..713cc7465fe 100644 --- a/sql/sql_insert.cc +++ b/sql/sql_insert.cc @@ -3564,9 +3564,8 @@ int select_create::write_to_binlog(bool is_trans, int errcode) if (f != field) query.append(STRING_WITH_LEN(",")); - query.append(STRING_WITH_LEN("`")); - query.append((*f)->field_name, strlen((*f)->field_name)); - query.append(STRING_WITH_LEN("`")); + append_identifier(thd, &query, (*f)->field_name, + strlen((*f)->field_name)); } query.append(STRING_WITH_LEN(") ")); |