提交 e161f478 编写于 作者: G Ganlin Zhao

[TD-11220]<feature>(query): time related functions

上级 d2c22548
...@@ -68,8 +68,9 @@ SSqlInfo qSqlParse(const char *pStr) { ...@@ -68,8 +68,9 @@ SSqlInfo qSqlParse(const char *pStr) {
sqlInfo.valid = false; sqlInfo.valid = false;
goto abort_parse; goto abort_parse;
} }
case TK_NOW: { case TK_NOW:
// for now() function used in select clause case TK_TODAY: {
//for now(),today() function used in select clause
if (pStr[i] == '(' && pStr[i + 1] == ')') { if (pStr[i] == '(' && pStr[i + 1] == ')') {
t0.type = TK_ID; t0.type = TK_ID;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册