diff --git a/src/observer/storage/default/default_storage_stage.cpp b/src/observer/storage/default/default_storage_stage.cpp index d99820e91d4c2de7b77daacb5ff554746a31f50a..0ce0c451b123736bc6f33c036c5dbbde6b0458e0 100644 --- a/src/observer/storage/default/default_storage_stage.cpp +++ b/src/observer/storage/default/default_storage_stage.cpp @@ -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: {