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