提交 0ab21cff authored 作者: Thomas Mueller's avatar Thomas Mueller

The table INFORMATION_SCHEMA.FUNCTION_ALIASES now includes a column TYPE_NAME.

上级 1699f548
...@@ -18,7 +18,8 @@ Change Log ...@@ -18,7 +18,8 @@ Change Log
<h1>Change Log</h1> <h1>Change Log</h1>
<h2>Next Version (unreleased)</h2> <h2>Next Version (unreleased)</h2>
<ul><li>Issue 378: when using views, the wrong values were bound to a parameter in some cases. <ul><li>The table INFORMATION_SCHEMA.FUNCTION_ALIASES now includes a column TYPE_NAME.
</li><li>Issue 378: when using views, the wrong values were bound to a parameter in some cases.
</li><li>Terrence Huang has translated the error messages to Chinese. Thanks a lot! </li><li>Terrence Huang has translated the error messages to Chinese. Thanks a lot!
</li></ul> </li></ul>
......
...@@ -291,6 +291,7 @@ public class MetaTable extends Table { ...@@ -291,6 +291,7 @@ public class MetaTable extends Table {
"JAVA_CLASS", "JAVA_CLASS",
"JAVA_METHOD", "JAVA_METHOD",
"DATA_TYPE INT", "DATA_TYPE INT",
"TYPE_NAME",
"COLUMN_COUNT INT", "COLUMN_COUNT INT",
"RETURNS_RESULT SMALLINT", "RETURNS_RESULT SMALLINT",
"REMARKS", "REMARKS",
...@@ -1088,6 +1089,8 @@ public class MetaTable extends Table { ...@@ -1088,6 +1089,8 @@ public class MetaTable extends Table {
alias.getJavaMethodName(), alias.getJavaMethodName(),
// DATA_TYPE // DATA_TYPE
"" + DataType.convertTypeToSQLType(method.getDataType()), "" + DataType.convertTypeToSQLType(method.getDataType()),
// TYPE_NAME
DataType.getDataType(method.getDataType()).name,
// COLUMN_COUNT INT // COLUMN_COUNT INT
"" + method.getParameterCount(), "" + method.getParameterCount(),
// RETURNS_RESULT SMALLINT // RETURNS_RESULT SMALLINT
...@@ -1117,6 +1120,8 @@ public class MetaTable extends Table { ...@@ -1117,6 +1120,8 @@ public class MetaTable extends Table {
"", "",
// DATA_TYPE // DATA_TYPE
"" + DataType.convertTypeToSQLType(Value.NULL), "" + DataType.convertTypeToSQLType(Value.NULL),
// TYPE_NAME
DataType.getDataType(Value.NULL).name,
// COLUMN_COUNT INT // COLUMN_COUNT INT
"1", "1",
// RETURNS_RESULT SMALLINT // RETURNS_RESULT SMALLINT
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论