同步source code

日期: 12-26
    revision: ee5b054c
This commit is contained in:
dengxuyue
2020-12-28 22:19:21 +08:00
parent b7337ff802
commit 1567043064
6076 changed files with 2376818 additions and 741042 deletions

View File

@ -330,7 +330,12 @@ static void tuple_to_jsoninfo(
/* print attribute type */
if (cols_type != NULL) {
cJSON* col_type = cJSON_CreateString(format_type_be(typid));
char* type_name = format_type_be(typid);
if (strlen(type_name) == strlen("clob") && strncmp(type_name, "clob", strlen("clob")) == 0) {
errno_t rc = strcpy_s(type_name, sizeof("clob"), "text");
securec_check_c(rc, "\0", "\0");
}
cJSON* col_type = cJSON_CreateString(type_name);
cJSON_AddItemToArray(cols_type, col_type);
}