提交 36bef2e9 authored 作者: Thomas Mueller's avatar Thomas Mueller

New meta data column INFORMATION_SCHEMA.TABLES.LAST_MODIFICATION.

上级 0c0299f7
...@@ -18,7 +18,9 @@ Change Log ...@@ -18,7 +18,9 @@ Change Log
<h1>Change Log</h1> <h1>Change Log</h1>
<h2>Next Version (unreleased)</h2> <h2>Next Version (unreleased)</h2>
<ul><li>Shell: line comments didn't work correctly. <ul><li>New meta data column INFORMATION_SCHEMA.TABLES.LAST_MODIFICATION to get
the table modification counter.
</li><li>Shell: line comments didn't work correctly.
</li><li>H2 Console: Columns are now listed for up to 500 tables instead of 100. </li><li>H2 Console: Columns are now listed for up to 500 tables instead of 100.
</li><li>H2 Console: Cmd+Enter executes the current statement. </li><li>H2 Console: Cmd+Enter executes the current statement.
</li><li>JaQu: the maximum length of a column can now be defined using maxLength. </li><li>JaQu: the maximum length of a column can now be defined using maxLength.
...@@ -27,9 +29,7 @@ Change Log ...@@ -27,9 +29,7 @@ Change Log
</li></ul> </li></ul>
<h2>Version 1.1.104 (2008-11-28)</h2> <h2>Version 1.1.104 (2008-11-28)</h2>
<ul><li>New meta data column INFORMATION_SCHEMA.TABLES.LAST_MODIFICATION to get <ul><li>If a query that was used like a table contained group by and was ordered by an expression that
the table modification counter.
</li><li>If a query that was used like a table contained group by and was ordered by an expression that
is not in the column list, an exception was thrown. is not in the column list, an exception was thrown.
</li><li>JaQu: tables are now auto-created when running a query. </li><li>JaQu: tables are now auto-created when running a query.
</li><li>The optimizer had problems with function tables (for example CSVREAD and FTL_SEARCH). </li><li>The optimizer had problems with function tables (for example CSVREAD and FTL_SEARCH).
......
...@@ -131,6 +131,7 @@ public class MetaTable extends Table { ...@@ -131,6 +131,7 @@ public class MetaTable extends Table {
"STORAGE_TYPE", "STORAGE_TYPE",
"SQL", "SQL",
"REMARKS", "REMARKS",
"LAST_MODIFICATION BIGINT",
"ID INT" "ID INT"
}); });
indexColumnName = "TABLE_NAME"; indexColumnName = "TABLE_NAME";
...@@ -645,6 +646,8 @@ public class MetaTable extends Table { ...@@ -645,6 +646,8 @@ public class MetaTable extends Table {
table.getCreateSQL(), table.getCreateSQL(),
// REMARKS // REMARKS
replaceNullWithEmpty(table.getComment()), replaceNullWithEmpty(table.getComment()),
// LAST_MODIFICATION
"" + table.getMaxDataModificationId(),
// ID // ID
"" + table.getId() "" + table.getId()
}); });
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论