提交 a6316dd0 authored 作者: noelgrandin's avatar noelgrandin

add some comments

上级 31d89356
...@@ -173,16 +173,25 @@ public class Parser { ...@@ -173,16 +173,25 @@ public class Parser {
private final Database database; private final Database database;
private final Session session; private final Session session;
/**
* @see org.h2.constant.DbSettings#databaseToUpper
*/
private final boolean identifiersToUpper;
/** indicates character-type for each char in sqlCommand */
private int[] characterTypes; private int[] characterTypes;
private int currentTokenType; private int currentTokenType;
private String currentToken; private String currentToken;
private boolean currentTokenQuoted; private boolean currentTokenQuoted;
private Value currentValue; private Value currentValue;
private String sqlCommand;
private String originalSQL; private String originalSQL;
/** copy of originalSQL, with comments blanked out */
private String sqlCommand;
/** cached array if chars from sqlCommand */
private char[] sqlCommandChars; private char[] sqlCommandChars;
/** index into sqlCommand of previous token */
private int lastParseIndex; private int lastParseIndex;
/** index into sqlCommand of current token */
private int parseIndex; private int parseIndex;
private CreateView createView; private CreateView createView;
private Prepared currentPrepared; private Prepared currentPrepared;
...@@ -193,10 +202,9 @@ public class Parser { ...@@ -193,10 +202,9 @@ public class Parser {
private boolean rightsChecked; private boolean rightsChecked;
private boolean recompileAlways; private boolean recompileAlways;
private ArrayList<Parameter> indexedParameterList; private ArrayList<Parameter> indexedParameterList;
private final boolean identifiersToUpper;
public Parser(Session session) { public Parser(Session session) {
database = session.getDatabase(); this.database = session.getDatabase();
this.identifiersToUpper = database.getSettings().databaseToUpper; this.identifiersToUpper = database.getSettings().databaseToUpper;
this.session = session; this.session = session;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论