提交 018fad1f authored 作者: Noel Grandin's avatar Noel Grandin

Fix startup issue when using "CHECK" as a column name.

上级 6290b79a
...@@ -21,7 +21,7 @@ Change Log ...@@ -21,7 +21,7 @@ Change Log
<h2>Next Version (unreleased)</h2> <h2>Next Version (unreleased)</h2>
<ul> <ul>
<li>- <li>Fix startup issue when using "CHECK" as a column name.
</li> </li>
</ul> </ul>
......
...@@ -3879,7 +3879,9 @@ public class Parser { ...@@ -3879,7 +3879,9 @@ public class Parser {
private static int getSaveTokenType(String s, boolean supportOffsetFetch) { private static int getSaveTokenType(String s, boolean supportOffsetFetch) {
switch (s.charAt(0)) { switch (s.charAt(0)) {
case 'C': case 'C':
if (s.equals("CURRENT_TIMESTAMP")) { if (s.equals("CHECK")) {
return KEYWORD;
} else if (s.equals("CURRENT_TIMESTAMP")) {
return CURRENT_TIMESTAMP; return CURRENT_TIMESTAMP;
} else if (s.equals("CURRENT_TIME")) { } else if (s.equals("CURRENT_TIME")) {
return CURRENT_TIME; return CURRENT_TIME;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论