fix: some problems of parser
This commit is contained in:
parent
947e9d6458
commit
6954d4902b
|
@ -130,12 +130,6 @@ TEST_F(ParserShowToUseTest, showMnodes) {
|
||||||
run("SHOW mnodes");
|
run("SHOW mnodes");
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_F(ParserShowToUseTest, showModules) {
|
|
||||||
useDb("root", "test");
|
|
||||||
|
|
||||||
run("SHOW modules");
|
|
||||||
}
|
|
||||||
|
|
||||||
TEST_F(ParserShowToUseTest, showQnodes) {
|
TEST_F(ParserShowToUseTest, showQnodes) {
|
||||||
useDb("root", "test");
|
useDb("root", "test");
|
||||||
|
|
||||||
|
|
|
@ -124,8 +124,8 @@ static void optSetParentOrder(SLogicNode* pNode, EOrder order) {
|
||||||
|
|
||||||
EDealRes scanPathOptHaveNormalColImpl(SNode* pNode, void* pContext) {
|
EDealRes scanPathOptHaveNormalColImpl(SNode* pNode, void* pContext) {
|
||||||
if (QUERY_NODE_COLUMN == nodeType(pNode)) {
|
if (QUERY_NODE_COLUMN == nodeType(pNode)) {
|
||||||
// *((bool*)pContext) = (COLUMN_TYPE_TAG != ((SColumnNode*)pNode)->colType);
|
*((bool*)pContext) =
|
||||||
*((bool*)pContext) = true;
|
(COLUMN_TYPE_TAG != ((SColumnNode*)pNode)->colType && COLUMN_TYPE_TBNAME != ((SColumnNode*)pNode)->colType);
|
||||||
return *((bool*)pContext) ? DEAL_RES_END : DEAL_RES_IGNORE_CHILD;
|
return *((bool*)pContext) ? DEAL_RES_END : DEAL_RES_IGNORE_CHILD;
|
||||||
}
|
}
|
||||||
return DEAL_RES_CONTINUE;
|
return DEAL_RES_CONTINUE;
|
||||||
|
|
Loading…
Reference in New Issue