提交 e5dd315a authored 作者: Noel Grandin's avatar Noel Grandin

#662: column called CONSTRAINT is not properly escaped when storing to metadata

上级 5bdf61ad
......@@ -21,6 +21,8 @@ Change Log
<h2>Next Version (unreleased)</h2>
<ul>
<li>Issue #662: column called CONSTRAINT is not properly escaped when storing to metadata
</li>
<li>Issue #660: Outdated java version mentioned on http://h2database.com/html/build.html#providing_patches
</li>
<li>Issue #643: H2 doesn't use index when I use IN and EQUAL in one query
......
......@@ -3486,7 +3486,7 @@ public class Parser {
addExpected(token);
return false;
}
/*
* Reads passed token in list, in order and returns true on first match.
* If none of the token matches returns false
......@@ -3499,7 +3499,7 @@ public class Parser {
}
return false;
}
/*
* Reads every token in list, in order - returns true if all are found.
* If any are not found, returns false - AND resets parsing back to state when called.
......@@ -4179,6 +4179,8 @@ public class Parser {
case 'C':
if (s.equals("CHECK")) {
return KEYWORD;
} else if ("CONSTRAINT".equals(s)) {
return KEYWORD;
}
return getKeywordOrIdentifier(s, "CROSS", KEYWORD);
case 'D':
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论