Merge pull request #1069 from taosdata/feature/fangdoc

#1065 add quotes to binary values
This commit is contained in:
plum-lihui 2020-01-04 16:05:09 +08:00 committed by GitHub
commit 9dd6cd0162
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -842,7 +842,7 @@ void generateData(char *res, char **data_type, int num_of_cols, int64_t timestam
} else if (strcasecmp(data_type[i % c], "binary") == 0) {
char s[len_of_binary];
rand_string(s, len_of_binary);
pstr += sprintf(pstr, ", %s", s);
pstr += sprintf(pstr, ", \"%s\"", s);
}
}