提交 0dbb0018 编写于 作者: G Ganlin Zhao

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

上级 2838b0c6
......@@ -589,6 +589,11 @@ uint32_t tGetToken(char* z, uint32_t* tokenId) {
for (i = 1; ((z[i] & 0x80) == 0) && isIdChar[(uint8_t) z[i]]; i++) {
}
*tokenId = tKeywordCode(z, i);
//Check for function now()
if (*tokenId == TK_NOW && z[i] == '(' && z[i + 1] == ')') {
*tokenId = TK_ID;
}
return i;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册