提交 1caaf88c 编写于 作者: H huili

[Add single quotation marks to nchar fields when export to a file]

上级 0015053b
...@@ -480,7 +480,7 @@ int shellDumpResult(TAOS *con, char *fname, int *error_no) { ...@@ -480,7 +480,7 @@ int shellDumpResult(TAOS *con, char *fname, int *error_no) {
case TSDB_DATA_TYPE_NCHAR: case TSDB_DATA_TYPE_NCHAR:
memset(t_str, 0, TSDB_MAX_BYTES_PER_ROW); memset(t_str, 0, TSDB_MAX_BYTES_PER_ROW);
memcpy(t_str, row[i], fields[i].bytes); memcpy(t_str, row[i], fields[i].bytes);
fprintf(fp, "%s", t_str); fprintf(fp, "\'%s\'", t_str);
break; break;
case TSDB_DATA_TYPE_TIMESTAMP: case TSDB_DATA_TYPE_TIMESTAMP:
fprintf(fp, "%ld", *(int64_t *)row[i]); fprintf(fp, "%ld", *(int64_t *)row[i]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册