Commit 846802e3 authored by Alexey Bazhin's avatar Alexey Bazhin Committed by GeorgyKirichenko
Browse files

Quote mysql field names

parent 07f8aaa1
......@@ -39,8 +39,9 @@ void DBReader::DumpTables(std::string& binlog_name, unsigned long& binlog_pos, c
const auto it = table->filter.find(ptr_field->field_name);
if (it != table->filter.end()) {
filter_.emplace_back(it->second.first, ptr_field);
s_fields += '`';
s_fields += ptr_field->field_name;
s_fields += ',';
s_fields += "`,";
}
}
s_fields.pop_back();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment