提交 6b51e215 编写于 作者: S shenglian zhou

(query):fix windows compilation error

上级 8c7e10f4
...@@ -1550,7 +1550,7 @@ void vectorLowerUpperTrimFunc(int16_t functionId, tExprOperandInfo *pInputs, int ...@@ -1550,7 +1550,7 @@ void vectorLowerUpperTrimFunc(int16_t functionId, tExprOperandInfo *pInputs, int
int32_t resultByteLen = (inputType == TSDB_DATA_TYPE_BINARY) ? resultCharLen : resultCharLen * TSDB_NCHAR_SIZE; int32_t resultByteLen = (inputType == TSDB_DATA_TYPE_BINARY) ? resultCharLen : resultCharLen * TSDB_NCHAR_SIZE;
int32_t beginByteLen = (inputType == TSDB_DATA_TYPE_BINARY) ? k : k * TSDB_NCHAR_SIZE; int32_t beginByteLen = (inputType == TSDB_DATA_TYPE_BINARY) ? k : k * TSDB_NCHAR_SIZE;
varDataSetLen(outputData, resultByteLen); varDataSetLen(outputData, resultByteLen);
memcpy(varDataVal(outputData),varDataVal(inputData[0])+beginByteLen, resultByteLen); memcpy((char*)varDataVal(outputData),(char*)varDataVal(inputData[0])+beginByteLen, resultByteLen);
break; break;
} }
...@@ -1629,7 +1629,7 @@ void vectorSubstrFunc(int16_t functionId, tExprOperandInfo *pInputs, int32_t num ...@@ -1629,7 +1629,7 @@ void vectorSubstrFunc(int16_t functionId, tExprOperandInfo *pInputs, int32_t num
varDataSetLen(outputData, resultLenBytes); varDataSetLen(outputData, resultLenBytes);
if (resultLenBytes > 0) { if (resultLenBytes > 0) {
memcpy(varDataVal(outputData), varDataVal(inputData) + resultStartBytes, resultLenBytes); memcpy((char*)varDataVal(outputData), (char*)varDataVal(inputData) + resultStartBytes, resultLenBytes);
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册