未验证 提交 89d57d85 编写于 作者: T ts 提交者: GitHub

fix: preserve whitespaces in chars when load data from file (#96)

上级 120de0e0
......@@ -220,7 +220,9 @@ RC insert_record_from_file(
const FieldMeta *field = table->table_meta().field(i + sys_field_num);
std::string &file_value = file_values[i];
common::strip(file_value);
if (field->type() != CHARS) {
common::strip(file_value);
}
switch (field->type()) {
case INTS: {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册