提交 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 { ...@@ -530,19 +530,6 @@ public class Session extends SessionWithState {
return prepare(sql, false, false); 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. * Parse and prepare the given SQL statement.
* *
......
...@@ -173,7 +173,7 @@ public class ViewIndex extends BaseIndex implements SpatialIndex { ...@@ -173,7 +173,7 @@ public class ViewIndex extends BaseIndex implements SpatialIndex {
Prepared p; Prepared p;
session.pushSubQueryInfo(masks, filters, filter, sortOrder); session.pushSubQueryInfo(masks, filters, filter, sortOrder);
try { try {
p = session.prepare(sql, true); p = session.prepare(sql, true, false);
} finally { } finally {
session.popSubQueryInfo(); session.popSubQueryInfo();
} }
......
...@@ -103,7 +103,7 @@ public class TableView extends Table { ...@@ -103,7 +103,7 @@ public class TableView extends Table {
Prepared p; Prepared p;
session.setParsingView(true); session.setParsingView(true);
try { try {
p = session.prepare(sql, literalsChecked); p = session.prepare(sql, false, literalsChecked);
} finally { } finally {
session.setParsingView(false); session.setParsingView(false);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论