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

--no commit message

--no commit message
上级 9ac629d7
...@@ -18,12 +18,18 @@ Change Log ...@@ -18,12 +18,18 @@ Change Log
<h1>Change Log</h1> <h1>Change Log</h1>
<h2>Next Version (unreleased)</h2> <h2>Next Version (unreleased)</h2>
<ul><li>When deleting or updating many rows in a table, the space in the index <ul><li>Shell tool: the built-in commands EXIT, HELP, ?, LIST, and so on didn't
work with a semicolon at the end.
</li><li>JDK 1.5 is now required to build the jar file. However it is still possible to create
a jar file for Java 1.4. For details, see buildRelease.sh and buildRelease.bat.
As an alternative, compile using JDK 1.5 or 1.6 and use Retrotranslator to create a Java 1.4
version (http://retrotranslator.sourceforge.net/).
</li><li>When deleting or updating many rows in a table, the space in the index
file was not re-used in the default mode (persistent database, b-tree index, file was not re-used in the default mode (persistent database, b-tree index,
LOG=1). This caused the index file to grow over time. Workarounds were to LOG=1). This caused the index file to grow over time. Workarounds were to
delete and re-created the index file, alter the table (add a remove a column), delete and re-created the index file, alter the table (add a remove a column),
or use LOG=2. To disable the change, set the system property or append ;LOG=2 to the database URL. To disable the change, set the system
h2.reuseSpaceBtreeIndex to false. property h2.reuseSpaceBtreeIndex to false.
</li><li>Identifiers with a digit and then a dollar sign didn't work. Example: A1$B. </li><li>Identifiers with a digit and then a dollar sign didn't work. Example: A1$B.
</li><li>MS SQL Server compatibility: support for linked tables with </li><li>MS SQL Server compatibility: support for linked tables with
NVARCHAR, NCHAR, NCLOB, and LONGNVARCHAR. NVARCHAR, NCHAR, NCLOB, and LONGNVARCHAR.
......
...@@ -418,6 +418,7 @@ See also <a href="build.html#providing_patches">Providing Patches</a>. ...@@ -418,6 +418,7 @@ See also <a href="build.html#providing_patches">Providing Patches</a>.
</li><li>MySQL compatibility: DatabaseMetaData.stores*() methods should return the same values. Test with SquirrelSQL. </li><li>MySQL compatibility: DatabaseMetaData.stores*() methods should return the same values. Test with SquirrelSQL.
</li><li>Support table partitioning. </li><li>Support table partitioning.
</li><li>MS SQL Server compatibility: support DATEPART syntax. </li><li>MS SQL Server compatibility: support DATEPART syntax.
</li><li>Oracle compatibility: support CREATE OR REPLACE VIEW syntax.
</li></ul> </li></ul>
<h2>Not Planned</h2> <h2>Not Planned</h2>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -474,6 +474,7 @@ public class Schema extends DbObjectBase { ...@@ -474,6 +474,7 @@ public class Schema extends DbObjectBase {
* @param persistData if data of the table should be persistent * @param persistData if data of the table should be persistent
* @param clustered if a clustered table should be created * @param clustered if a clustered table should be created
* @param headPos the position (page number) of the head * @param headPos the position (page number) of the head
* @param session the session
* @return the created {@link TableData} object * @return the created {@link TableData} object
*/ */
public TableData createTable(String tableName, int id, ObjectArray columns, boolean persistIndexes, boolean persistData, boolean clustered, int headPos, Session session) public TableData createTable(String tableName, int id, ObjectArray columns, boolean persistIndexes, boolean persistData, boolean clustered, int headPos, Session session)
......
...@@ -884,6 +884,7 @@ public class PageStore implements CacheWriter { ...@@ -884,6 +884,7 @@ public class PageStore implements CacheWriter {
* Add the meta data of an index. * Add the meta data of an index.
* *
* @param index the index to add * @param index the index to add
* @param session the session
*/ */
public void addMeta(Index index, Session session) throws SQLException { public void addMeta(Index index, Session session) throws SQLException {
int type = index instanceof PageScanIndex ? META_TYPE_SCAN_INDEX : META_TYPE_BTREE_INDEX; int type = index instanceof PageScanIndex ? META_TYPE_SCAN_INDEX : META_TYPE_BTREE_INDEX;
...@@ -905,15 +906,13 @@ public class PageStore implements CacheWriter { ...@@ -905,15 +906,13 @@ public class PageStore implements CacheWriter {
row.setValue(4, ValueString.get(columnList)); row.setValue(4, ValueString.get(columnList));
row.setPos(id + 1); row.setPos(id + 1);
metaIndex.add(session, row); metaIndex.add(session, row);
int assertion;
metaIndex.getRow(database.getSystemSession(), row.getPos());
} }
/** /**
* Remove the meta data of an index. * Remove the meta data of an index.
* *
* @param index the index to remove * @param index the index to remove
* @param session the session
*/ */
public void removeMeta(Index index, Session session) throws SQLException { public void removeMeta(Index index, Session session) throws SQLException {
Row row = metaIndex.getRow(session, index.getId() + 1); Row row = metaIndex.getRow(session, index.getId() + 1);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论