提交 974bf5a4 authored 作者: Niklas Mehner's avatar Niklas Mehner

Remove confusing method with only one parameter / fix rights check.

上级 4dba6d13
......@@ -530,19 +530,6 @@ public class Session extends SessionWithState {
return prepare(sql, false, false);
}
/**
* Parse and prepare the given SQL statement. This method also checks the
* rights.
*
* @param sql the SQL statement
* @param literalsChecked true if the sql string has already been checked for literals (only used if
* ALLOW_LITERALS NONE is set).
* @return the prepared statement
*/
public Prepared prepare(String sql, boolean literalsChecked) {
return prepare(sql, false, literalsChecked);
}
/**
* Parse and prepare the given SQL statement.
*
......
......@@ -173,7 +173,7 @@ public class ViewIndex extends BaseIndex implements SpatialIndex {
Prepared p;
session.pushSubQueryInfo(masks, filters, filter, sortOrder);
try {
p = session.prepare(sql, true);
p = session.prepare(sql, true, false);
} finally {
session.popSubQueryInfo();
}
......
......@@ -103,7 +103,7 @@ public class TableView extends Table {
Prepared p;
session.setParsingView(true);
try {
p = session.prepare(sql, literalsChecked);
p = session.prepare(sql, false, literalsChecked);
} finally {
session.setParsingView(false);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论