fix(os): win python case error
This commit is contained in:
parent
3d351b768c
commit
490889f8e7
|
@ -57,11 +57,13 @@ static FORCE_INLINE void taosEncryptPass_c(uint8_t *inBuf, size_t len, char *tar
|
|||
tMD5Init(&context);
|
||||
tMD5Update(&context, inBuf, (uint32_t)len);
|
||||
tMD5Final(&context);
|
||||
char buf[TSDB_PASSWORD_LEN + 1];
|
||||
|
||||
sprintf(target, "%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x", context.digest[0],
|
||||
sprintf(buf, "%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x", context.digest[0],
|
||||
context.digest[1], context.digest[2], context.digest[3], context.digest[4], context.digest[5],
|
||||
context.digest[6], context.digest[7], context.digest[8], context.digest[9], context.digest[10],
|
||||
context.digest[11], context.digest[12], context.digest[13], context.digest[14], context.digest[15]);
|
||||
memcpy(target, buf, TSDB_PASSWORD_LEN);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
@ -538,7 +538,7 @@ static int32_t mndRetrieveFuncs(SRpcMsg *pReq, SShowObj *pShow, SSDataBlock *pBl
|
|||
pColInfo = taosArrayGet(pBlock->pDataBlock, cols++);
|
||||
colDataAppend(pColInfo, numOfRows, (const char *)&isAgg, false);
|
||||
|
||||
char b3[TSDB_TYPE_STR_MAX_LEN] = {0};
|
||||
char b3[TSDB_TYPE_STR_MAX_LEN + 1] = {0};
|
||||
STR_WITH_MAXSIZE_TO_VARSTR(b3, mnodeGenTypeStr(buf, TSDB_TYPE_STR_MAX_LEN, pFunc->outputType, pFunc->outputLen),
|
||||
pShow->pMeta->pSchemas[cols].bytes);
|
||||
|
||||
|
|
|
@ -5,9 +5,7 @@ target_link_libraries(
|
|||
PUBLIC sut
|
||||
)
|
||||
|
||||
if(NOT TD_WINDOWS)
|
||||
add_test(
|
||||
add_test(
|
||||
NAME acctTest
|
||||
COMMAND acctTest
|
||||
)
|
||||
endif(NOT TD_WINDOWS)
|
||||
)
|
||||
|
|
|
@ -5,9 +5,9 @@ target_link_libraries(
|
|||
PUBLIC sut
|
||||
)
|
||||
|
||||
if(NOT TD_WINDOWS)
|
||||
# if(NOT TD_WINDOWS)
|
||||
add_test(
|
||||
NAME funcTest
|
||||
COMMAND funcTest
|
||||
)
|
||||
endif(NOT TD_WINDOWS)
|
||||
# endif(NOT TD_WINDOWS)
|
||||
|
|
|
@ -5,9 +5,9 @@ target_link_libraries(
|
|||
PUBLIC sut
|
||||
)
|
||||
|
||||
if(NOT TD_WINDOWS)
|
||||
# if(NOT TD_WINDOWS)
|
||||
add_test(
|
||||
NAME profileTest
|
||||
COMMAND profileTest
|
||||
)
|
||||
endif(NOT TD_WINDOWS)
|
||||
# endif(NOT TD_WINDOWS)
|
||||
|
|
|
@ -5,9 +5,9 @@ target_link_libraries(
|
|||
PUBLIC sut
|
||||
)
|
||||
|
||||
if(NOT TD_WINDOWS)
|
||||
# if(NOT TD_WINDOWS)
|
||||
add_test(
|
||||
NAME showTest
|
||||
COMMAND showTest
|
||||
)
|
||||
endif(NOT TD_WINDOWS)
|
||||
# endif(NOT TD_WINDOWS)
|
||||
|
|
|
@ -92,16 +92,14 @@ target_link_libraries (idxJsonUT
|
|||
index
|
||||
)
|
||||
|
||||
if(NOT TD_WINDOWS)
|
||||
add_test(
|
||||
add_test(
|
||||
NAME idxtest
|
||||
COMMAND idxTest
|
||||
)
|
||||
add_test(
|
||||
)
|
||||
add_test(
|
||||
NAME idxJsonUT
|
||||
COMMAND idxJsonUT
|
||||
)
|
||||
endif(NOT TD_WINDOWS)
|
||||
)
|
||||
add_test(
|
||||
NAME idxUtilUT
|
||||
COMMAND idxUtilUT
|
||||
|
|
|
@ -32,9 +32,9 @@ if(${BUILD_WINGETOPT})
|
|||
target_link_libraries(plannerTest PUBLIC wingetopt)
|
||||
endif()
|
||||
|
||||
if(NOT TD_WINDOWS)
|
||||
# if(NOT TD_WINDOWS)
|
||||
add_test(
|
||||
NAME plannerTest
|
||||
COMMAND plannerTest
|
||||
)
|
||||
endif(NOT TD_WINDOWS)
|
||||
# endif(NOT TD_WINDOWS)
|
||||
|
|
|
@ -718,7 +718,7 @@ int32_t castFunction(SScalarParam *pInput, int32_t inputNum, SScalarParam *pOutp
|
|||
int16_t outputType = GET_PARAM_TYPE(&pOutput[0]);
|
||||
int64_t outputLen = GET_PARAM_BYTES(&pOutput[0]);
|
||||
|
||||
char *outputBuf = taosMemoryCalloc(outputLen * pInput[0].numOfRows, 1);
|
||||
char *outputBuf = taosMemoryCalloc(outputLen * pInput[0].numOfRows + 1, 1);
|
||||
char *output = outputBuf;
|
||||
|
||||
for (int32_t i = 0; i < pInput[0].numOfRows; ++i) {
|
||||
|
|
|
@ -247,7 +247,7 @@ class TDDnode:
|
|||
if bool(updatecfgDict) and updatecfgDict[0] and updatecfgDict[0][0]:
|
||||
print(updatecfgDict[0][0])
|
||||
for key, value in updatecfgDict[0][0].items():
|
||||
if key == "clientCfg":
|
||||
if key == "clientCfg" and self.remoteIP == "" and not platform.system().lower() == 'windows':
|
||||
continue
|
||||
if value == 'dataDir':
|
||||
if isFirstDir:
|
||||
|
|
Loading…
Reference in New Issue