Commit 6049ca95 authored by 某某某's avatar 某某某
Browse files

修复了转colstr

parent 15b4798f
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -172,7 +172,7 @@ void QlManager::select_from(std::unique_ptr<AbstractExecutor> executorTreeRoot,
} else if (col.type == TYPE_FLOAT) {
col_str = std::to_string(*(float *)rec_buf);
} else if (col.type == TYPE_DATETIME) {
col_str = std::string((datetime_t)rec_buf);
col_str = std::string((char *) rec_buf, col.len);
} else if (col.type == TYPE_STRING) {
col_str = std::string((char *)rec_buf, col.len);
col_str.resize(strlen(col_str.c_str()));
......
Supports Markdown
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