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

New column INFORMATION_SCHEMA.COLUMNS.SEQUENCE_NAME.

上级 72f2deb4
...@@ -154,6 +154,7 @@ public class MetaTable extends Table { ...@@ -154,6 +154,7 @@ public class MetaTable extends Table {
"IS_COMPUTED BIT", "IS_COMPUTED BIT",
"SELECTIVITY INT", "SELECTIVITY INT",
"CHECK_CONSTRAINT", "CHECK_CONSTRAINT",
"SEQUENCE_NAME",
"REMARKS" "REMARKS"
}); });
indexColumnName = "TABLE_NAME"; indexColumnName = "TABLE_NAME";
...@@ -657,6 +658,7 @@ public class MetaTable extends Table { ...@@ -657,6 +658,7 @@ public class MetaTable extends Table {
String collation = database.getCompareMode().getName(); String collation = database.getCompareMode().getName();
for (int j = 0; j < cols.length; j++) { for (int j = 0; j < cols.length; j++) {
Column c = cols[j]; Column c = cols[j];
Sequence sequence = c.getSequence();
add(rows, new String[]{ add(rows, new String[]{
// TABLE_CATALOG // TABLE_CATALOG
catalog, catalog,
...@@ -698,6 +700,8 @@ public class MetaTable extends Table { ...@@ -698,6 +700,8 @@ public class MetaTable extends Table {
"" + (c.getSelectivity()), "" + (c.getSelectivity()),
// CHECK_CONSTRAINT // CHECK_CONSTRAINT
c.getCheckConstraintSQL(session, c.getName()), c.getCheckConstraintSQL(session, c.getName()),
// SEQUENCE_NAME
sequence == null ? null : sequence.getName(),
// REMARKS // REMARKS
replaceNullWithEmpty(c.getComment()) replaceNullWithEmpty(c.getComment())
}); });
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论