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

An ArrayIndexOutOfBoundsException was thrown when querying the table…

An ArrayIndexOutOfBoundsException was thrown when querying the table information_schema.function_aliases while there are any user defined aggregate functions.
上级 0fb03547
......@@ -1079,6 +1079,7 @@ public class MetaTable extends Table {
"" + alias.getId(),
// SOURCE
alias.getSource()
// when adding more columns, see also below
);
}
}
......@@ -1104,7 +1105,10 @@ public class MetaTable extends Table {
// REMARKS
replaceNullWithEmpty(agg.getComment()),
// ID
"" + agg.getId()
"" + agg.getId(),
// SOUCE
""
// when adding more columns, see also below
);
}
break;
......
......@@ -232,6 +232,7 @@ public class TestFunctions extends TestBase implements AggregateFunction {
rs.next();
assertEquals(1, rs.getMetaData().getScale(2));
assertEquals(32767, rs.getMetaData().getScale(1));
stat.executeQuery("select * from information_schema.function_aliases");
conn.close();
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论