refactor: fix error in merge
This commit is contained in:
parent
0fb41733ea
commit
1ab6342018
|
@ -262,7 +262,6 @@ int32_t trimString(const char* src, int32_t len, char* dst, int32_t dlen) {
|
|||
j++;
|
||||
}
|
||||
dst[j] = '\0';
|
||||
strtrim(dst);
|
||||
return j;
|
||||
}
|
||||
|
||||
|
|
|
@ -287,7 +287,6 @@ static FORCE_INLINE void varToNchar(char* buf, SScalarParam* pOut, int32_t rowIn
|
|||
|
||||
//TODO opt performance, tmp is not needed.
|
||||
int32_t vectorConvertFromVarData(const SScalarParam* pIn, SScalarParam* pOut, int32_t inType, int32_t outType) {
|
||||
ASSERT(!IS_VAR_DATA_TYPE(outType));
|
||||
int32_t bufSize = pIn->columnData->info.bytes;
|
||||
char *tmp = taosMemoryMalloc(bufSize + VARSTR_HEADER_SIZE);
|
||||
|
||||
|
|
|
@ -761,7 +761,8 @@ static int calcColWidth(TAOS_FIELD *field, int precision) {
|
|||
return TMAX(field->bytes, width);
|
||||
}
|
||||
|
||||
case TSDB_DATA_TYPE_NCHAR: {
|
||||
case TSDB_DATA_TYPE_NCHAR:
|
||||
case TSDB_DATA_TYPE_JSON:{
|
||||
int16_t bytes = field->bytes * TSDB_NCHAR_SIZE;
|
||||
if (bytes > tsMaxBinaryDisplayWidth) {
|
||||
return TMAX(tsMaxBinaryDisplayWidth, width);
|
||||
|
|
Loading…
Reference in New Issue