diff --git a/packaging/cfg/taos.cfg b/packaging/cfg/taos.cfg index e42212ff0f55420dfa5f23638a69439be795e43a..59f87b0a1f8d3aa192383457a85e1d53b1a3bf54 100644 --- a/packaging/cfg/taos.cfg +++ b/packaging/cfg/taos.cfg @@ -299,8 +299,8 @@ keepColumnName 1 # percent of redundant data in tsdb meta will compact meta data,0 means donot compact # tsdbMetaCompactRatio 0 -# default string type used for storing JSON String, options can be binary/nchar, default is binary -# defaultJSONStrType binary +# default string type used for storing JSON String, options can be binary/nchar, default is nchar +# defaultJSONStrType nchar # force TCP transmission # rpcForceTcp 0 diff --git a/src/common/src/tglobal.c b/src/common/src/tglobal.c index c1a254b4ebd5fdfe1d29e02ab7cacbe3195058f1..ea23d76c70cb3a24bc2c6bcb73d26c9f2bfad8e1 100644 --- a/src/common/src/tglobal.c +++ b/src/common/src/tglobal.c @@ -289,7 +289,7 @@ char Compressor[32] = "ZSTD_COMPRESSOR"; // ZSTD_COMPRESSOR or GZIP_COMPRES int8_t tsDeadLockKillQuery = 0; // default JSON string type -char tsDefaultJSONStrType[7] = "binary"; +char tsDefaultJSONStrType[7] = "nchar"; char tsSmlChildTableName[TSDB_TABLE_NAME_LEN] = ""; //user defined child table name can be specified in tag value. If set to empty system will generate table name using MD5 hash. int32_t (*monStartSystemFp)() = NULL;