-
Notifications
You must be signed in to change notification settings - Fork 490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parser: implement Restore for VariableExpr #87
Conversation
…g of operator `EQ`
EQ
EQ
@kennytm Hi, I want to discuss two problems with you. After changing to
The AST of
The AST of
So they are not deeply equal to each other. In the unit test function, I have to use
tidb> select @@global.`sql_mode`;
ERROR 1193 (HY000): Unknown system variable '' The AST of
The AST of
As you can see the parser currently doesn't handle such case, so |
@exialin Thanks for the throughout tests. I think both are bugs in the parser. I've filed #94 and #95. So we have two paths forward:
I think we should do (1) (use |
i think we should wait the two issue fixed. |
EQ
@leoppro PTAL. Lines 5649 to 5651 in f4f4614
But user variables are not. So in the test cases, the names have to be case sensitive for user variables, while insensitive for system variables. Should they be consistent? |
it doesn't matter, ignore it will be fine |
LGTM, PTAL @kennytm |
@kennytm PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rest LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* ast, opcode: implement Restore for VariableExpr and fix literal string of operator `EQ` * address comment but still has some problem * fix test * add test case
* ast, opcode: implement Restore for VariableExpr and fix literal string of operator `EQ` * address comment but still has some problem * fix test * add test case
Implement
Restore
and unit test forVariableExpr
.By the way, the literal string of operator
EQ
should be=
instead of==
, which is fixed.Issue: pingcap/tidb#8532