提交 81374dd5 authored 作者: Thomas Mueller's avatar Thomas Mueller

When creating functions within a schema, those functions could not be used in…

When creating functions within a schema, those functions could not be used in views, nested queries, and constraints.
上级 4f78163e
......@@ -85,7 +85,7 @@ public class JavaFunction extends Expression implements FunctionCall {
StatementBuilder buff = new StatementBuilder();
// TODO always append the schema once FUNCTIONS_IN_SCHEMA is enabled
if (SysProperties.FUNCTIONS_IN_SCHEMA ||
!functionAlias.getSchema().equals(Constants.SCHEMA_MAIN)) {
!functionAlias.getSchema().getName().equals(Constants.SCHEMA_MAIN)) {
buff.append(Parser.quoteIdentifier(functionAlias.getSchema().getName())).append('.');
}
buff.append(Parser.quoteIdentifier(functionAlias.getName())).append('(');
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论