fix: fix taosd stmt query crash issue
This commit is contained in:
parent
70f86af711
commit
205299e532
|
@ -136,8 +136,7 @@ static int32_t setValueByBindParam(SValueNode* pVal, TAOS_MULTI_BIND* pParam) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static EDealRes rewriteQueryExprAliasImpl(SNode* pNode, void* pContext) {
|
static EDealRes rewriteQueryExprAliasImpl(SNode* pNode, void* pContext) {
|
||||||
if (nodesIsExprNode(pNode) && QUERY_NODE_COLUMN != nodeType(pNode) && '\0' == ((SExprNode*)pNode)->userAlias[0]) {
|
if (nodesIsExprNode(pNode) && QUERY_NODE_COLUMN != nodeType(pNode)) {
|
||||||
strcpy(((SExprNode*)pNode)->userAlias, ((SExprNode*)pNode)->aliasName);
|
|
||||||
sprintf(((SExprNode*)pNode)->aliasName, "#%d", *(int32_t*)pContext);
|
sprintf(((SExprNode*)pNode)->aliasName, "#%d", *(int32_t*)pContext);
|
||||||
++(*(int32_t*)pContext);
|
++(*(int32_t*)pContext);
|
||||||
}
|
}
|
||||||
|
|
|
@ -2598,7 +2598,6 @@ void runAll(TAOS *taos) {
|
||||||
printf("%s Begin\n", gCaseCtrl.caseCatalog);
|
printf("%s Begin\n", gCaseCtrl.caseCatalog);
|
||||||
runCaseList(taos);
|
runCaseList(taos);
|
||||||
|
|
||||||
#if 0
|
|
||||||
strcpy(gCaseCtrl.caseCatalog, "Micro DB precision Test");
|
strcpy(gCaseCtrl.caseCatalog, "Micro DB precision Test");
|
||||||
printf("%s Begin\n", gCaseCtrl.caseCatalog);
|
printf("%s Begin\n", gCaseCtrl.caseCatalog);
|
||||||
gCaseCtrl.precision = TIME_PRECISION_MICRO;
|
gCaseCtrl.precision = TIME_PRECISION_MICRO;
|
||||||
|
@ -2654,7 +2653,6 @@ void runAll(TAOS *taos) {
|
||||||
gCaseCtrl.bindColNum = 6;
|
gCaseCtrl.bindColNum = 6;
|
||||||
runCaseList(taos);
|
runCaseList(taos);
|
||||||
gCaseCtrl.bindColNum = 0;
|
gCaseCtrl.bindColNum = 0;
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
strcpy(gCaseCtrl.caseCatalog, "Bind Col Type Test");
|
strcpy(gCaseCtrl.caseCatalog, "Bind Col Type Test");
|
||||||
|
|
Loading…
Reference in New Issue