提交 eecb57d7 authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 fbae5acb
...@@ -44,7 +44,8 @@ Hypersonic SQL or HSQLDB. H2 is built from scratch. ...@@ -44,7 +44,8 @@ Hypersonic SQL or HSQLDB. H2 is built from scratch.
</ul> </ul>
<h3>Version 1.0 / 2007-08-02</h3><ul> <h3>Version 1.0 / 2007-08-02</h3><ul>
<li>OpenOffice compatibility: support database name in column names. <li>The column name C_CURRENT_TIMESTAMP did not work in the last release.
</li><li>OpenOffice compatibility: support database name in column names.
</li><li>A new tool to help translation has been implemented: src/tools/org/h2/tools/i18n/PrepareTranslation. </li><li>A new tool to help translation has been implemented: src/tools/org/h2/tools/i18n/PrepareTranslation.
This tool can detect delta changes in the original (English) and prepends '#' in translation if the original This tool can detect delta changes in the original (English) and prepends '#' in translation if the original
text was changed. It can also extract text from the user documentation (however, it is incomplete). text was changed. It can also extract text from the user documentation (however, it is incomplete).
......
...@@ -1854,7 +1854,6 @@ public class Parser { ...@@ -1854,7 +1854,6 @@ public class Parser {
return expr; return expr;
} }
String name = readColumnIdentifier(); String name = readColumnIdentifier();
int supportDatabaseSchema;
if(readIf(".")) { if(readIf(".")) {
String schemaName = objectName; String schemaName = objectName;
objectName = name; objectName = name;
...@@ -2748,11 +2747,11 @@ int supportDatabaseSchema; ...@@ -2748,11 +2747,11 @@ int supportDatabaseSchema;
private static int getSaveTokenType(String s) { private static int getSaveTokenType(String s) {
switch (s.charAt(0)) { switch (s.charAt(0)) {
case 'C': case 'C':
if(s.endsWith("CURRENT_TIMESTAMP")) { if(s.equals("CURRENT_TIMESTAMP")) {
return CURRENT_TIMESTAMP; return CURRENT_TIMESTAMP;
} else if(s.endsWith("CURRENT_TIME")) { } else if(s.equals("CURRENT_TIME")) {
return CURRENT_TIME; return CURRENT_TIME;
} else if(s.endsWith("CURRENT_DATE")) { } else if(s.equals("CURRENT_DATE")) {
return CURRENT_DATE; return CURRENT_DATE;
} }
return getKeywordOrIdentifier(s, "CROSS", KEYWORD); return getKeywordOrIdentifier(s, "CROSS", KEYWORD);
...@@ -2812,11 +2811,11 @@ int supportDatabaseSchema; ...@@ -2812,11 +2811,11 @@ int supportDatabaseSchema;
case 'R': case 'R':
return getKeywordOrIdentifier(s, "ROWNUM", ROWNUM); return getKeywordOrIdentifier(s, "ROWNUM", ROWNUM);
case 'S': case 'S':
if(s.endsWith("SYSTIMESTAMP")) { if(s.equals("SYSTIMESTAMP")) {
return CURRENT_TIMESTAMP; return CURRENT_TIMESTAMP;
} else if(s.endsWith("SYSTIME")) { } else if(s.equals("SYSTIME")) {
return CURRENT_TIME; return CURRENT_TIME;
} else if(s.endsWith("SYSDATE")) { } else if(s.equals("SYSDATE")) {
return CURRENT_DATE; return CURRENT_DATE;
} }
return getKeywordOrIdentifier(s, "SELECT", KEYWORD); return getKeywordOrIdentifier(s, "SELECT", KEYWORD);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论