提交 1f7ed15f authored 作者: Thomas Mueller's avatar Thomas Mueller

Formatting.

上级 9abf5e1d
...@@ -1853,807 +1853,825 @@ Change Log ...@@ -1853,807 +1853,825 @@ Change Log
Next Version (unreleased) Next Version (unreleased)
@changelog_1002_li @changelog_1002_li
- The JDBC escape syntax {ts 'value'} did not interpret the value as a timestamp. The same for {d 'value'} (for date) and {t 'value'} (for time). Thanks to Lukas Eder for reporting the issue.
@changelog_1003_h2 @changelog_1003_li
Version 1.4.180 Beta (2014-07-13) File system abstraction: support replacing existing files using move (currently not for Windows).
@changelog_1004_li @changelog_1004_li
MVStore: the store is now auto-compacted automatically up to some point, to avoid very large file sizes. This area is still work in progress. The statement "shutdown defrag" now compresses the database (with the MVStore).
@changelog_1005_li @changelog_1005_li
Sequences of temporary tables (auto-increment or identity columns) were persisted unnecessarily in the database file, and were not removed when re-opening the database. The MVStore now automatically shrinks the file in the background if there is no read or write activity. This might be a bit too aggressive; feedback is welcome!
@changelog_1006_li @changelog_1006_li
MVStore: an IndexOutOfBoundsException could sometimes occur MVMap.openVersion when concurrently accessing the store. Change default value of PAGE_SIZE from 2048 to 4096 to more closely match most file systems block size (PageStore only; the MVStore already used 4096).
@changelog_1007_li @changelog_1007_li
The LIRS cache now re-sizes the internal hash map if needed. Auto-scale MAX_MEMORY_ROWS and CACHE_SIZE settings by the amount of available RAM. Gives a better out of box experience for people with more powerful machines.
@changelog_1008_li @changelog_1008_li
Handle tabs like 4 spaces in web console, patch by Martin Grajcar
@changelog_1009_h2
Version 1.4.180 Beta (2014-07-13)
@changelog_1010_li
MVStore: the store is now auto-compacted automatically up to some point, to avoid very large file sizes. This area is still work in progress.
@changelog_1011_li
Sequences of temporary tables (auto-increment or identity columns) were persisted unnecessarily in the database file, and were not removed when re-opening the database.
@changelog_1012_li
MVStore: an IndexOutOfBoundsException could sometimes occur MVMap.openVersion when concurrently accessing the store.
@changelog_1013_li
The LIRS cache now re-sizes the internal hash map if needed.
@changelog_1014_li
Optionally persist session history in the H2 console. (patch from Martin Grajcar) Optionally persist session history in the H2 console. (patch from Martin Grajcar)
@changelog_1009_li @changelog_1015_li
Add client-info property to get the number of servers currently in the cluster and which servers that are available. (patch from Nikolaj Fogh) Add client-info property to get the number of servers currently in the cluster and which servers that are available. (patch from Nikolaj Fogh)
@changelog_1010_li @changelog_1016_li
Fix bug in changing encrypted DB password that kept the file handle open when the wrong password was supplied. (test case from Jens Hohmuth). Fix bug in changing encrypted DB password that kept the file handle open when the wrong password was supplied. (test case from Jens Hohmuth).
@changelog_1011_li @changelog_1017_li
Issue 567: H2 hangs for a long time then (sometimes) recovers. Introduce a queue when doing table locking to prevent session starvation. Issue 567: H2 hangs for a long time then (sometimes) recovers. Introduce a queue when doing table locking to prevent session starvation.
@changelog_1012_h2 @changelog_1018_h2
Version 1.4.179 Beta (2014-06-23) Version 1.4.179 Beta (2014-06-23)
@changelog_1013_li @changelog_1019_li
The license was changed to MPL 2.0 (from 1.0) and EPL 1.0. The license was changed to MPL 2.0 (from 1.0) and EPL 1.0.
@changelog_1014_li @changelog_1020_li
Issue 565: MVStore: concurrently adding LOB objects (with MULTI_THREADED option) resulted in a NullPointerException. Issue 565: MVStore: concurrently adding LOB objects (with MULTI_THREADED option) resulted in a NullPointerException.
@changelog_1015_li @changelog_1021_li
MVStore: reduced dependencies to other H2 classes. MVStore: reduced dependencies to other H2 classes.
@changelog_1016_li @changelog_1022_li
There was a way to prevent a database from being re-opened, by creating a column constraint that references a table with a higher id, for example with "check" constraints that contains queries. This is now detected, and creating the table is prohibited. In future versions of H2, most likely creating references to other tables will no longer be supported because of such problems. There was a way to prevent a database from being re-opened, by creating a column constraint that references a table with a higher id, for example with "check" constraints that contains queries. This is now detected, and creating the table is prohibited. In future versions of H2, most likely creating references to other tables will no longer be supported because of such problems.
@changelog_1017_li @changelog_1023_li
MVStore: descending indexes with "nulls first" did not work as expected (null was ordered last). MVStore: descending indexes with "nulls first" did not work as expected (null was ordered last).
@changelog_1018_li @changelog_1024_li
Large result sets now always create temporary tables instead of temporary files. Large result sets now always create temporary tables instead of temporary files.
@changelog_1019_li @changelog_1025_li
When using the PageStore, opening a database failed in some cases with a NullPointerException if temporary tables were used (explicitly, or implicitly when using large result sets). When using the PageStore, opening a database failed in some cases with a NullPointerException if temporary tables were used (explicitly, or implicitly when using large result sets).
@changelog_1020_li @changelog_1026_li
If a database file in the PageStore file format exists, this file and this mode is now used, even if the database URL does not contain "MV_STORE=FALSE". If a MVStore file exists, it is used. If a database file in the PageStore file format exists, this file and this mode is now used, even if the database URL does not contain "MV_STORE=FALSE". If a MVStore file exists, it is used.
@changelog_1021_li @changelog_1027_li
Databases created with version 1.3.175 and earlier that contained foreign keys in combination with multi-column indexes could not be opened in some cases. This was due to a bugfix in version 1.3.176: Referential integrity constraints sometimes used the wrong index. Databases created with version 1.3.175 and earlier that contained foreign keys in combination with multi-column indexes could not be opened in some cases. This was due to a bugfix in version 1.3.176: Referential integrity constraints sometimes used the wrong index.
@changelog_1022_li @changelog_1028_li
MVStore: the ObjectDataType comparison method was incorrect if one key was Serializable and the other was of a common class. MVStore: the ObjectDataType comparison method was incorrect if one key was Serializable and the other was of a common class.
@changelog_1023_li @changelog_1029_li
Recursive queries with many result rows (more than the setting "max_memory_rows") did not work correctly. Recursive queries with many result rows (more than the setting "max_memory_rows") did not work correctly.
@changelog_1024_li @changelog_1030_li
The license has changed to MPL 2.0 + EPL 1.0. The license has changed to MPL 2.0 + EPL 1.0.
@changelog_1025_li @changelog_1031_li
MVStore: temporary tables from result sets could survive re-opening a database, which could result in a ClassCastException. MVStore: temporary tables from result sets could survive re-opening a database, which could result in a ClassCastException.
@changelog_1026_li @changelog_1032_li
Issue 566: MVStore: unique indexes that were created later on did not work correctly if there were over 5000 rows in the table. Existing databases need to be re-created (at least the broken index need to be re-built). Issue 566: MVStore: unique indexes that were created later on did not work correctly if there were over 5000 rows in the table. Existing databases need to be re-created (at least the broken index need to be re-built).
@changelog_1027_li @changelog_1033_li
MVStore: creating secondary indexes on large tables results in missing rows in the index. MVStore: creating secondary indexes on large tables results in missing rows in the index.
@changelog_1028_li @changelog_1034_li
Metadata: the password of linked tables is now only visible for admin users. Metadata: the password of linked tables is now only visible for admin users.
@changelog_1029_li @changelog_1035_li
For Windows, database URLs of the form "jdbc:h2:/test" where considered relative and did not work unless the system property "h2.implicitRelativePath" was used. For Windows, database URLs of the form "jdbc:h2:/test" where considered relative and did not work unless the system property "h2.implicitRelativePath" was used.
@changelog_1030_li @changelog_1036_li
Windows: using a base directory of "C:/" and similar did not work as expected. Windows: using a base directory of "C:/" and similar did not work as expected.
@changelog_1031_li @changelog_1037_li
Follow JDBC specification on Procedures MetaData, use P0 as return type of procedure. Follow JDBC specification on Procedures MetaData, use P0 as return type of procedure.
@changelog_1032_li @changelog_1038_li
Issue 531: IDENTITY ignored for added column. Issue 531: IDENTITY ignored for added column.
@changelog_1033_li @changelog_1039_li
FileSystem: improve exception throwing compatibility with JDK FileSystem: improve exception throwing compatibility with JDK
@changelog_1034_li @changelog_1040_li
Spatial Index: adjust costs so we do not use the spatial index if the query does not contain an intersects operator. Spatial Index: adjust costs so we do not use the spatial index if the query does not contain an intersects operator.
@changelog_1035_li @changelog_1041_li
Fix multi-threaded deadlock when using a View that includes a TableFunction. Fix multi-threaded deadlock when using a View that includes a TableFunction.
@changelog_1036_li @changelog_1042_li
Fix bug in dividing very-small BigDecimal numbers. Fix bug in dividing very-small BigDecimal numbers.
@changelog_1037_h2 @changelog_1043_h2
Version 1.4.178 Beta (2014-05-02) Version 1.4.178 Beta (2014-05-02)
@changelog_1038_li @changelog_1044_li
Issue 559: Make dependency on org.osgi.service.jdbc optional. Issue 559: Make dependency on org.osgi.service.jdbc optional.
@changelog_1039_li @changelog_1045_li
Improve error message when the user specifies an unsupported combination of database settings. Improve error message when the user specifies an unsupported combination of database settings.
@changelog_1040_li @changelog_1046_li
MVStore: in the multi-threaded mode, NullPointerException and other exceptions could occur. MVStore: in the multi-threaded mode, NullPointerException and other exceptions could occur.
@changelog_1041_li @changelog_1047_li
MVStore: some database file could not be compacted due to a bug in the bookkeeping of the fill rate. Also, database file were compacted quite slowly. This has been improved; but more changes in this area are expected. MVStore: some database file could not be compacted due to a bug in the bookkeeping of the fill rate. Also, database file were compacted quite slowly. This has been improved; but more changes in this area are expected.
@changelog_1042_li @changelog_1048_li
MVStore: support for volatile maps (that don't store changes). MVStore: support for volatile maps (that don't store changes).
@changelog_1043_li @changelog_1049_li
MVStore mode: in-memory databases now also use the MVStore. MVStore mode: in-memory databases now also use the MVStore.
@changelog_1044_li @changelog_1050_li
In server mode, appending ";autocommit=false" to the database URL was working, but the return value of Connection.getAutoCommit() was wrong. In server mode, appending ";autocommit=false" to the database URL was working, but the return value of Connection.getAutoCommit() was wrong.
@changelog_1045_li @changelog_1051_li
Issue 561: OSGi: the import package declaration of org.h2 excluded version 1.4. Issue 561: OSGi: the import package declaration of org.h2 excluded version 1.4.
@changelog_1046_li @changelog_1052_li
Issue 558: with the MVStore, a NullPointerException could occur when using LOBs at session commit (LobStorageMap.removeLob). Issue 558: with the MVStore, a NullPointerException could occur when using LOBs at session commit (LobStorageMap.removeLob).
@changelog_1047_li @changelog_1053_li
Remove the "h2.MAX_MEMORY_ROWS_DISTINCT" system property to reduce confusion. We already have the MAX_MEMORY_ROWS setting which does a very similar thing, and is better documented. Remove the "h2.MAX_MEMORY_ROWS_DISTINCT" system property to reduce confusion. We already have the MAX_MEMORY_ROWS setting which does a very similar thing, and is better documented.
@changelog_1048_li @changelog_1054_li
Issue 554: Web Console in an IFrame was not fully supported. Issue 554: Web Console in an IFrame was not fully supported.
@changelog_1049_h2 @changelog_1055_h2
Version 1.4.177 Beta (2014-04-12) Version 1.4.177 Beta (2014-04-12)
@changelog_1050_li @changelog_1056_li
By default, the MV_STORE option is enabled, so it is using the new MVStore storage. The MVCC setting is by default set to the same values as the MV_STORE setting, so it is also enabled by default. For testing, both settings can be disabled by appending ";MV_STORE=FALSE" and/or ";MVCC=FALSE" to the database URL. By default, the MV_STORE option is enabled, so it is using the new MVStore storage. The MVCC setting is by default set to the same values as the MV_STORE setting, so it is also enabled by default. For testing, both settings can be disabled by appending ";MV_STORE=FALSE" and/or ";MVCC=FALSE" to the database URL.
@changelog_1051_li @changelog_1057_li
The file locking method 'serialized' is no longer supported. This mode might return in a future version, however this is not clear right now. A new implementation and new tests would be needed. The file locking method 'serialized' is no longer supported. This mode might return in a future version, however this is not clear right now. A new implementation and new tests would be needed.
@changelog_1052_li @changelog_1058_li
Enable the new storage format for dates (system property "h2.storeLocalTime"). For the MVStore mode, this is always enabled, but with version 1.4 this is even enabled in the PageStore mode. Enable the new storage format for dates (system property "h2.storeLocalTime"). For the MVStore mode, this is always enabled, but with version 1.4 this is even enabled in the PageStore mode.
@changelog_1053_li @changelog_1059_li
Implicit relative paths are disabled (system property "h2.implicitRelativePath"), so that the database URL jdbc:h2:test now needs to be written as jdbc:h2:./test. Implicit relative paths are disabled (system property "h2.implicitRelativePath"), so that the database URL jdbc:h2:test now needs to be written as jdbc:h2:./test.
@changelog_1054_li @changelog_1060_li
"select ... fetch first 1 row only" is supported with the regular mode. This was disabled so far because "fetch" is now a keyword. See also Mode.supportOffsetFetch. "select ... fetch first 1 row only" is supported with the regular mode. This was disabled so far because "fetch" is now a keyword. See also Mode.supportOffsetFetch.
@changelog_1055_li @changelog_1061_li
Byte arrays are now sorted in unsigned mode (x'99' is larger than x'09'). (System property "h2.sortBinaryUnsigned", Mode.binaryUnsigned, setting "binary_collation"). Byte arrays are now sorted in unsigned mode (x'99' is larger than x'09'). (System property "h2.sortBinaryUnsigned", Mode.binaryUnsigned, setting "binary_collation").
@changelog_1056_li @changelog_1062_li
Csv.getInstance will be removed in future versions of 1.4. Use the public constructor instead. Csv.getInstance will be removed in future versions of 1.4. Use the public constructor instead.
@changelog_1057_li @changelog_1063_li
Remove support for the limited old-style outer join syntax using "(+)". Use "outer join" instead. System property "h2.oldStyleOuterJoin". Remove support for the limited old-style outer join syntax using "(+)". Use "outer join" instead. System property "h2.oldStyleOuterJoin".
@changelog_1058_li @changelog_1064_li
Support the data type "DATETIME2" as an alias for "DATETIME", for MS SQL Server compatibility. Support the data type "DATETIME2" as an alias for "DATETIME", for MS SQL Server compatibility.
@changelog_1059_li @changelog_1065_li
Add Oracle-compatible TRANSLATE function, patch by Eric Chatellier. Add Oracle-compatible TRANSLATE function, patch by Eric Chatellier.
@changelog_1060_h2 @changelog_1066_h2
Version 1.3.176 (2014-04-05) Version 1.3.176 (2014-04-05)
@changelog_1061_li @changelog_1067_li
The file locking method 'serialized' is no longer documented, as it will not be available in version 1.4. The file locking method 'serialized' is no longer documented, as it will not be available in version 1.4.
@changelog_1062_li @changelog_1068_li
The static method Csv.getInstance() was removed. Use the public constructor instead. The static method Csv.getInstance() was removed. Use the public constructor instead.
@changelog_1063_li @changelog_1069_li
The default user name for the Script, RunScript, Shell, and CreateCluster tools are no longer "sa" but an empty string. The default user name for the Script, RunScript, Shell, and CreateCluster tools are no longer "sa" but an empty string.
@changelog_1064_li @changelog_1070_li
The stack trace of the exception "The object is already closed" is no longer logged by default. The stack trace of the exception "The object is already closed" is no longer logged by default.
@changelog_1065_li @changelog_1071_li
If a value of a result set was itself a result set, the result could only be read once. If a value of a result set was itself a result set, the result could only be read once.
@changelog_1066_li @changelog_1072_li
Column constraints are also visible in views (patch from Nicolas Fortin for H2GIS). Column constraints are also visible in views (patch from Nicolas Fortin for H2GIS).
@changelog_1067_li @changelog_1073_li
Granting a additional right to a role that already had a right for that table was not working. Granting a additional right to a role that already had a right for that table was not working.
@changelog_1068_li @changelog_1074_li
Spatial index: a few bugs have been fixed (using spatial constraints in views, transferring geometry objects over TCP/IP, the returned geometry object is copied when needed). Spatial index: a few bugs have been fixed (using spatial constraints in views, transferring geometry objects over TCP/IP, the returned geometry object is copied when needed).
@changelog_1069_li @changelog_1075_li
Issue 551: the datatype documentation was incorrect (found by Bernd Eckenfels). Issue 551: the datatype documentation was incorrect (found by Bernd Eckenfels).
@changelog_1070_li @changelog_1076_li
Issue 368: ON DUPLICATE KEY UPDATE did not work for multi-row inserts. Test case from Angus Macdonald. Issue 368: ON DUPLICATE KEY UPDATE did not work for multi-row inserts. Test case from Angus Macdonald.
@changelog_1071_li @changelog_1077_li
OSGi: the package javax.tools is now imported (as an optional). OSGi: the package javax.tools is now imported (as an optional).
@changelog_1072_li @changelog_1078_li
H2 Console: auto-complete is now disabled by default, but there is a hot-key (Ctrl+Space). H2 Console: auto-complete is now disabled by default, but there is a hot-key (Ctrl+Space).
@changelog_1073_li @changelog_1079_li
H2 Console: auto-complete did not work with multi-line statements. H2 Console: auto-complete did not work with multi-line statements.
@changelog_1074_li @changelog_1080_li
CLOB and BLOB data was not immediately removed after a rollback. CLOB and BLOB data was not immediately removed after a rollback.
@changelog_1075_li @changelog_1081_li
There is a new Aggregate API that supports the internal H2 data types (GEOMETRY for example). Thanks a lot to Nicolas Fortin for the patch! There is a new Aggregate API that supports the internal H2 data types (GEOMETRY for example). Thanks a lot to Nicolas Fortin for the patch!
@changelog_1076_li @changelog_1082_li
Referential integrity constraints sometimes used the wrong index, such that updating a row in the referenced table incorrectly failed with a constraint violation. Referential integrity constraints sometimes used the wrong index, such that updating a row in the referenced table incorrectly failed with a constraint violation.
@changelog_1077_li @changelog_1083_li
The Polish translation was completed and corrected by Wojtek Jurczyk. Thanks a lot! The Polish translation was completed and corrected by Wojtek Jurczyk. Thanks a lot!
@changelog_1078_li @changelog_1084_li
Issue 545: Unnecessary duplicate code was removed. Issue 545: Unnecessary duplicate code was removed.
@changelog_1079_li @changelog_1085_li
The profiler tool can now process files with full thread dumps. The profiler tool can now process files with full thread dumps.
@changelog_1080_li @changelog_1086_li
MVStore: the file format was changed slightly. MVStore: the file format was changed slightly.
@changelog_1081_li @changelog_1087_li
MVStore mode: the CLOB and BLOB storage was re-implemented and is now much faster than with the PageStore (which is still the default storage). MVStore mode: the CLOB and BLOB storage was re-implemented and is now much faster than with the PageStore (which is still the default storage).
@changelog_1082_li @changelog_1088_li
MVStore mode: creating indexes is now much faster (in many cases faster than with the default PageStore). MVStore mode: creating indexes is now much faster (in many cases faster than with the default PageStore).
@changelog_1083_li @changelog_1089_li
Various bugs in the MVStore storage and have been fixed, including a bug in the R-tree implementation. The database could get corrupt if there were transient IO exceptions while storing. Various bugs in the MVStore storage and have been fixed, including a bug in the R-tree implementation. The database could get corrupt if there were transient IO exceptions while storing.
@changelog_1084_li @changelog_1090_li
The method org.h2.expression.Function.getCost could throw a NullPointException. The method org.h2.expression.Function.getCost could throw a NullPointException.
@changelog_1085_li @changelog_1091_li
Storing LOBs in separate files (outside of the main database file) is no longer supported for new databases. Storing LOBs in separate files (outside of the main database file) is no longer supported for new databases.
@changelog_1086_li @changelog_1092_li
Lucene 2 is no longer supported. Lucene 2 is no longer supported.
@changelog_1087_li @changelog_1093_li
Fix bug in calculating default MIN and MAX values for SEQUENCE. Fix bug in calculating default MIN and MAX values for SEQUENCE.
@changelog_1088_li @changelog_1094_li
Fix bug in performing IN queries with multiple values when IGNORECASE=TRUE Fix bug in performing IN queries with multiple values when IGNORECASE=TRUE
@changelog_1089_li @changelog_1095_li
Add entry-point to org.h2.tools.Shell so it can be called from inside an application. patch by Thomas Gillet. Add entry-point to org.h2.tools.Shell so it can be called from inside an application. patch by Thomas Gillet.
@changelog_1090_li @changelog_1096_li
Fix bug that prevented the PgServer from being stopped and started multiple times. Fix bug that prevented the PgServer from being stopped and started multiple times.
@changelog_1091_li @changelog_1097_li
Support some more DDL syntax for MySQL, patch from Peter Jentsch. Support some more DDL syntax for MySQL, patch from Peter Jentsch.
@changelog_1092_li @changelog_1098_li
Issue 548: TO_CHAR does not format MM and DD correctly when the month or day of the month is 1 digit, patch from "the.tucc" Issue 548: TO_CHAR does not format MM and DD correctly when the month or day of the month is 1 digit, patch from "the.tucc"
@changelog_1093_li @changelog_1099_li
Fix bug in varargs support in ALIAS's, patch from Nicolas Fortin Fix bug in varargs support in ALIAS's, patch from Nicolas Fortin
@changelog_1094_h2 @changelog_1100_h2
Version 1.3.175 (2014-01-18) Version 1.3.175 (2014-01-18)
@changelog_1095_li @changelog_1101_li
EXPLAIN was incorrect for queries with "ANY" or "SOME" conditions. EXPLAIN was incorrect for queries with "ANY" or "SOME" conditions.
@changelog_1096_li @changelog_1102_li
CallableStatement with "out" parameters: running the same statement twice could result in an exception ("parameter not set"). CallableStatement with "out" parameters: running the same statement twice could result in an exception ("parameter not set").
@changelog_1097_li @changelog_1103_li
Union queries: duplicate rows could be returned if the sub-queries contained "order by". Union queries: duplicate rows could be returned if the sub-queries contained "order by".
@changelog_1098_li @changelog_1104_li
The GEOMETRY data type now works for user defined functions that return a result set. The GEOMETRY data type now works for user defined functions that return a result set.
@changelog_1099_li @changelog_1105_li
PostgreSQL compatibility: the PgServer was not working properly when the setting database_to_upper was set to false. PostgreSQL compatibility: the PgServer was not working properly when the setting database_to_upper was set to false.
@changelog_1100_li @changelog_1106_li
JdbcDataSource: the methods setUrl and getUrl where added as aliases for setURL and getURL. This should solve problems with the HikariCP (Hikari connection pool). JdbcDataSource: the methods setUrl and getUrl where added as aliases for setURL and getURL. This should solve problems with the HikariCP (Hikari connection pool).
@changelog_1101_li @changelog_1107_li
Issue 537: H2 Console: when loading the schema, incorrect JDBC calls where issued, which caused the exception "Column PRECISION not found". Issue 537: H2 Console: when loading the schema, incorrect JDBC calls where issued, which caused the exception "Column PRECISION not found".
@changelog_1102_li @changelog_1108_li
Improved Geometry processing (issue 535). Improved Geometry processing (issue 535).
@changelog_1103_li @changelog_1109_li
The collation can now be set in the database URL, even if there are data tables, if the collection is the same as the current collation. The collation can now be set in the database URL, even if there are data tables, if the collection is the same as the current collation.
@changelog_1104_li @changelog_1110_li
Improved Oracle compatibility for CASE WHEN and DECODE. Improved Oracle compatibility for CASE WHEN and DECODE.
@changelog_1105_li @changelog_1111_li
The statement "drop all objects" did not work if a table depends on a view via a constraint. The statement "drop all objects" did not work if a table depends on a view via a constraint.
@changelog_1106_li @changelog_1112_li
Subqueries or views with "order by" an alias expression could not be executed due to a regression introduced in version 1.3.174. Subqueries or views with "order by" an alias expression could not be executed due to a regression introduced in version 1.3.174.
@changelog_1107_li @changelog_1113_li
Issue 73: MySQL compatibility: support REPLACE, patch by Cemo Koc. Issue 73: MySQL compatibility: support REPLACE, patch by Cemo Koc.
@changelog_1108_li @changelog_1114_li
The spatial index now works in MVCC mode when using the MVStore storage. The spatial index now works in MVCC mode when using the MVStore storage.
@changelog_1109_li @changelog_1115_li
MVStore: concurrency problems have been fixed. The API has been simplified. MVStore: concurrency problems have been fixed. The API has been simplified.
@changelog_1110_li @changelog_1116_li
Improve error message when dropping an index that belongs to a constraint, specify constraint in error message. Improve error message when dropping an index that belongs to a constraint, specify constraint in error message.
@changelog_1111_li @changelog_1117_li
Issue 518: java.sql.Connection.commit() freezes after LOB modification with EXCLUSIVE connection Issue 518: java.sql.Connection.commit() freezes after LOB modification with EXCLUSIVE connection
@changelog_1112_li @changelog_1118_li
Issue 517: Create or replace view statement has no effect on the others already existing JDBC connection Issue 517: Create or replace view statement has no effect on the others already existing JDBC connection
@changelog_1113_li @changelog_1119_li
Support 123L syntax as in Java; example: SELECT (2000000000L*2). Support 123L syntax as in Java; example: SELECT (2000000000L*2).
@changelog_1114_li @changelog_1120_li
Issue 520: Add support for sequence max value, min value and cycle, patch by Daniel Gredler. Issue 520: Add support for sequence max value, min value and cycle, patch by Daniel Gredler.
@changelog_1115_li @changelog_1121_li
Issue 521: ScriptReader should implement Closeable Issue 521: ScriptReader should implement Closeable
@changelog_1116_li @changelog_1122_li
Issue 524: RunScript.execute does not close its Statement, patch from Gaul. Issue 524: RunScript.execute does not close its Statement, patch from Gaul.
@changelog_1117_li @changelog_1123_li
Add support for DB2 "WITH UR" clause, patch from litailang Add support for DB2 "WITH UR" clause, patch from litailang
@changelog_1118_li @changelog_1124_li
Added support for ON DUPLICATE KEY UPDATE like MySQL with the values() function to update with the value that was to be inserted. Patch from Jean-Francois Noel. Added support for ON DUPLICATE KEY UPDATE like MySQL with the values() function to update with the value that was to be inserted. Patch from Jean-Francois Noel.
@changelog_1119_li @changelog_1125_li
Issue 522: Treat empty strings like NULL in Oracle compatibility mode, patch by Daniel Gredler. Issue 522: Treat empty strings like NULL in Oracle compatibility mode, patch by Daniel Gredler.
@changelog_1120_li @changelog_1126_li
Issue 527: Oracle compatibility mode: incorrect scale behavior, patch by Daniel Gredler. Issue 527: Oracle compatibility mode: incorrect scale behavior, patch by Daniel Gredler.
@changelog_1121_li @changelog_1127_li
Slightly reduce the memory cost of View metadata. Slightly reduce the memory cost of View metadata.
@changelog_1122_li @changelog_1128_li
Extend support of "GRANT ALTER ANY SCHEMA TO <user>" to allow grantee ability to manipulate tables Extend support of "GRANT ALTER ANY SCHEMA TO <user>" to allow grantee ability to manipulate tables
@changelog_1123_li @changelog_1129_li
Issue 532: Javadoc for ErrorCode.ROLES_AND_RIGHT_CANNOT_BE_MIXED looks wrong Issue 532: Javadoc for ErrorCode.ROLES_AND_RIGHT_CANNOT_BE_MIXED looks wrong
@changelog_1124_li @changelog_1130_li
Issue 528: Add Oracle-compatible TO_CHAR function, patch by Daniel Gredler. Issue 528: Add Oracle-compatible TO_CHAR function, patch by Daniel Gredler.
@changelog_1125_li @changelog_1131_li
Issue 534: CREATE ALIAS NOCACHE, Patch by Nicolas Fortin Issue 534: CREATE ALIAS NOCACHE, Patch by Nicolas Fortin
@changelog_1126_li @changelog_1132_li
Fix an issue with storing Unicode surrogate pairs in CLOB columns. Fix an issue with storing Unicode surrogate pairs in CLOB columns.
@changelog_1127_li @changelog_1133_li
H2 console: add SHIFT+ENTER "run selected" functionality H2 console: add SHIFT+ENTER "run selected" functionality
@changelog_1128_li @changelog_1134_li
Fix bug in DB2 syntax "select * from test with ur", patch from litailang Fix bug in DB2 syntax "select * from test with ur", patch from litailang
@changelog_1129_li @changelog_1135_li
Fix bug in DROP ALL OBJECTS when dealing with inter-schema dependencies. Fix bug in DROP ALL OBJECTS when dealing with inter-schema dependencies.
@changelog_1130_h2 @changelog_1136_h2
Version 1.3.174 (2013-10-19) Version 1.3.174 (2013-10-19)
@changelog_1131_li @changelog_1137_li
LIRS cache: bugfix for caches that only contain non-resident entries. LIRS cache: bugfix for caches that only contain non-resident entries.
@changelog_1132_li @changelog_1138_li
For in-memory databases, queries with a "group by" column that is also a hash index threw a RuntimeException. For in-memory databases, queries with a "group by" column that is also a hash index threw a RuntimeException.
@changelog_1133_li @changelog_1139_li
Improved error message for some syntax errors. Improved error message for some syntax errors.
@changelog_1134_li @changelog_1140_li
File system abstraction: if used directly, some file systems did not work correctly with spliced byte buffers (the database engine doesn't use those). File system abstraction: if used directly, some file systems did not work correctly with spliced byte buffers (the database engine doesn't use those).
@changelog_1135_li @changelog_1141_li
To use the MVStore storage engine (which is still work in progress), append ";mv_store=true" to the database URL. Using the MVTableEngine when creating the table is no longer recommended. To use the MVStore storage engine (which is still work in progress), append ";mv_store=true" to the database URL. Using the MVTableEngine when creating the table is no longer recommended.
@changelog_1136_li @changelog_1142_li
To compile user defined functions, the javax.tools.JavaCompiler is now used if available, and no temporary files are created. This should solve problems when multiple H2 database concurrently compile the same user defined functions. To disable, system the system property "h2.javaSystemCompiler" to false. To compile user defined functions, the javax.tools.JavaCompiler is now used if available, and no temporary files are created. This should solve problems when multiple H2 database concurrently compile the same user defined functions. To disable, system the system property "h2.javaSystemCompiler" to false.
@changelog_1137_li @changelog_1143_li
Concurrently creating function aliases in different databases could result in the exception "javac: file not found". Concurrently creating function aliases in different databases could result in the exception "javac: file not found".
@changelog_1138_li @changelog_1144_li
The function "regexp_replace" threw the wrong kind of exception if the replacement string was invalid. The function "regexp_replace" threw the wrong kind of exception if the replacement string was invalid.
@changelog_1139_li @changelog_1145_li
A checkpoint is now done every MAX_LOG_SIZE / 2 instead of every MAX_LOG_SIZE, so that the transaction log doesn't grow as large. A checkpoint is now done every MAX_LOG_SIZE / 2 instead of every MAX_LOG_SIZE, so that the transaction log doesn't grow as large.
@changelog_1140_li @changelog_1146_li
MVStore table engine: new setting "retention_time" to configure the time to retain old data. The default is 45 seconds. MVStore table engine: new setting "retention_time" to configure the time to retain old data. The default is 45 seconds.
@changelog_1141_li @changelog_1147_li
The method TableEngine.createTable() now returns a Table object. The method TableEngine.createTable() now returns a Table object.
@changelog_1142_li @changelog_1148_li
For read-only databases, for the trace level "debug", the trace info is written to the temp directory. For read-only databases, for the trace level "debug", the trace info is written to the temp directory.
@changelog_1143_li @changelog_1149_li
Closing the file lock will now wait until the background thread is stopped. Closing the file lock will now wait until the background thread is stopped.
@changelog_1144_li @changelog_1150_li
In version 1.3.172, a performance regression was introduced when fixing the issue 389 (when there is a multi-column primary key, H2 does not seem to always pick the right index). This was related to boosting an index that matches the "order by" column list (the wrong index was used in some cases). In version 1.3.172, a performance regression was introduced when fixing the issue 389 (when there is a multi-column primary key, H2 does not seem to always pick the right index). This was related to boosting an index that matches the "order by" column list (the wrong index was used in some cases).
@changelog_1145_li @changelog_1151_li
Improved spatial index and data type. Improved spatial index and data type.
@changelog_1146_li @changelog_1152_li
Issue 467: OSGi Class Loader (ability to create reference to class in other ClassLoader, for example in another OSGi bundle). Issue 467: OSGi Class Loader (ability to create reference to class in other ClassLoader, for example in another OSGi bundle).
@changelog_1147_li @changelog_1153_li
Queries "group by" that contain a subquery with an aggregate function returned the wrong result in some cases. Queries "group by" that contain a subquery with an aggregate function returned the wrong result in some cases.
@changelog_1148_li @changelog_1154_li
Fix bug in unique and non-unique hash indexes which manifested as incorrect results when the search key was a different cardinal type from the table index key. e.g. where the one was INT and the other was LONG Fix bug in unique and non-unique hash indexes which manifested as incorrect results when the search key was a different cardinal type from the table index key. e.g. where the one was INT and the other was LONG
@changelog_1149_li @changelog_1155_li
Bug: Changes to the database structure did not result in the Session query cache being invalidated. Bug: Changes to the database structure did not result in the Session query cache being invalidated.
@changelog_1150_li @changelog_1156_li
New feature from Davide Cavestro - allow using custom Java object serialization engines on a per-DB basis. New feature from Davide Cavestro - allow using custom Java object serialization engines on a per-DB basis.
@changelog_1151_li @changelog_1157_li
When running the Recover tool on very large (>6G) databases, some statistics were reported with negative numbers. When running the Recover tool on very large (>6G) databases, some statistics were reported with negative numbers.
@changelog_1152_li @changelog_1158_li
Add a CONTAINS_UNCOMMITTED column to the SESSIONS metadata table, to allow detecting when rogue sessions are creating large transactions. Add a CONTAINS_UNCOMMITTED column to the SESSIONS metadata table, to allow detecting when rogue sessions are creating large transactions.
@changelog_1153_li @changelog_1159_li
Some small fixes to the GEOMETRY support, patches by Nicolas Fortin. Some small fixes to the GEOMETRY support, patches by Nicolas Fortin.
@changelog_1154_li @changelog_1160_li
The BNF tool and the autocomplete feature are exported in OSGi, which makes it possible for smart editors to do autocomplete. Patch from Nicolas Fortin. The BNF tool and the autocomplete feature are exported in OSGi, which makes it possible for smart editors to do autocomplete. Patch from Nicolas Fortin.
@changelog_1155_li @changelog_1161_li
Fix DROP ALL OBJECTS and DROP SCHEMA in the presence of tables with computed column dependencies. Fix DROP ALL OBJECTS and DROP SCHEMA in the presence of tables with computed column dependencies.
@changelog_1156_li @changelog_1162_li
Session-temporary LOB's could sometimes accumulate, increasing the size of the DB file until shutdown. Now they are cleared out at every commit. Session-temporary LOB's could sometimes accumulate, increasing the size of the DB file until shutdown. Now they are cleared out at every commit.
@changelog_1157_li @changelog_1163_li
There was a bug where a hash index with more than one column would be silently converted to a regular index. It will now throw an exception. There was a bug where a hash index with more than one column would be silently converted to a regular index. It will now throw an exception.
@changelog_1158_li @changelog_1164_li
Query Statistics: new feature which stores the newest 100 SQL queries executed and their performance data. Useful for tracking down badly performing queries. Query Statistics: new feature which stores the newest 100 SQL queries executed and their performance data. Useful for tracking down badly performing queries.
@changelog_1159_li @changelog_1165_li
Fix an LOB deadlock between reading and updating LOB columns. Fix an LOB deadlock between reading and updating LOB columns.
@changelog_1160_li @changelog_1166_li
Support the JDBC DatabaseMetaData#getClientInfoProperties() method, in the sense of returning an empty result, in order to make WebSphere happy. Support the JDBC DatabaseMetaData#getClientInfoProperties() method, in the sense of returning an empty result, in order to make WebSphere happy.
@changelog_1161_li @changelog_1167_li
Make Server#openBrowser respect the $BROWSER environment variable. Add "chromium" to the list of browsers tried. Patch from Felix Kaiser. Make Server#openBrowser respect the $BROWSER environment variable. Add "chromium" to the list of browsers tried. Patch from Felix Kaiser.
@changelog_1162_li @changelog_1168_li
Fix to org.h2.util.ScriptReader when handling unclosed block comments. Fix to org.h2.util.ScriptReader when handling unclosed block comments.
@changelog_1163_li @changelog_1169_li
Make org.h2.util.ScriptReader throw a better exception when handling broken scripts which generate extremely large statements. Make org.h2.util.ScriptReader throw a better exception when handling broken scripts which generate extremely large statements.
@changelog_1164_li @changelog_1170_li
Fix bug with ALLOW_LITERALS=NONE, where the periodic analyze table on insert would throw an exception. A similar problem was fixed in the Console tool. Fix bug with ALLOW_LITERALS=NONE, where the periodic analyze table on insert would throw an exception. A similar problem was fixed in the Console tool.
@changelog_1165_li @changelog_1171_li
Issue 510: Make org.h2.bnf public for consumption by external projects, patch by Nicolas Fortin Issue 510: Make org.h2.bnf public for consumption by external projects, patch by Nicolas Fortin
@changelog_1166_li @changelog_1172_li
Issue 509: Important fix on ValueGeometry, patch by Nicolas Fortin (with some tweaking) Make ValueGeometry#getDimensionCount more reliable. Add unit test to check for illegal ValueGeometry comparison Add unit test for conversion of Geometry object into Object Add optional export to MANIFEST.MF for JTS Geometry classes Validate that geometry values can be represented in WKB. Issue 509: Important fix on ValueGeometry, patch by Nicolas Fortin (with some tweaking) Make ValueGeometry#getDimensionCount more reliable. Add unit test to check for illegal ValueGeometry comparison Add unit test for conversion of Geometry object into Object Add optional export to MANIFEST.MF for JTS Geometry classes Validate that geometry values can be represented in WKB.
@changelog_1167_li @changelog_1173_li
Issue 506: RFE: Include Thread.getName() in case of a deadlock Issue 506: RFE: Include Thread.getName() in case of a deadlock
@changelog_1168_li @changelog_1174_li
Adding support for "GRANT ALTER ANY SCHEMA TO <user>", patch by John Yates Adding support for "GRANT ALTER ANY SCHEMA TO <user>", patch by John Yates
@changelog_1169_h2 @changelog_1175_h2
Version 1.3.173 (2013-07-28) Version 1.3.173 (2013-07-28)
@changelog_1170_li @changelog_1176_li
Support empty statements that just contains a comment. Support empty statements that just contains a comment.
@changelog_1171_li @changelog_1177_li
Server mode: if there was an error while reading from a LOB, the session was closed in some cases. Server mode: if there was an error while reading from a LOB, the session was closed in some cases.
@changelog_1172_li @changelog_1178_li
Issue 463: Driver name and version are now the same in OsgiDataSourceFactory and JdbcDatabaseMetaData. Issue 463: Driver name and version are now the same in OsgiDataSourceFactory and JdbcDatabaseMetaData.
@changelog_1173_li @changelog_1179_li
JaQu: The data type VARCHAR is now (again) used for Strings (no longer TEXT, except when explicitly set). JaQu: The data type VARCHAR is now (again) used for Strings (no longer TEXT, except when explicitly set).
@changelog_1174_li @changelog_1180_li
For in-memory databases, creating an index on a CLOB or BLOB column is no longer supported. This is to simplify the MVTableEngine. For in-memory databases, creating an index on a CLOB or BLOB column is no longer supported. This is to simplify the MVTableEngine.
@changelog_1175_li @changelog_1181_li
New column "information_schema.tables.row_count_estimate". New column "information_schema.tables.row_count_estimate".
@changelog_1176_li @changelog_1182_li
Issue 468: trunc(timestamp) could return the wrong value (+12 hours), and trunc(number) throw a NullPointerException. Issue 468: trunc(timestamp) could return the wrong value (+12 hours), and trunc(number) throw a NullPointerException.
@changelog_1177_li @changelog_1183_li
The expression trunc(number) threw a NullPointerException. The expression trunc(number) threw a NullPointerException.
@changelog_1178_li @changelog_1184_li
Fixed a deadlock when updating LOB's concurrently. See TestLob.testDeadlock2(). Fixed a deadlock when updating LOB's concurrently. See TestLob.testDeadlock2().
@changelog_1179_li @changelog_1185_li
Fixed a deadlock related to very large temporary result sets. Fixed a deadlock related to very large temporary result sets.
@changelog_1180_li @changelog_1186_li
Add "-list" command line option to Shell tool so that result-list-mode can be triggered when reading from a file. Add "-list" command line option to Shell tool so that result-list-mode can be triggered when reading from a file.
@changelog_1181_li @changelog_1187_li
Issue 474: H2 MySQL Compatibility code fails to ignore "COMMENT" in CREATE TABLE, patch from Aaron Azeckoski. Issue 474: H2 MySQL Compatibility code fails to ignore "COMMENT" in CREATE TABLE, patch from Aaron Azeckoski.
@changelog_1182_li @changelog_1188_li
Issue 476: Broken link in jaqu.html Issue 476: Broken link in jaqu.html
@changelog_1183_li @changelog_1189_li
Fix potential UTF8 encoding issue in org.h2.store.FileStore, reported by Juerg Spiess. Fix potential UTF8 encoding issue in org.h2.store.FileStore, reported by Juerg Spiess.
@changelog_1184_li @changelog_1190_li
Improve error message when check constraint is broken, test case from Gili (cowwoc). Improve error message when check constraint is broken, test case from Gili (cowwoc).
@changelog_1185_li @changelog_1191_li
Improve error message when we have a unique constraint violation, displays the offending key in the error message. Improve error message when we have a unique constraint violation, displays the offending key in the error message.
@changelog_1186_li @changelog_1192_li
Issue 478: Support for "SHOW TRANSACTION ISOLATION LEVEL", patch from Andrew Franklin. Issue 478: Support for "SHOW TRANSACTION ISOLATION LEVEL", patch from Andrew Franklin.
@changelog_1187_li @changelog_1193_li
Issue 475: PgServer: add support for CancelRequest, patch from Andrew Franklin. Issue 475: PgServer: add support for CancelRequest, patch from Andrew Franklin.
@changelog_1188_li @changelog_1194_li
Issue 473: PgServer missing -key option, patch from Andrew Franklin. Issue 473: PgServer missing -key option, patch from Andrew Franklin.
@changelog_1189_li @changelog_1195_li
Issue 471: CREATE VIEW does not check user rights, patch from Andrew Franklin. Issue 471: CREATE VIEW does not check user rights, patch from Andrew Franklin.
@changelog_1190_li @changelog_1196_li
Issue 477: PgServer binary transmission of query params is unimplemented, patch from Andrew Franklin. Issue 477: PgServer binary transmission of query params is unimplemented, patch from Andrew Franklin.
@changelog_1191_li @changelog_1197_li
Issue 479: Support for SUBSTRING without a FROM condition, patch from Andrew Franklin. Issue 479: Support for SUBSTRING without a FROM condition, patch from Andrew Franklin.
@changelog_1192_li @changelog_1198_li
Issue 472: PgServer does not work with any recent Postgres JDBC driver, patch from Andrew Franklin. Issue 472: PgServer does not work with any recent Postgres JDBC driver, patch from Andrew Franklin.
@changelog_1193_li @changelog_1199_li
Add syntax for passing additional parameters into custom TableEngine implementations. Add syntax for passing additional parameters into custom TableEngine implementations.
@changelog_1194_li @changelog_1200_li
Issue 480: Bugfix post issue 475, 477, patch from Andrew Franklin. Issue 480: Bugfix post issue 475, 477, patch from Andrew Franklin.
@changelog_1195_li @changelog_1201_li
Issue 481: Further extensions to PgServer to support better support PG JDBC, patch from Andrew Franklin. Issue 481: Further extensions to PgServer to support better support PG JDBC, patch from Andrew Franklin.
@changelog_1196_li @changelog_1202_li
Add support for spatial datatype GEOMETRY. Add support for spatial datatype GEOMETRY.
@changelog_1197_li @changelog_1203_li
Add support for in-memory spatial index. Add support for in-memory spatial index.
@changelog_1198_li @changelog_1204_li
change the PageStore#changeCount field from an int to a long, to cope with databases with very high transaction rates. change the PageStore#changeCount field from an int to a long, to cope with databases with very high transaction rates.
@changelog_1199_li @changelog_1205_li
Fix a NullPointerException when attempting to add foreign key reference to a view. Fix a NullPointerException when attempting to add foreign key reference to a view.
@changelog_1200_li @changelog_1206_li
Add sufficient ClientInfo support to our javax.sql.Connection implementation to make WebSphere happy. Add sufficient ClientInfo support to our javax.sql.Connection implementation to make WebSphere happy.
@changelog_1201_li @changelog_1207_li
Issue 482: class LobStorageBackend$LobInputStream does not override the method InputStream.available(). Issue 482: class LobStorageBackend$LobInputStream does not override the method InputStream.available().
@changelog_1202_li @changelog_1208_li
Fix corruption resulting from a mix of the "WRITE_DELAY=0" option and "SELECT DISTINCT" queries that don't fit in memory. Fix corruption resulting from a mix of the "WRITE_DELAY=0" option and "SELECT DISTINCT" queries that don't fit in memory.
@changelog_1203_li @changelog_1209_li
Fix the combination of updating a table which contains an LOB, and reading from the LOB at the same time. Previously it would throw an exception, now it works. Fix the combination of updating a table which contains an LOB, and reading from the LOB at the same time. Previously it would throw an exception, now it works.
@changelog_1204_li @changelog_1210_li
Issue 484: In the H2 Console tool, all schemas starting with "INFO" where hidden. Now they are hidden only if the database is not H2. Patch from "mgcodeact"/"cumer d" Issue 484: In the H2 Console tool, all schemas starting with "INFO" where hidden. Now they are hidden only if the database is not H2. Patch from "mgcodeact"/"cumer d"
@changelog_1205_li @changelog_1211_li
MySQL compatibility, support the "AUTO_INCREMENT=3" part of the CREATE TABLE statement. MySQL compatibility, support the "AUTO_INCREMENT=3" part of the CREATE TABLE statement.
@changelog_1206_li @changelog_1212_li
Issue 486: MySQL compatibility, support the "DEFAULT CHARSET" part of the CREATE TABLE statement. Issue 486: MySQL compatibility, support the "DEFAULT CHARSET" part of the CREATE TABLE statement.
@changelog_1207_li @changelog_1213_li
Issue 487: support the MySQL "SET foreign_key_checks = 0" command Issue 487: support the MySQL "SET foreign_key_checks = 0" command
@changelog_1208_li @changelog_1214_li
Issue 490: support MySQL "USING BTREE" index declaration Issue 490: support MySQL "USING BTREE" index declaration
@changelog_1209_li @changelog_1215_li
Issue 485: Database get corrupted when column is renamed for which check constraint was defined inside create table statement. Issue 485: Database get corrupted when column is renamed for which check constraint was defined inside create table statement.
@changelog_1210_li @changelog_1216_li
Issue 499: support MySQL "UNIQUE KEY (ID) USING BTREE" constraint syntax Issue 499: support MySQL "UNIQUE KEY (ID) USING BTREE" constraint syntax
@changelog_1211_li @changelog_1217_li
Issue 501: "CREATE TABLE .. WITH" not serialized, patch from nico.devel Issue 501: "CREATE TABLE .. WITH" not serialized, patch from nico.devel
@changelog_1212_li @changelog_1218_li
Avoid problems with runtime-compiled ALIAS methods when people have set the JAVA_TOOL_OPTIONS environment variable. Avoid problems with runtime-compiled ALIAS methods when people have set the JAVA_TOOL_OPTIONS environment variable.
@changelog_1213_h2 @changelog_1219_h2
Version 1.3.172 (2013-05-25) Version 1.3.172 (2013-05-25)
@changelog_1214_li @changelog_1220_li
Referential integrity: when adding a referential integrity constraint failed, and if creating the constraint automatically created an index, this index was not removed. Referential integrity: when adding a referential integrity constraint failed, and if creating the constraint automatically created an index, this index was not removed.
@changelog_1215_li @changelog_1221_li
The auto-analyze feature now only reads 1000 rows per table instead of 10000. The auto-analyze feature now only reads 1000 rows per table instead of 10000.
@changelog_1216_li @changelog_1222_li
The optimization for IN(...) queries combined with OR could result in a strange exception of the type "column x must be included in the group by list". The optimization for IN(...) queries combined with OR could result in a strange exception of the type "column x must be included in the group by list".
@changelog_1217_li @changelog_1223_li
Issue 454: Use Charset for type-safety. Issue 454: Use Charset for type-safety.
@changelog_1218_li @changelog_1224_li
Queries with both LIMIT and OFFSET could throw an IllegalArgumentException. Queries with both LIMIT and OFFSET could throw an IllegalArgumentException.
@changelog_1219_li @changelog_1225_li
MVStore: multiple issues were fixed: 460, 461, 462, 464, 466. MVStore: multiple issues were fixed: 460, 461, 462, 464, 466.
@changelog_1220_li @changelog_1226_li
MVStore: larger stores (multiple GB) are now much faster. MVStore: larger stores (multiple GB) are now much faster.
@changelog_1221_li @changelog_1227_li
When using local temporary tables and not dropping them manually before closing the session, and then killing the process could result in a database that couldn't be opened (except when using the recover tool). When using local temporary tables and not dropping them manually before closing the session, and then killing the process could result in a database that couldn't be opened (except when using the recover tool).
@changelog_1222_li @changelog_1228_li
Support TRUNC(timestamp) for improved Oracle compatibility. Support TRUNC(timestamp) for improved Oracle compatibility.
@changelog_1223_li @changelog_1229_li
Add support for CREATE TABLE TEST (ID BIGSERIAL) for PostgreSQL compatibility. Patch from Jesse Long. Add support for CREATE TABLE TEST (ID BIGSERIAL) for PostgreSQL compatibility. Patch from Jesse Long.
@changelog_1224_li @changelog_1230_li
Add new collation command SET BINARY_COLLATION UNSIGNED, helps with people testing BINARY columns in MySQL mode. Add new collation command SET BINARY_COLLATION UNSIGNED, helps with people testing BINARY columns in MySQL mode.
@changelog_1225_li @changelog_1231_li
Issue 453: ABBA race conditions in TABLE LINK connection sharing. Issue 453: ABBA race conditions in TABLE LINK connection sharing.
@changelog_1226_li @changelog_1232_li
Issue 449: Postgres Serial data type should not automatically be marked as primary key Issue 449: Postgres Serial data type should not automatically be marked as primary key
@changelog_1227_li @changelog_1233_li
Issue 406: Support "select h2version()" Issue 406: Support "select h2version()"
@changelog_1228_li @changelog_1234_li
Issue 389: When there is a multi-column primary key, H2 does not seem to always pick the right index Issue 389: When there is a multi-column primary key, H2 does not seem to always pick the right index
@changelog_1229_li @changelog_1235_li
Issue 305: Implement SELECT ... FOR FETCH ONLY Issue 305: Implement SELECT ... FOR FETCH ONLY
@changelog_1230_li @changelog_1236_li
Issue 274: Sybase/MSSQLServer compatibility - Add GETDATE and CHARINDEX system functions Issue 274: Sybase/MSSQLServer compatibility - Add GETDATE and CHARINDEX system functions
@changelog_1231_li @changelog_1237_li
Issue 274: Sybase/MSSQLServer compatibility - swap parameters of CONVERT function. Issue 274: Sybase/MSSQLServer compatibility - swap parameters of CONVERT function.
@changelog_1232_li @changelog_1238_li
Issue 274: Sybase/MSSQLServer compatibility - support index clause e.g. "select * from test (index table1_index)" Issue 274: Sybase/MSSQLServer compatibility - support index clause e.g. "select * from test (index table1_index)"
@changelog_1233_li @changelog_1239_li
Fix bug in Optimizing SELECT * FROM A WHERE X=1 OR X=2 OR X=3 into SELECT * FROM A WHERE X IN (1,2,3) Fix bug in Optimizing SELECT * FROM A WHERE X=1 OR X=2 OR X=3 into SELECT * FROM A WHERE X IN (1,2,3)
@changelog_1234_li @changelog_1240_li
Issue 442: Groovy patch for SourceCompiler (function ALIAS) Issue 442: Groovy patch for SourceCompiler (function ALIAS)
@changelog_1235_li @changelog_1241_li
Issue 459: Improve LOB documentation Issue 459: Improve LOB documentation
@changelog_1236_h2 @changelog_1242_h2
Version 1.3.171 (2013-03-17) Version 1.3.171 (2013-03-17)
@changelog_1237_li @changelog_1243_li
Security: the TCP server did not correctly restrict access rights of clients in some cases. This was specially a problem when using the flag "tcpAllowOthers". Security: the TCP server did not correctly restrict access rights of clients in some cases. This was specially a problem when using the flag "tcpAllowOthers".
@changelog_1238_li @changelog_1244_li
H2 Console: the session timeout can now be configured using the system property "h2.consoleTimeout". H2 Console: the session timeout can now be configured using the system property "h2.consoleTimeout".
@changelog_1239_li @changelog_1245_li
Issue 431: Improved compatibility with MySQL: support for "ENGINE=InnoDB charset=UTF8" when creating a table. Issue 431: Improved compatibility with MySQL: support for "ENGINE=InnoDB charset=UTF8" when creating a table.
@changelog_1240_li @changelog_1246_li
Issue 249: Improved compatibility with MySQL in the MySQL mode: now the methods DatabaseMetaData methods stores*Case*Identifiers return the same as MySQL when using the MySQL mode. Issue 249: Improved compatibility with MySQL in the MySQL mode: now the methods DatabaseMetaData methods stores*Case*Identifiers return the same as MySQL when using the MySQL mode.
@changelog_1241_li @changelog_1247_li
Issue 434: H2 Console didn't work in the Chrome browser due to a wrong viewport argument. Issue 434: H2 Console didn't work in the Chrome browser due to a wrong viewport argument.
@changelog_1242_li @changelog_1248_li
There was a possibility that the .lock.db file was not deleted when the database was closed, which could slow down opening the database. There was a possibility that the .lock.db file was not deleted when the database was closed, which could slow down opening the database.
@changelog_1243_li @changelog_1249_li
The SQL script generated by the "script" command contained inconsistent newlines on Windows. The SQL script generated by the "script" command contained inconsistent newlines on Windows.
@changelog_1244_li @changelog_1250_li
When using trace level 4 (SLF4J) in the server mode, a directory "trace.db" and an empty file was created on the client side. This is no longer made. When using trace level 4 (SLF4J) in the server mode, a directory "trace.db" and an empty file was created on the client side. This is no longer made.
@changelog_1245_li @changelog_1251_li
Optimize IN(...) queries: there was a bug in version 1.3.170 if the type of the left hand side didn't match the type of the right hand side. Fixed. Optimize IN(...) queries: there was a bug in version 1.3.170 if the type of the left hand side didn't match the type of the right hand side. Fixed.
@changelog_1246_li @changelog_1252_li
Optimize IN(...) queries: there was a bug in version 1.3.170 for comparison of the type "X IN(NULL, NULL)". Fixed. Optimize IN(...) queries: there was a bug in version 1.3.170 for comparison of the type "X IN(NULL, NULL)". Fixed.
@changelog_1247_li @changelog_1253_li
Timestamps with timezone that were passed as a string were not always converted correctly. For example "2012-11-06T23:00:00.000Z" was converted to "2012-11-06" instead of to "2012-11-07" in the timezone CET. Thanks a lot to Steve Hruda for reporting the problem! Timestamps with timezone that were passed as a string were not always converted correctly. For example "2012-11-06T23:00:00.000Z" was converted to "2012-11-06" instead of to "2012-11-07" in the timezone CET. Thanks a lot to Steve Hruda for reporting the problem!
@changelog_1248_li @changelog_1254_li
New table engine "org.h2.mvstore.db.MVTableEngine" that internally uses the MVStore to persist data. To try it out, append ";DEFAULT_TABLE_ENGINE=org.h2.mvstore.db.MVTableEngine" to the database URL. This is still very experimental, and many features are not supported yet. The data is stored in a file with the suffix ".mv.db". New table engine "org.h2.mvstore.db.MVTableEngine" that internally uses the MVStore to persist data. To try it out, append ";DEFAULT_TABLE_ENGINE=org.h2.mvstore.db.MVTableEngine" to the database URL. This is still very experimental, and many features are not supported yet. The data is stored in a file with the suffix ".mv.db".
@changelog_1249_li @changelog_1255_li
New connection setting "DEFAULT_TABLE_ENGINE" to use a specific table engine if none is set explicitly. This is to simplify testing the MVStore table engine. New connection setting "DEFAULT_TABLE_ENGINE" to use a specific table engine if none is set explicitly. This is to simplify testing the MVStore table engine.
@changelog_1250_li @changelog_1256_li
MVStore: encrypted stores are now supported. Only standardized algorithms are used: PBKDF2, SHA-256, XTS-AES, AES-128. MVStore: encrypted stores are now supported. Only standardized algorithms are used: PBKDF2, SHA-256, XTS-AES, AES-128.
@changelog_1251_li @changelog_1257_li
MVStore: improved API thanks to Simo Tripodi. MVStore: improved API thanks to Simo Tripodi.
@changelog_1252_li @changelog_1258_li
MVStore: maps can now be renamed. MVStore: maps can now be renamed.
@changelog_1253_li @changelog_1259_li
MVStore: store the file header also at the end of each chunk, which results in a further reduced number of write operations. MVStore: store the file header also at the end of each chunk, which results in a further reduced number of write operations.
@changelog_1254_li @changelog_1260_li
MVStore: a map implementation that supports concurrent operations. MVStore: a map implementation that supports concurrent operations.
@changelog_1255_li @changelog_1261_li
MVStore: unified exception handling; the version is included in the messages. MVStore: unified exception handling; the version is included in the messages.
@changelog_1256_li @changelog_1262_li
MVStore: old data is now retained for 45 seconds by default. MVStore: old data is now retained for 45 seconds by default.
@changelog_1257_li @changelog_1263_li
MVStore: compress is now disabled by default, and can be enabled on request. MVStore: compress is now disabled by default, and can be enabled on request.
@changelog_1258_li @changelog_1264_li
Support ALTER TABLE ADD ... AFTER. Patch from Andrew Gaul (argaul at gmail.com). Fixes issue 401. Support ALTER TABLE ADD ... AFTER. Patch from Andrew Gaul (argaul at gmail.com). Fixes issue 401.
@changelog_1259_li @changelog_1265_li
Improved OSGi support. H2 now registers itself as a DataSourceFactory service. Fixes issue 365. Improved OSGi support. H2 now registers itself as a DataSourceFactory service. Fixes issue 365.
@changelog_1260_li @changelog_1266_li
Add a DISK_SPACE_USED system function. Fixes issue 270. Add a DISK_SPACE_USED system function. Fixes issue 270.
@changelog_1261_li @changelog_1267_li
Fix a compile-time ambiguity when compiling with JDK7, thanks to a patch from Lukas Eder. Fix a compile-time ambiguity when compiling with JDK7, thanks to a patch from Lukas Eder.
@changelog_1262_li @changelog_1268_li
Supporting dropping an index for Lucene full-text indexes. Supporting dropping an index for Lucene full-text indexes.
@changelog_1263_li @changelog_1269_li
Optimized performance for SELECT ... ORDER BY X LIMIT Y OFFSET Z queries for in-memory databases using partial sort (by Sergi Vladykin). Optimized performance for SELECT ... ORDER BY X LIMIT Y OFFSET Z queries for in-memory databases using partial sort (by Sergi Vladykin).
@changelog_1264_li @changelog_1270_li
Experimental off-heap memory storage engine "nioMemFS:" and "nioMemLZF:", suggestion from Mark Addleman. Experimental off-heap memory storage engine "nioMemFS:" and "nioMemLZF:", suggestion from Mark Addleman.
@changelog_1265_li @changelog_1271_li
Issue 438: JdbcDatabaseMetaData.getSchemas() is no longer supported as of 1.3.169. Issue 438: JdbcDatabaseMetaData.getSchemas() is no longer supported as of 1.3.169.
@changelog_1266_li @changelog_1272_li
MySQL compatibility: support for ALTER TABLE tableName MODIFY [COLUMN] columnName columnDef. Patch from Ville Koskela. MySQL compatibility: support for ALTER TABLE tableName MODIFY [COLUMN] columnName columnDef. Patch from Ville Koskela.
@changelog_1267_li @changelog_1273_li
Issue 404: SHOW COLUMNS FROM tableName does not work with ALLOW_LITERALS=NUMBERS. Issue 404: SHOW COLUMNS FROM tableName does not work with ALLOW_LITERALS=NUMBERS.
@changelog_1268_li @changelog_1274_li
Throw an explicit error to make it clear we don't support the TRIGGER combination of SELECT and FOR EACH ROW. Throw an explicit error to make it clear we don't support the TRIGGER combination of SELECT and FOR EACH ROW.
@changelog_1269_li @changelog_1275_li
Issue 439: Utils.sortTopN does not handle single-element arrays. Issue 439: Utils.sortTopN does not handle single-element arrays.
@cheatSheet_1000_h1 @cheatSheet_1000_h1
...@@ -10376,7 +10394,7 @@ MySQL compatibility: support ALTER TABLE .. MODIFY COLUMN. ...@@ -10376,7 +10394,7 @@ MySQL compatibility: support ALTER TABLE .. MODIFY COLUMN.
Use a lazy and auto-close input stream (open resource when reading, close on eof). Use a lazy and auto-close input stream (open resource when reading, close on eof).
@roadmap_1304_li @roadmap_1304_li
PostgreSQL compatibility: generate_series. PostgreSQL compatibility: generate_series (as an alias for system_range).
@roadmap_1305_li @roadmap_1305_li
Connection pool: 'reset session' command (delete temp tables, rollback, auto-commit true). Connection pool: 'reset session' command (delete temp tables, rollback, auto-commit true).
......
...@@ -1853,807 +1853,825 @@ Centralリ�?ジトリ�?�利用 ...@@ -1853,807 +1853,825 @@ Centralリ�?ジトリ�?�利用
#Next Version (unreleased) #Next Version (unreleased)
@changelog_1002_li @changelog_1002_li
#- #The JDBC escape syntax {ts 'value'} did not interpret the value as a timestamp. The same for {d 'value'} (for date) and {t 'value'} (for time). Thanks to Lukas Eder for reporting the issue.
@changelog_1003_h2 @changelog_1003_li
#Version 1.4.180 Beta (2014-07-13) #File system abstraction: support replacing existing files using move (currently not for Windows).
@changelog_1004_li @changelog_1004_li
#MVStore: the store is now auto-compacted automatically up to some point, to avoid very large file sizes. This area is still work in progress. #The statement "shutdown defrag" now compresses the database (with the MVStore).
@changelog_1005_li @changelog_1005_li
#Sequences of temporary tables (auto-increment or identity columns) were persisted unnecessarily in the database file, and were not removed when re-opening the database. #The MVStore now automatically shrinks the file in the background if there is no read or write activity. This might be a bit too aggressive; feedback is welcome!
@changelog_1006_li @changelog_1006_li
#MVStore: an IndexOutOfBoundsException could sometimes occur MVMap.openVersion when concurrently accessing the store. #Change default value of PAGE_SIZE from 2048 to 4096 to more closely match most file systems block size (PageStore only; the MVStore already used 4096).
@changelog_1007_li @changelog_1007_li
#The LIRS cache now re-sizes the internal hash map if needed. #Auto-scale MAX_MEMORY_ROWS and CACHE_SIZE settings by the amount of available RAM. Gives a better out of box experience for people with more powerful machines.
@changelog_1008_li @changelog_1008_li
#Handle tabs like 4 spaces in web console, patch by Martin Grajcar
@changelog_1009_h2
#Version 1.4.180 Beta (2014-07-13)
@changelog_1010_li
#MVStore: the store is now auto-compacted automatically up to some point, to avoid very large file sizes. This area is still work in progress.
@changelog_1011_li
#Sequences of temporary tables (auto-increment or identity columns) were persisted unnecessarily in the database file, and were not removed when re-opening the database.
@changelog_1012_li
#MVStore: an IndexOutOfBoundsException could sometimes occur MVMap.openVersion when concurrently accessing the store.
@changelog_1013_li
#The LIRS cache now re-sizes the internal hash map if needed.
@changelog_1014_li
#Optionally persist session history in the H2 console. (patch from Martin Grajcar) #Optionally persist session history in the H2 console. (patch from Martin Grajcar)
@changelog_1009_li @changelog_1015_li
#Add client-info property to get the number of servers currently in the cluster and which servers that are available. (patch from Nikolaj Fogh) #Add client-info property to get the number of servers currently in the cluster and which servers that are available. (patch from Nikolaj Fogh)
@changelog_1010_li @changelog_1016_li
#Fix bug in changing encrypted DB password that kept the file handle open when the wrong password was supplied. (test case from Jens Hohmuth). #Fix bug in changing encrypted DB password that kept the file handle open when the wrong password was supplied. (test case from Jens Hohmuth).
@changelog_1011_li @changelog_1017_li
#Issue 567: H2 hangs for a long time then (sometimes) recovers. Introduce a queue when doing table locking to prevent session starvation. #Issue 567: H2 hangs for a long time then (sometimes) recovers. Introduce a queue when doing table locking to prevent session starvation.
@changelog_1012_h2 @changelog_1018_h2
#Version 1.4.179 Beta (2014-06-23) #Version 1.4.179 Beta (2014-06-23)
@changelog_1013_li @changelog_1019_li
#The license was changed to MPL 2.0 (from 1.0) and EPL 1.0. #The license was changed to MPL 2.0 (from 1.0) and EPL 1.0.
@changelog_1014_li @changelog_1020_li
#Issue 565: MVStore: concurrently adding LOB objects (with MULTI_THREADED option) resulted in a NullPointerException. #Issue 565: MVStore: concurrently adding LOB objects (with MULTI_THREADED option) resulted in a NullPointerException.
@changelog_1015_li @changelog_1021_li
#MVStore: reduced dependencies to other H2 classes. #MVStore: reduced dependencies to other H2 classes.
@changelog_1016_li @changelog_1022_li
#There was a way to prevent a database from being re-opened, by creating a column constraint that references a table with a higher id, for example with "check" constraints that contains queries. This is now detected, and creating the table is prohibited. In future versions of H2, most likely creating references to other tables will no longer be supported because of such problems. #There was a way to prevent a database from being re-opened, by creating a column constraint that references a table with a higher id, for example with "check" constraints that contains queries. This is now detected, and creating the table is prohibited. In future versions of H2, most likely creating references to other tables will no longer be supported because of such problems.
@changelog_1017_li @changelog_1023_li
#MVStore: descending indexes with "nulls first" did not work as expected (null was ordered last). #MVStore: descending indexes with "nulls first" did not work as expected (null was ordered last).
@changelog_1018_li @changelog_1024_li
#Large result sets now always create temporary tables instead of temporary files. #Large result sets now always create temporary tables instead of temporary files.
@changelog_1019_li @changelog_1025_li
#When using the PageStore, opening a database failed in some cases with a NullPointerException if temporary tables were used (explicitly, or implicitly when using large result sets). #When using the PageStore, opening a database failed in some cases with a NullPointerException if temporary tables were used (explicitly, or implicitly when using large result sets).
@changelog_1020_li @changelog_1026_li
#If a database file in the PageStore file format exists, this file and this mode is now used, even if the database URL does not contain "MV_STORE=FALSE". If a MVStore file exists, it is used. #If a database file in the PageStore file format exists, this file and this mode is now used, even if the database URL does not contain "MV_STORE=FALSE". If a MVStore file exists, it is used.
@changelog_1021_li @changelog_1027_li
#Databases created with version 1.3.175 and earlier that contained foreign keys in combination with multi-column indexes could not be opened in some cases. This was due to a bugfix in version 1.3.176: Referential integrity constraints sometimes used the wrong index. #Databases created with version 1.3.175 and earlier that contained foreign keys in combination with multi-column indexes could not be opened in some cases. This was due to a bugfix in version 1.3.176: Referential integrity constraints sometimes used the wrong index.
@changelog_1022_li @changelog_1028_li
#MVStore: the ObjectDataType comparison method was incorrect if one key was Serializable and the other was of a common class. #MVStore: the ObjectDataType comparison method was incorrect if one key was Serializable and the other was of a common class.
@changelog_1023_li @changelog_1029_li
#Recursive queries with many result rows (more than the setting "max_memory_rows") did not work correctly. #Recursive queries with many result rows (more than the setting "max_memory_rows") did not work correctly.
@changelog_1024_li @changelog_1030_li
#The license has changed to MPL 2.0 + EPL 1.0. #The license has changed to MPL 2.0 + EPL 1.0.
@changelog_1025_li @changelog_1031_li
#MVStore: temporary tables from result sets could survive re-opening a database, which could result in a ClassCastException. #MVStore: temporary tables from result sets could survive re-opening a database, which could result in a ClassCastException.
@changelog_1026_li @changelog_1032_li
#Issue 566: MVStore: unique indexes that were created later on did not work correctly if there were over 5000 rows in the table. Existing databases need to be re-created (at least the broken index need to be re-built). #Issue 566: MVStore: unique indexes that were created later on did not work correctly if there were over 5000 rows in the table. Existing databases need to be re-created (at least the broken index need to be re-built).
@changelog_1027_li @changelog_1033_li
#MVStore: creating secondary indexes on large tables results in missing rows in the index. #MVStore: creating secondary indexes on large tables results in missing rows in the index.
@changelog_1028_li @changelog_1034_li
#Metadata: the password of linked tables is now only visible for admin users. #Metadata: the password of linked tables is now only visible for admin users.
@changelog_1029_li @changelog_1035_li
#For Windows, database URLs of the form "jdbc:h2:/test" where considered relative and did not work unless the system property "h2.implicitRelativePath" was used. #For Windows, database URLs of the form "jdbc:h2:/test" where considered relative and did not work unless the system property "h2.implicitRelativePath" was used.
@changelog_1030_li @changelog_1036_li
#Windows: using a base directory of "C:/" and similar did not work as expected. #Windows: using a base directory of "C:/" and similar did not work as expected.
@changelog_1031_li @changelog_1037_li
#Follow JDBC specification on Procedures MetaData, use P0 as return type of procedure. #Follow JDBC specification on Procedures MetaData, use P0 as return type of procedure.
@changelog_1032_li @changelog_1038_li
#Issue 531: IDENTITY ignored for added column. #Issue 531: IDENTITY ignored for added column.
@changelog_1033_li @changelog_1039_li
#FileSystem: improve exception throwing compatibility with JDK #FileSystem: improve exception throwing compatibility with JDK
@changelog_1034_li @changelog_1040_li
#Spatial Index: adjust costs so we do not use the spatial index if the query does not contain an intersects operator. #Spatial Index: adjust costs so we do not use the spatial index if the query does not contain an intersects operator.
@changelog_1035_li @changelog_1041_li
#Fix multi-threaded deadlock when using a View that includes a TableFunction. #Fix multi-threaded deadlock when using a View that includes a TableFunction.
@changelog_1036_li @changelog_1042_li
#Fix bug in dividing very-small BigDecimal numbers. #Fix bug in dividing very-small BigDecimal numbers.
@changelog_1037_h2 @changelog_1043_h2
#Version 1.4.178 Beta (2014-05-02) #Version 1.4.178 Beta (2014-05-02)
@changelog_1038_li @changelog_1044_li
#Issue 559: Make dependency on org.osgi.service.jdbc optional. #Issue 559: Make dependency on org.osgi.service.jdbc optional.
@changelog_1039_li @changelog_1045_li
#Improve error message when the user specifies an unsupported combination of database settings. #Improve error message when the user specifies an unsupported combination of database settings.
@changelog_1040_li @changelog_1046_li
#MVStore: in the multi-threaded mode, NullPointerException and other exceptions could occur. #MVStore: in the multi-threaded mode, NullPointerException and other exceptions could occur.
@changelog_1041_li @changelog_1047_li
#MVStore: some database file could not be compacted due to a bug in the bookkeeping of the fill rate. Also, database file were compacted quite slowly. This has been improved; but more changes in this area are expected. #MVStore: some database file could not be compacted due to a bug in the bookkeeping of the fill rate. Also, database file were compacted quite slowly. This has been improved; but more changes in this area are expected.
@changelog_1042_li @changelog_1048_li
#MVStore: support for volatile maps (that don't store changes). #MVStore: support for volatile maps (that don't store changes).
@changelog_1043_li @changelog_1049_li
#MVStore mode: in-memory databases now also use the MVStore. #MVStore mode: in-memory databases now also use the MVStore.
@changelog_1044_li @changelog_1050_li
#In server mode, appending ";autocommit=false" to the database URL was working, but the return value of Connection.getAutoCommit() was wrong. #In server mode, appending ";autocommit=false" to the database URL was working, but the return value of Connection.getAutoCommit() was wrong.
@changelog_1045_li @changelog_1051_li
#Issue 561: OSGi: the import package declaration of org.h2 excluded version 1.4. #Issue 561: OSGi: the import package declaration of org.h2 excluded version 1.4.
@changelog_1046_li @changelog_1052_li
#Issue 558: with the MVStore, a NullPointerException could occur when using LOBs at session commit (LobStorageMap.removeLob). #Issue 558: with the MVStore, a NullPointerException could occur when using LOBs at session commit (LobStorageMap.removeLob).
@changelog_1047_li @changelog_1053_li
#Remove the "h2.MAX_MEMORY_ROWS_DISTINCT" system property to reduce confusion. We already have the MAX_MEMORY_ROWS setting which does a very similar thing, and is better documented. #Remove the "h2.MAX_MEMORY_ROWS_DISTINCT" system property to reduce confusion. We already have the MAX_MEMORY_ROWS setting which does a very similar thing, and is better documented.
@changelog_1048_li @changelog_1054_li
#Issue 554: Web Console in an IFrame was not fully supported. #Issue 554: Web Console in an IFrame was not fully supported.
@changelog_1049_h2 @changelog_1055_h2
#Version 1.4.177 Beta (2014-04-12) #Version 1.4.177 Beta (2014-04-12)
@changelog_1050_li @changelog_1056_li
#By default, the MV_STORE option is enabled, so it is using the new MVStore storage. The MVCC setting is by default set to the same values as the MV_STORE setting, so it is also enabled by default. For testing, both settings can be disabled by appending ";MV_STORE=FALSE" and/or ";MVCC=FALSE" to the database URL. #By default, the MV_STORE option is enabled, so it is using the new MVStore storage. The MVCC setting is by default set to the same values as the MV_STORE setting, so it is also enabled by default. For testing, both settings can be disabled by appending ";MV_STORE=FALSE" and/or ";MVCC=FALSE" to the database URL.
@changelog_1051_li @changelog_1057_li
#The file locking method 'serialized' is no longer supported. This mode might return in a future version, however this is not clear right now. A new implementation and new tests would be needed. #The file locking method 'serialized' is no longer supported. This mode might return in a future version, however this is not clear right now. A new implementation and new tests would be needed.
@changelog_1052_li @changelog_1058_li
#Enable the new storage format for dates (system property "h2.storeLocalTime"). For the MVStore mode, this is always enabled, but with version 1.4 this is even enabled in the PageStore mode. #Enable the new storage format for dates (system property "h2.storeLocalTime"). For the MVStore mode, this is always enabled, but with version 1.4 this is even enabled in the PageStore mode.
@changelog_1053_li @changelog_1059_li
#Implicit relative paths are disabled (system property "h2.implicitRelativePath"), so that the database URL jdbc:h2:test now needs to be written as jdbc:h2:./test. #Implicit relative paths are disabled (system property "h2.implicitRelativePath"), so that the database URL jdbc:h2:test now needs to be written as jdbc:h2:./test.
@changelog_1054_li @changelog_1060_li
#"select ... fetch first 1 row only" is supported with the regular mode. This was disabled so far because "fetch" is now a keyword. See also Mode.supportOffsetFetch. #"select ... fetch first 1 row only" is supported with the regular mode. This was disabled so far because "fetch" is now a keyword. See also Mode.supportOffsetFetch.
@changelog_1055_li @changelog_1061_li
#Byte arrays are now sorted in unsigned mode (x'99' is larger than x'09'). (System property "h2.sortBinaryUnsigned", Mode.binaryUnsigned, setting "binary_collation"). #Byte arrays are now sorted in unsigned mode (x'99' is larger than x'09'). (System property "h2.sortBinaryUnsigned", Mode.binaryUnsigned, setting "binary_collation").
@changelog_1056_li @changelog_1062_li
#Csv.getInstance will be removed in future versions of 1.4. Use the public constructor instead. #Csv.getInstance will be removed in future versions of 1.4. Use the public constructor instead.
@changelog_1057_li @changelog_1063_li
#Remove support for the limited old-style outer join syntax using "(+)". Use "outer join" instead. System property "h2.oldStyleOuterJoin". #Remove support for the limited old-style outer join syntax using "(+)". Use "outer join" instead. System property "h2.oldStyleOuterJoin".
@changelog_1058_li @changelog_1064_li
#Support the data type "DATETIME2" as an alias for "DATETIME", for MS SQL Server compatibility. #Support the data type "DATETIME2" as an alias for "DATETIME", for MS SQL Server compatibility.
@changelog_1059_li @changelog_1065_li
#Add Oracle-compatible TRANSLATE function, patch by Eric Chatellier. #Add Oracle-compatible TRANSLATE function, patch by Eric Chatellier.
@changelog_1060_h2 @changelog_1066_h2
#Version 1.3.176 (2014-04-05) #Version 1.3.176 (2014-04-05)
@changelog_1061_li @changelog_1067_li
#The file locking method 'serialized' is no longer documented, as it will not be available in version 1.4. #The file locking method 'serialized' is no longer documented, as it will not be available in version 1.4.
@changelog_1062_li @changelog_1068_li
#The static method Csv.getInstance() was removed. Use the public constructor instead. #The static method Csv.getInstance() was removed. Use the public constructor instead.
@changelog_1063_li @changelog_1069_li
#The default user name for the Script, RunScript, Shell, and CreateCluster tools are no longer "sa" but an empty string. #The default user name for the Script, RunScript, Shell, and CreateCluster tools are no longer "sa" but an empty string.
@changelog_1064_li @changelog_1070_li
#The stack trace of the exception "The object is already closed" is no longer logged by default. #The stack trace of the exception "The object is already closed" is no longer logged by default.
@changelog_1065_li @changelog_1071_li
#If a value of a result set was itself a result set, the result could only be read once. #If a value of a result set was itself a result set, the result could only be read once.
@changelog_1066_li @changelog_1072_li
#Column constraints are also visible in views (patch from Nicolas Fortin for H2GIS). #Column constraints are also visible in views (patch from Nicolas Fortin for H2GIS).
@changelog_1067_li @changelog_1073_li
#Granting a additional right to a role that already had a right for that table was not working. #Granting a additional right to a role that already had a right for that table was not working.
@changelog_1068_li @changelog_1074_li
#Spatial index: a few bugs have been fixed (using spatial constraints in views, transferring geometry objects over TCP/IP, the returned geometry object is copied when needed). #Spatial index: a few bugs have been fixed (using spatial constraints in views, transferring geometry objects over TCP/IP, the returned geometry object is copied when needed).
@changelog_1069_li @changelog_1075_li
#Issue 551: the datatype documentation was incorrect (found by Bernd Eckenfels). #Issue 551: the datatype documentation was incorrect (found by Bernd Eckenfels).
@changelog_1070_li @changelog_1076_li
#Issue 368: ON DUPLICATE KEY UPDATE did not work for multi-row inserts. Test case from Angus Macdonald. #Issue 368: ON DUPLICATE KEY UPDATE did not work for multi-row inserts. Test case from Angus Macdonald.
@changelog_1071_li @changelog_1077_li
#OSGi: the package javax.tools is now imported (as an optional). #OSGi: the package javax.tools is now imported (as an optional).
@changelog_1072_li @changelog_1078_li
#H2 Console: auto-complete is now disabled by default, but there is a hot-key (Ctrl+Space). #H2 Console: auto-complete is now disabled by default, but there is a hot-key (Ctrl+Space).
@changelog_1073_li @changelog_1079_li
#H2 Console: auto-complete did not work with multi-line statements. #H2 Console: auto-complete did not work with multi-line statements.
@changelog_1074_li @changelog_1080_li
#CLOB and BLOB data was not immediately removed after a rollback. #CLOB and BLOB data was not immediately removed after a rollback.
@changelog_1075_li @changelog_1081_li
#There is a new Aggregate API that supports the internal H2 data types (GEOMETRY for example). Thanks a lot to Nicolas Fortin for the patch! #There is a new Aggregate API that supports the internal H2 data types (GEOMETRY for example). Thanks a lot to Nicolas Fortin for the patch!
@changelog_1076_li @changelog_1082_li
#Referential integrity constraints sometimes used the wrong index, such that updating a row in the referenced table incorrectly failed with a constraint violation. #Referential integrity constraints sometimes used the wrong index, such that updating a row in the referenced table incorrectly failed with a constraint violation.
@changelog_1077_li @changelog_1083_li
#The Polish translation was completed and corrected by Wojtek Jurczyk. Thanks a lot! #The Polish translation was completed and corrected by Wojtek Jurczyk. Thanks a lot!
@changelog_1078_li @changelog_1084_li
#Issue 545: Unnecessary duplicate code was removed. #Issue 545: Unnecessary duplicate code was removed.
@changelog_1079_li @changelog_1085_li
#The profiler tool can now process files with full thread dumps. #The profiler tool can now process files with full thread dumps.
@changelog_1080_li @changelog_1086_li
#MVStore: the file format was changed slightly. #MVStore: the file format was changed slightly.
@changelog_1081_li @changelog_1087_li
#MVStore mode: the CLOB and BLOB storage was re-implemented and is now much faster than with the PageStore (which is still the default storage). #MVStore mode: the CLOB and BLOB storage was re-implemented and is now much faster than with the PageStore (which is still the default storage).
@changelog_1082_li @changelog_1088_li
#MVStore mode: creating indexes is now much faster (in many cases faster than with the default PageStore). #MVStore mode: creating indexes is now much faster (in many cases faster than with the default PageStore).
@changelog_1083_li @changelog_1089_li
#Various bugs in the MVStore storage and have been fixed, including a bug in the R-tree implementation. The database could get corrupt if there were transient IO exceptions while storing. #Various bugs in the MVStore storage and have been fixed, including a bug in the R-tree implementation. The database could get corrupt if there were transient IO exceptions while storing.
@changelog_1084_li @changelog_1090_li
#The method org.h2.expression.Function.getCost could throw a NullPointException. #The method org.h2.expression.Function.getCost could throw a NullPointException.
@changelog_1085_li @changelog_1091_li
#Storing LOBs in separate files (outside of the main database file) is no longer supported for new databases. #Storing LOBs in separate files (outside of the main database file) is no longer supported for new databases.
@changelog_1086_li @changelog_1092_li
#Lucene 2 is no longer supported. #Lucene 2 is no longer supported.
@changelog_1087_li @changelog_1093_li
#Fix bug in calculating default MIN and MAX values for SEQUENCE. #Fix bug in calculating default MIN and MAX values for SEQUENCE.
@changelog_1088_li @changelog_1094_li
#Fix bug in performing IN queries with multiple values when IGNORECASE=TRUE #Fix bug in performing IN queries with multiple values when IGNORECASE=TRUE
@changelog_1089_li @changelog_1095_li
#Add entry-point to org.h2.tools.Shell so it can be called from inside an application. patch by Thomas Gillet. #Add entry-point to org.h2.tools.Shell so it can be called from inside an application. patch by Thomas Gillet.
@changelog_1090_li @changelog_1096_li
#Fix bug that prevented the PgServer from being stopped and started multiple times. #Fix bug that prevented the PgServer from being stopped and started multiple times.
@changelog_1091_li @changelog_1097_li
#Support some more DDL syntax for MySQL, patch from Peter Jentsch. #Support some more DDL syntax for MySQL, patch from Peter Jentsch.
@changelog_1092_li @changelog_1098_li
#Issue 548: TO_CHAR does not format MM and DD correctly when the month or day of the month is 1 digit, patch from "the.tucc" #Issue 548: TO_CHAR does not format MM and DD correctly when the month or day of the month is 1 digit, patch from "the.tucc"
@changelog_1093_li @changelog_1099_li
#Fix bug in varargs support in ALIAS's, patch from Nicolas Fortin #Fix bug in varargs support in ALIAS's, patch from Nicolas Fortin
@changelog_1094_h2 @changelog_1100_h2
#Version 1.3.175 (2014-01-18) #Version 1.3.175 (2014-01-18)
@changelog_1095_li @changelog_1101_li
#EXPLAIN was incorrect for queries with "ANY" or "SOME" conditions. #EXPLAIN was incorrect for queries with "ANY" or "SOME" conditions.
@changelog_1096_li @changelog_1102_li
#CallableStatement with "out" parameters: running the same statement twice could result in an exception ("parameter not set"). #CallableStatement with "out" parameters: running the same statement twice could result in an exception ("parameter not set").
@changelog_1097_li @changelog_1103_li
#Union queries: duplicate rows could be returned if the sub-queries contained "order by". #Union queries: duplicate rows could be returned if the sub-queries contained "order by".
@changelog_1098_li @changelog_1104_li
#The GEOMETRY data type now works for user defined functions that return a result set. #The GEOMETRY data type now works for user defined functions that return a result set.
@changelog_1099_li @changelog_1105_li
#PostgreSQL compatibility: the PgServer was not working properly when the setting database_to_upper was set to false. #PostgreSQL compatibility: the PgServer was not working properly when the setting database_to_upper was set to false.
@changelog_1100_li @changelog_1106_li
#JdbcDataSource: the methods setUrl and getUrl where added as aliases for setURL and getURL. This should solve problems with the HikariCP (Hikari connection pool). #JdbcDataSource: the methods setUrl and getUrl where added as aliases for setURL and getURL. This should solve problems with the HikariCP (Hikari connection pool).
@changelog_1101_li @changelog_1107_li
#Issue 537: H2 Console: when loading the schema, incorrect JDBC calls where issued, which caused the exception "Column PRECISION not found". #Issue 537: H2 Console: when loading the schema, incorrect JDBC calls where issued, which caused the exception "Column PRECISION not found".
@changelog_1102_li @changelog_1108_li
#Improved Geometry processing (issue 535). #Improved Geometry processing (issue 535).
@changelog_1103_li @changelog_1109_li
#The collation can now be set in the database URL, even if there are data tables, if the collection is the same as the current collation. #The collation can now be set in the database URL, even if there are data tables, if the collection is the same as the current collation.
@changelog_1104_li @changelog_1110_li
#Improved Oracle compatibility for CASE WHEN and DECODE. #Improved Oracle compatibility for CASE WHEN and DECODE.
@changelog_1105_li @changelog_1111_li
#The statement "drop all objects" did not work if a table depends on a view via a constraint. #The statement "drop all objects" did not work if a table depends on a view via a constraint.
@changelog_1106_li @changelog_1112_li
#Subqueries or views with "order by" an alias expression could not be executed due to a regression introduced in version 1.3.174. #Subqueries or views with "order by" an alias expression could not be executed due to a regression introduced in version 1.3.174.
@changelog_1107_li @changelog_1113_li
#Issue 73: MySQL compatibility: support REPLACE, patch by Cemo Koc. #Issue 73: MySQL compatibility: support REPLACE, patch by Cemo Koc.
@changelog_1108_li @changelog_1114_li
#The spatial index now works in MVCC mode when using the MVStore storage. #The spatial index now works in MVCC mode when using the MVStore storage.
@changelog_1109_li @changelog_1115_li
#MVStore: concurrency problems have been fixed. The API has been simplified. #MVStore: concurrency problems have been fixed. The API has been simplified.
@changelog_1110_li @changelog_1116_li
#Improve error message when dropping an index that belongs to a constraint, specify constraint in error message. #Improve error message when dropping an index that belongs to a constraint, specify constraint in error message.
@changelog_1111_li @changelog_1117_li
#Issue 518: java.sql.Connection.commit() freezes after LOB modification with EXCLUSIVE connection #Issue 518: java.sql.Connection.commit() freezes after LOB modification with EXCLUSIVE connection
@changelog_1112_li @changelog_1118_li
#Issue 517: Create or replace view statement has no effect on the others already existing JDBC connection #Issue 517: Create or replace view statement has no effect on the others already existing JDBC connection
@changelog_1113_li @changelog_1119_li
#Support 123L syntax as in Java; example: SELECT (2000000000L*2). #Support 123L syntax as in Java; example: SELECT (2000000000L*2).
@changelog_1114_li @changelog_1120_li
#Issue 520: Add support for sequence max value, min value and cycle, patch by Daniel Gredler. #Issue 520: Add support for sequence max value, min value and cycle, patch by Daniel Gredler.
@changelog_1115_li @changelog_1121_li
#Issue 521: ScriptReader should implement Closeable #Issue 521: ScriptReader should implement Closeable
@changelog_1116_li @changelog_1122_li
#Issue 524: RunScript.execute does not close its Statement, patch from Gaul. #Issue 524: RunScript.execute does not close its Statement, patch from Gaul.
@changelog_1117_li @changelog_1123_li
#Add support for DB2 "WITH UR" clause, patch from litailang #Add support for DB2 "WITH UR" clause, patch from litailang
@changelog_1118_li @changelog_1124_li
#Added support for ON DUPLICATE KEY UPDATE like MySQL with the values() function to update with the value that was to be inserted. Patch from Jean-Francois Noel. #Added support for ON DUPLICATE KEY UPDATE like MySQL with the values() function to update with the value that was to be inserted. Patch from Jean-Francois Noel.
@changelog_1119_li @changelog_1125_li
#Issue 522: Treat empty strings like NULL in Oracle compatibility mode, patch by Daniel Gredler. #Issue 522: Treat empty strings like NULL in Oracle compatibility mode, patch by Daniel Gredler.
@changelog_1120_li @changelog_1126_li
#Issue 527: Oracle compatibility mode: incorrect scale behavior, patch by Daniel Gredler. #Issue 527: Oracle compatibility mode: incorrect scale behavior, patch by Daniel Gredler.
@changelog_1121_li @changelog_1127_li
#Slightly reduce the memory cost of View metadata. #Slightly reduce the memory cost of View metadata.
@changelog_1122_li @changelog_1128_li
#Extend support of "GRANT ALTER ANY SCHEMA TO <user>" to allow grantee ability to manipulate tables #Extend support of "GRANT ALTER ANY SCHEMA TO <user>" to allow grantee ability to manipulate tables
@changelog_1123_li @changelog_1129_li
#Issue 532: Javadoc for ErrorCode.ROLES_AND_RIGHT_CANNOT_BE_MIXED looks wrong #Issue 532: Javadoc for ErrorCode.ROLES_AND_RIGHT_CANNOT_BE_MIXED looks wrong
@changelog_1124_li @changelog_1130_li
#Issue 528: Add Oracle-compatible TO_CHAR function, patch by Daniel Gredler. #Issue 528: Add Oracle-compatible TO_CHAR function, patch by Daniel Gredler.
@changelog_1125_li @changelog_1131_li
#Issue 534: CREATE ALIAS NOCACHE, Patch by Nicolas Fortin #Issue 534: CREATE ALIAS NOCACHE, Patch by Nicolas Fortin
@changelog_1126_li @changelog_1132_li
#Fix an issue with storing Unicode surrogate pairs in CLOB columns. #Fix an issue with storing Unicode surrogate pairs in CLOB columns.
@changelog_1127_li @changelog_1133_li
#H2 console: add SHIFT+ENTER "run selected" functionality #H2 console: add SHIFT+ENTER "run selected" functionality
@changelog_1128_li @changelog_1134_li
#Fix bug in DB2 syntax "select * from test with ur", patch from litailang #Fix bug in DB2 syntax "select * from test with ur", patch from litailang
@changelog_1129_li @changelog_1135_li
#Fix bug in DROP ALL OBJECTS when dealing with inter-schema dependencies. #Fix bug in DROP ALL OBJECTS when dealing with inter-schema dependencies.
@changelog_1130_h2 @changelog_1136_h2
#Version 1.3.174 (2013-10-19) #Version 1.3.174 (2013-10-19)
@changelog_1131_li @changelog_1137_li
#LIRS cache: bugfix for caches that only contain non-resident entries. #LIRS cache: bugfix for caches that only contain non-resident entries.
@changelog_1132_li @changelog_1138_li
#For in-memory databases, queries with a "group by" column that is also a hash index threw a RuntimeException. #For in-memory databases, queries with a "group by" column that is also a hash index threw a RuntimeException.
@changelog_1133_li @changelog_1139_li
#Improved error message for some syntax errors. #Improved error message for some syntax errors.
@changelog_1134_li @changelog_1140_li
#File system abstraction: if used directly, some file systems did not work correctly with spliced byte buffers (the database engine doesn't use those). #File system abstraction: if used directly, some file systems did not work correctly with spliced byte buffers (the database engine doesn't use those).
@changelog_1135_li @changelog_1141_li
#To use the MVStore storage engine (which is still work in progress), append ";mv_store=true" to the database URL. Using the MVTableEngine when creating the table is no longer recommended. #To use the MVStore storage engine (which is still work in progress), append ";mv_store=true" to the database URL. Using the MVTableEngine when creating the table is no longer recommended.
@changelog_1136_li @changelog_1142_li
#To compile user defined functions, the javax.tools.JavaCompiler is now used if available, and no temporary files are created. This should solve problems when multiple H2 database concurrently compile the same user defined functions. To disable, system the system property "h2.javaSystemCompiler" to false. #To compile user defined functions, the javax.tools.JavaCompiler is now used if available, and no temporary files are created. This should solve problems when multiple H2 database concurrently compile the same user defined functions. To disable, system the system property "h2.javaSystemCompiler" to false.
@changelog_1137_li @changelog_1143_li
#Concurrently creating function aliases in different databases could result in the exception "javac: file not found". #Concurrently creating function aliases in different databases could result in the exception "javac: file not found".
@changelog_1138_li @changelog_1144_li
#The function "regexp_replace" threw the wrong kind of exception if the replacement string was invalid. #The function "regexp_replace" threw the wrong kind of exception if the replacement string was invalid.
@changelog_1139_li @changelog_1145_li
#A checkpoint is now done every MAX_LOG_SIZE / 2 instead of every MAX_LOG_SIZE, so that the transaction log doesn't grow as large. #A checkpoint is now done every MAX_LOG_SIZE / 2 instead of every MAX_LOG_SIZE, so that the transaction log doesn't grow as large.
@changelog_1140_li @changelog_1146_li
#MVStore table engine: new setting "retention_time" to configure the time to retain old data. The default is 45 seconds. #MVStore table engine: new setting "retention_time" to configure the time to retain old data. The default is 45 seconds.
@changelog_1141_li @changelog_1147_li
#The method TableEngine.createTable() now returns a Table object. #The method TableEngine.createTable() now returns a Table object.
@changelog_1142_li @changelog_1148_li
#For read-only databases, for the trace level "debug", the trace info is written to the temp directory. #For read-only databases, for the trace level "debug", the trace info is written to the temp directory.
@changelog_1143_li @changelog_1149_li
#Closing the file lock will now wait until the background thread is stopped. #Closing the file lock will now wait until the background thread is stopped.
@changelog_1144_li @changelog_1150_li
#In version 1.3.172, a performance regression was introduced when fixing the issue 389 (when there is a multi-column primary key, H2 does not seem to always pick the right index). This was related to boosting an index that matches the "order by" column list (the wrong index was used in some cases). #In version 1.3.172, a performance regression was introduced when fixing the issue 389 (when there is a multi-column primary key, H2 does not seem to always pick the right index). This was related to boosting an index that matches the "order by" column list (the wrong index was used in some cases).
@changelog_1145_li @changelog_1151_li
#Improved spatial index and data type. #Improved spatial index and data type.
@changelog_1146_li @changelog_1152_li
#Issue 467: OSGi Class Loader (ability to create reference to class in other ClassLoader, for example in another OSGi bundle). #Issue 467: OSGi Class Loader (ability to create reference to class in other ClassLoader, for example in another OSGi bundle).
@changelog_1147_li @changelog_1153_li
#Queries "group by" that contain a subquery with an aggregate function returned the wrong result in some cases. #Queries "group by" that contain a subquery with an aggregate function returned the wrong result in some cases.
@changelog_1148_li @changelog_1154_li
#Fix bug in unique and non-unique hash indexes which manifested as incorrect results when the search key was a different cardinal type from the table index key. e.g. where the one was INT and the other was LONG #Fix bug in unique and non-unique hash indexes which manifested as incorrect results when the search key was a different cardinal type from the table index key. e.g. where the one was INT and the other was LONG
@changelog_1149_li @changelog_1155_li
#Bug: Changes to the database structure did not result in the Session query cache being invalidated. #Bug: Changes to the database structure did not result in the Session query cache being invalidated.
@changelog_1150_li @changelog_1156_li
#New feature from Davide Cavestro - allow using custom Java object serialization engines on a per-DB basis. #New feature from Davide Cavestro - allow using custom Java object serialization engines on a per-DB basis.
@changelog_1151_li @changelog_1157_li
#When running the Recover tool on very large (>6G) databases, some statistics were reported with negative numbers. #When running the Recover tool on very large (>6G) databases, some statistics were reported with negative numbers.
@changelog_1152_li @changelog_1158_li
#Add a CONTAINS_UNCOMMITTED column to the SESSIONS metadata table, to allow detecting when rogue sessions are creating large transactions. #Add a CONTAINS_UNCOMMITTED column to the SESSIONS metadata table, to allow detecting when rogue sessions are creating large transactions.
@changelog_1153_li @changelog_1159_li
#Some small fixes to the GEOMETRY support, patches by Nicolas Fortin. #Some small fixes to the GEOMETRY support, patches by Nicolas Fortin.
@changelog_1154_li @changelog_1160_li
#The BNF tool and the autocomplete feature are exported in OSGi, which makes it possible for smart editors to do autocomplete. Patch from Nicolas Fortin. #The BNF tool and the autocomplete feature are exported in OSGi, which makes it possible for smart editors to do autocomplete. Patch from Nicolas Fortin.
@changelog_1155_li @changelog_1161_li
#Fix DROP ALL OBJECTS and DROP SCHEMA in the presence of tables with computed column dependencies. #Fix DROP ALL OBJECTS and DROP SCHEMA in the presence of tables with computed column dependencies.
@changelog_1156_li @changelog_1162_li
#Session-temporary LOB's could sometimes accumulate, increasing the size of the DB file until shutdown. Now they are cleared out at every commit. #Session-temporary LOB's could sometimes accumulate, increasing the size of the DB file until shutdown. Now they are cleared out at every commit.
@changelog_1157_li @changelog_1163_li
#There was a bug where a hash index with more than one column would be silently converted to a regular index. It will now throw an exception. #There was a bug where a hash index with more than one column would be silently converted to a regular index. It will now throw an exception.
@changelog_1158_li @changelog_1164_li
#Query Statistics: new feature which stores the newest 100 SQL queries executed and their performance data. Useful for tracking down badly performing queries. #Query Statistics: new feature which stores the newest 100 SQL queries executed and their performance data. Useful for tracking down badly performing queries.
@changelog_1159_li @changelog_1165_li
#Fix an LOB deadlock between reading and updating LOB columns. #Fix an LOB deadlock between reading and updating LOB columns.
@changelog_1160_li @changelog_1166_li
#Support the JDBC DatabaseMetaData#getClientInfoProperties() method, in the sense of returning an empty result, in order to make WebSphere happy. #Support the JDBC DatabaseMetaData#getClientInfoProperties() method, in the sense of returning an empty result, in order to make WebSphere happy.
@changelog_1161_li @changelog_1167_li
#Make Server#openBrowser respect the $BROWSER environment variable. Add "chromium" to the list of browsers tried. Patch from Felix Kaiser. #Make Server#openBrowser respect the $BROWSER environment variable. Add "chromium" to the list of browsers tried. Patch from Felix Kaiser.
@changelog_1162_li @changelog_1168_li
#Fix to org.h2.util.ScriptReader when handling unclosed block comments. #Fix to org.h2.util.ScriptReader when handling unclosed block comments.
@changelog_1163_li @changelog_1169_li
#Make org.h2.util.ScriptReader throw a better exception when handling broken scripts which generate extremely large statements. #Make org.h2.util.ScriptReader throw a better exception when handling broken scripts which generate extremely large statements.
@changelog_1164_li @changelog_1170_li
#Fix bug with ALLOW_LITERALS=NONE, where the periodic analyze table on insert would throw an exception. A similar problem was fixed in the Console tool. #Fix bug with ALLOW_LITERALS=NONE, where the periodic analyze table on insert would throw an exception. A similar problem was fixed in the Console tool.
@changelog_1165_li @changelog_1171_li
#Issue 510: Make org.h2.bnf public for consumption by external projects, patch by Nicolas Fortin #Issue 510: Make org.h2.bnf public for consumption by external projects, patch by Nicolas Fortin
@changelog_1166_li @changelog_1172_li
#Issue 509: Important fix on ValueGeometry, patch by Nicolas Fortin (with some tweaking) Make ValueGeometry#getDimensionCount more reliable. Add unit test to check for illegal ValueGeometry comparison Add unit test for conversion of Geometry object into Object Add optional export to MANIFEST.MF for JTS Geometry classes Validate that geometry values can be represented in WKB. #Issue 509: Important fix on ValueGeometry, patch by Nicolas Fortin (with some tweaking) Make ValueGeometry#getDimensionCount more reliable. Add unit test to check for illegal ValueGeometry comparison Add unit test for conversion of Geometry object into Object Add optional export to MANIFEST.MF for JTS Geometry classes Validate that geometry values can be represented in WKB.
@changelog_1167_li @changelog_1173_li
#Issue 506: RFE: Include Thread.getName() in case of a deadlock #Issue 506: RFE: Include Thread.getName() in case of a deadlock
@changelog_1168_li @changelog_1174_li
#Adding support for "GRANT ALTER ANY SCHEMA TO <user>", patch by John Yates #Adding support for "GRANT ALTER ANY SCHEMA TO <user>", patch by John Yates
@changelog_1169_h2 @changelog_1175_h2
#Version 1.3.173 (2013-07-28) #Version 1.3.173 (2013-07-28)
@changelog_1170_li @changelog_1176_li
#Support empty statements that just contains a comment. #Support empty statements that just contains a comment.
@changelog_1171_li @changelog_1177_li
#Server mode: if there was an error while reading from a LOB, the session was closed in some cases. #Server mode: if there was an error while reading from a LOB, the session was closed in some cases.
@changelog_1172_li @changelog_1178_li
#Issue 463: Driver name and version are now the same in OsgiDataSourceFactory and JdbcDatabaseMetaData. #Issue 463: Driver name and version are now the same in OsgiDataSourceFactory and JdbcDatabaseMetaData.
@changelog_1173_li @changelog_1179_li
#JaQu: The data type VARCHAR is now (again) used for Strings (no longer TEXT, except when explicitly set). #JaQu: The data type VARCHAR is now (again) used for Strings (no longer TEXT, except when explicitly set).
@changelog_1174_li @changelog_1180_li
#For in-memory databases, creating an index on a CLOB or BLOB column is no longer supported. This is to simplify the MVTableEngine. #For in-memory databases, creating an index on a CLOB or BLOB column is no longer supported. This is to simplify the MVTableEngine.
@changelog_1175_li @changelog_1181_li
#New column "information_schema.tables.row_count_estimate". #New column "information_schema.tables.row_count_estimate".
@changelog_1176_li @changelog_1182_li
#Issue 468: trunc(timestamp) could return the wrong value (+12 hours), and trunc(number) throw a NullPointerException. #Issue 468: trunc(timestamp) could return the wrong value (+12 hours), and trunc(number) throw a NullPointerException.
@changelog_1177_li @changelog_1183_li
#The expression trunc(number) threw a NullPointerException. #The expression trunc(number) threw a NullPointerException.
@changelog_1178_li @changelog_1184_li
#Fixed a deadlock when updating LOB's concurrently. See TestLob.testDeadlock2(). #Fixed a deadlock when updating LOB's concurrently. See TestLob.testDeadlock2().
@changelog_1179_li @changelog_1185_li
#Fixed a deadlock related to very large temporary result sets. #Fixed a deadlock related to very large temporary result sets.
@changelog_1180_li @changelog_1186_li
#Add "-list" command line option to Shell tool so that result-list-mode can be triggered when reading from a file. #Add "-list" command line option to Shell tool so that result-list-mode can be triggered when reading from a file.
@changelog_1181_li @changelog_1187_li
#Issue 474: H2 MySQL Compatibility code fails to ignore "COMMENT" in CREATE TABLE, patch from Aaron Azeckoski. #Issue 474: H2 MySQL Compatibility code fails to ignore "COMMENT" in CREATE TABLE, patch from Aaron Azeckoski.
@changelog_1182_li @changelog_1188_li
#Issue 476: Broken link in jaqu.html #Issue 476: Broken link in jaqu.html
@changelog_1183_li @changelog_1189_li
#Fix potential UTF8 encoding issue in org.h2.store.FileStore, reported by Juerg Spiess. #Fix potential UTF8 encoding issue in org.h2.store.FileStore, reported by Juerg Spiess.
@changelog_1184_li @changelog_1190_li
#Improve error message when check constraint is broken, test case from Gili (cowwoc). #Improve error message when check constraint is broken, test case from Gili (cowwoc).
@changelog_1185_li @changelog_1191_li
#Improve error message when we have a unique constraint violation, displays the offending key in the error message. #Improve error message when we have a unique constraint violation, displays the offending key in the error message.
@changelog_1186_li @changelog_1192_li
#Issue 478: Support for "SHOW TRANSACTION ISOLATION LEVEL", patch from Andrew Franklin. #Issue 478: Support for "SHOW TRANSACTION ISOLATION LEVEL", patch from Andrew Franklin.
@changelog_1187_li @changelog_1193_li
#Issue 475: PgServer: add support for CancelRequest, patch from Andrew Franklin. #Issue 475: PgServer: add support for CancelRequest, patch from Andrew Franklin.
@changelog_1188_li @changelog_1194_li
#Issue 473: PgServer missing -key option, patch from Andrew Franklin. #Issue 473: PgServer missing -key option, patch from Andrew Franklin.
@changelog_1189_li @changelog_1195_li
#Issue 471: CREATE VIEW does not check user rights, patch from Andrew Franklin. #Issue 471: CREATE VIEW does not check user rights, patch from Andrew Franklin.
@changelog_1190_li @changelog_1196_li
#Issue 477: PgServer binary transmission of query params is unimplemented, patch from Andrew Franklin. #Issue 477: PgServer binary transmission of query params is unimplemented, patch from Andrew Franklin.
@changelog_1191_li @changelog_1197_li
#Issue 479: Support for SUBSTRING without a FROM condition, patch from Andrew Franklin. #Issue 479: Support for SUBSTRING without a FROM condition, patch from Andrew Franklin.
@changelog_1192_li @changelog_1198_li
#Issue 472: PgServer does not work with any recent Postgres JDBC driver, patch from Andrew Franklin. #Issue 472: PgServer does not work with any recent Postgres JDBC driver, patch from Andrew Franklin.
@changelog_1193_li @changelog_1199_li
#Add syntax for passing additional parameters into custom TableEngine implementations. #Add syntax for passing additional parameters into custom TableEngine implementations.
@changelog_1194_li @changelog_1200_li
#Issue 480: Bugfix post issue 475, 477, patch from Andrew Franklin. #Issue 480: Bugfix post issue 475, 477, patch from Andrew Franklin.
@changelog_1195_li @changelog_1201_li
#Issue 481: Further extensions to PgServer to support better support PG JDBC, patch from Andrew Franklin. #Issue 481: Further extensions to PgServer to support better support PG JDBC, patch from Andrew Franklin.
@changelog_1196_li @changelog_1202_li
#Add support for spatial datatype GEOMETRY. #Add support for spatial datatype GEOMETRY.
@changelog_1197_li @changelog_1203_li
#Add support for in-memory spatial index. #Add support for in-memory spatial index.
@changelog_1198_li @changelog_1204_li
#change the PageStore#changeCount field from an int to a long, to cope with databases with very high transaction rates. #change the PageStore#changeCount field from an int to a long, to cope with databases with very high transaction rates.
@changelog_1199_li @changelog_1205_li
#Fix a NullPointerException when attempting to add foreign key reference to a view. #Fix a NullPointerException when attempting to add foreign key reference to a view.
@changelog_1200_li @changelog_1206_li
#Add sufficient ClientInfo support to our javax.sql.Connection implementation to make WebSphere happy. #Add sufficient ClientInfo support to our javax.sql.Connection implementation to make WebSphere happy.
@changelog_1201_li @changelog_1207_li
#Issue 482: class LobStorageBackend$LobInputStream does not override the method InputStream.available(). #Issue 482: class LobStorageBackend$LobInputStream does not override the method InputStream.available().
@changelog_1202_li @changelog_1208_li
#Fix corruption resulting from a mix of the "WRITE_DELAY=0" option and "SELECT DISTINCT" queries that don't fit in memory. #Fix corruption resulting from a mix of the "WRITE_DELAY=0" option and "SELECT DISTINCT" queries that don't fit in memory.
@changelog_1203_li @changelog_1209_li
#Fix the combination of updating a table which contains an LOB, and reading from the LOB at the same time. Previously it would throw an exception, now it works. #Fix the combination of updating a table which contains an LOB, and reading from the LOB at the same time. Previously it would throw an exception, now it works.
@changelog_1204_li @changelog_1210_li
#Issue 484: In the H2 Console tool, all schemas starting with "INFO" where hidden. Now they are hidden only if the database is not H2. Patch from "mgcodeact"/"cumer d" #Issue 484: In the H2 Console tool, all schemas starting with "INFO" where hidden. Now they are hidden only if the database is not H2. Patch from "mgcodeact"/"cumer d"
@changelog_1205_li @changelog_1211_li
#MySQL compatibility, support the "AUTO_INCREMENT=3" part of the CREATE TABLE statement. #MySQL compatibility, support the "AUTO_INCREMENT=3" part of the CREATE TABLE statement.
@changelog_1206_li @changelog_1212_li
#Issue 486: MySQL compatibility, support the "DEFAULT CHARSET" part of the CREATE TABLE statement. #Issue 486: MySQL compatibility, support the "DEFAULT CHARSET" part of the CREATE TABLE statement.
@changelog_1207_li @changelog_1213_li
#Issue 487: support the MySQL "SET foreign_key_checks = 0" command #Issue 487: support the MySQL "SET foreign_key_checks = 0" command
@changelog_1208_li @changelog_1214_li
#Issue 490: support MySQL "USING BTREE" index declaration #Issue 490: support MySQL "USING BTREE" index declaration
@changelog_1209_li @changelog_1215_li
#Issue 485: Database get corrupted when column is renamed for which check constraint was defined inside create table statement. #Issue 485: Database get corrupted when column is renamed for which check constraint was defined inside create table statement.
@changelog_1210_li @changelog_1216_li
#Issue 499: support MySQL "UNIQUE KEY (ID) USING BTREE" constraint syntax #Issue 499: support MySQL "UNIQUE KEY (ID) USING BTREE" constraint syntax
@changelog_1211_li @changelog_1217_li
#Issue 501: "CREATE TABLE .. WITH" not serialized, patch from nico.devel #Issue 501: "CREATE TABLE .. WITH" not serialized, patch from nico.devel
@changelog_1212_li @changelog_1218_li
#Avoid problems with runtime-compiled ALIAS methods when people have set the JAVA_TOOL_OPTIONS environment variable. #Avoid problems with runtime-compiled ALIAS methods when people have set the JAVA_TOOL_OPTIONS environment variable.
@changelog_1213_h2 @changelog_1219_h2
#Version 1.3.172 (2013-05-25) #Version 1.3.172 (2013-05-25)
@changelog_1214_li @changelog_1220_li
#Referential integrity: when adding a referential integrity constraint failed, and if creating the constraint automatically created an index, this index was not removed. #Referential integrity: when adding a referential integrity constraint failed, and if creating the constraint automatically created an index, this index was not removed.
@changelog_1215_li @changelog_1221_li
#The auto-analyze feature now only reads 1000 rows per table instead of 10000. #The auto-analyze feature now only reads 1000 rows per table instead of 10000.
@changelog_1216_li @changelog_1222_li
#The optimization for IN(...) queries combined with OR could result in a strange exception of the type "column x must be included in the group by list". #The optimization for IN(...) queries combined with OR could result in a strange exception of the type "column x must be included in the group by list".
@changelog_1217_li @changelog_1223_li
#Issue 454: Use Charset for type-safety. #Issue 454: Use Charset for type-safety.
@changelog_1218_li @changelog_1224_li
#Queries with both LIMIT and OFFSET could throw an IllegalArgumentException. #Queries with both LIMIT and OFFSET could throw an IllegalArgumentException.
@changelog_1219_li @changelog_1225_li
#MVStore: multiple issues were fixed: 460, 461, 462, 464, 466. #MVStore: multiple issues were fixed: 460, 461, 462, 464, 466.
@changelog_1220_li @changelog_1226_li
#MVStore: larger stores (multiple GB) are now much faster. #MVStore: larger stores (multiple GB) are now much faster.
@changelog_1221_li @changelog_1227_li
#When using local temporary tables and not dropping them manually before closing the session, and then killing the process could result in a database that couldn't be opened (except when using the recover tool). #When using local temporary tables and not dropping them manually before closing the session, and then killing the process could result in a database that couldn't be opened (except when using the recover tool).
@changelog_1222_li @changelog_1228_li
#Support TRUNC(timestamp) for improved Oracle compatibility. #Support TRUNC(timestamp) for improved Oracle compatibility.
@changelog_1223_li @changelog_1229_li
#Add support for CREATE TABLE TEST (ID BIGSERIAL) for PostgreSQL compatibility. Patch from Jesse Long. #Add support for CREATE TABLE TEST (ID BIGSERIAL) for PostgreSQL compatibility. Patch from Jesse Long.
@changelog_1224_li @changelog_1230_li
#Add new collation command SET BINARY_COLLATION UNSIGNED, helps with people testing BINARY columns in MySQL mode. #Add new collation command SET BINARY_COLLATION UNSIGNED, helps with people testing BINARY columns in MySQL mode.
@changelog_1225_li @changelog_1231_li
#Issue 453: ABBA race conditions in TABLE LINK connection sharing. #Issue 453: ABBA race conditions in TABLE LINK connection sharing.
@changelog_1226_li @changelog_1232_li
#Issue 449: Postgres Serial data type should not automatically be marked as primary key #Issue 449: Postgres Serial data type should not automatically be marked as primary key
@changelog_1227_li @changelog_1233_li
#Issue 406: Support "select h2version()" #Issue 406: Support "select h2version()"
@changelog_1228_li @changelog_1234_li
#Issue 389: When there is a multi-column primary key, H2 does not seem to always pick the right index #Issue 389: When there is a multi-column primary key, H2 does not seem to always pick the right index
@changelog_1229_li @changelog_1235_li
#Issue 305: Implement SELECT ... FOR FETCH ONLY #Issue 305: Implement SELECT ... FOR FETCH ONLY
@changelog_1230_li @changelog_1236_li
#Issue 274: Sybase/MSSQLServer compatibility - Add GETDATE and CHARINDEX system functions #Issue 274: Sybase/MSSQLServer compatibility - Add GETDATE and CHARINDEX system functions
@changelog_1231_li @changelog_1237_li
#Issue 274: Sybase/MSSQLServer compatibility - swap parameters of CONVERT function. #Issue 274: Sybase/MSSQLServer compatibility - swap parameters of CONVERT function.
@changelog_1232_li @changelog_1238_li
#Issue 274: Sybase/MSSQLServer compatibility - support index clause e.g. "select * from test (index table1_index)" #Issue 274: Sybase/MSSQLServer compatibility - support index clause e.g. "select * from test (index table1_index)"
@changelog_1233_li @changelog_1239_li
#Fix bug in Optimizing SELECT * FROM A WHERE X=1 OR X=2 OR X=3 into SELECT * FROM A WHERE X IN (1,2,3) #Fix bug in Optimizing SELECT * FROM A WHERE X=1 OR X=2 OR X=3 into SELECT * FROM A WHERE X IN (1,2,3)
@changelog_1234_li @changelog_1240_li
#Issue 442: Groovy patch for SourceCompiler (function ALIAS) #Issue 442: Groovy patch for SourceCompiler (function ALIAS)
@changelog_1235_li @changelog_1241_li
#Issue 459: Improve LOB documentation #Issue 459: Improve LOB documentation
@changelog_1236_h2 @changelog_1242_h2
#Version 1.3.171 (2013-03-17) #Version 1.3.171 (2013-03-17)
@changelog_1237_li @changelog_1243_li
#Security: the TCP server did not correctly restrict access rights of clients in some cases. This was specially a problem when using the flag "tcpAllowOthers". #Security: the TCP server did not correctly restrict access rights of clients in some cases. This was specially a problem when using the flag "tcpAllowOthers".
@changelog_1238_li @changelog_1244_li
#H2 Console: the session timeout can now be configured using the system property "h2.consoleTimeout". #H2 Console: the session timeout can now be configured using the system property "h2.consoleTimeout".
@changelog_1239_li @changelog_1245_li
#Issue 431: Improved compatibility with MySQL: support for "ENGINE=InnoDB charset=UTF8" when creating a table. #Issue 431: Improved compatibility with MySQL: support for "ENGINE=InnoDB charset=UTF8" when creating a table.
@changelog_1240_li @changelog_1246_li
#Issue 249: Improved compatibility with MySQL in the MySQL mode: now the methods DatabaseMetaData methods stores*Case*Identifiers return the same as MySQL when using the MySQL mode. #Issue 249: Improved compatibility with MySQL in the MySQL mode: now the methods DatabaseMetaData methods stores*Case*Identifiers return the same as MySQL when using the MySQL mode.
@changelog_1241_li @changelog_1247_li
#Issue 434: H2 Console didn't work in the Chrome browser due to a wrong viewport argument. #Issue 434: H2 Console didn't work in the Chrome browser due to a wrong viewport argument.
@changelog_1242_li @changelog_1248_li
#There was a possibility that the .lock.db file was not deleted when the database was closed, which could slow down opening the database. #There was a possibility that the .lock.db file was not deleted when the database was closed, which could slow down opening the database.
@changelog_1243_li @changelog_1249_li
#The SQL script generated by the "script" command contained inconsistent newlines on Windows. #The SQL script generated by the "script" command contained inconsistent newlines on Windows.
@changelog_1244_li @changelog_1250_li
#When using trace level 4 (SLF4J) in the server mode, a directory "trace.db" and an empty file was created on the client side. This is no longer made. #When using trace level 4 (SLF4J) in the server mode, a directory "trace.db" and an empty file was created on the client side. This is no longer made.
@changelog_1245_li @changelog_1251_li
#Optimize IN(...) queries: there was a bug in version 1.3.170 if the type of the left hand side didn't match the type of the right hand side. Fixed. #Optimize IN(...) queries: there was a bug in version 1.3.170 if the type of the left hand side didn't match the type of the right hand side. Fixed.
@changelog_1246_li @changelog_1252_li
#Optimize IN(...) queries: there was a bug in version 1.3.170 for comparison of the type "X IN(NULL, NULL)". Fixed. #Optimize IN(...) queries: there was a bug in version 1.3.170 for comparison of the type "X IN(NULL, NULL)". Fixed.
@changelog_1247_li @changelog_1253_li
#Timestamps with timezone that were passed as a string were not always converted correctly. For example "2012-11-06T23:00:00.000Z" was converted to "2012-11-06" instead of to "2012-11-07" in the timezone CET. Thanks a lot to Steve Hruda for reporting the problem! #Timestamps with timezone that were passed as a string were not always converted correctly. For example "2012-11-06T23:00:00.000Z" was converted to "2012-11-06" instead of to "2012-11-07" in the timezone CET. Thanks a lot to Steve Hruda for reporting the problem!
@changelog_1248_li @changelog_1254_li
#New table engine "org.h2.mvstore.db.MVTableEngine" that internally uses the MVStore to persist data. To try it out, append ";DEFAULT_TABLE_ENGINE=org.h2.mvstore.db.MVTableEngine" to the database URL. This is still very experimental, and many features are not supported yet. The data is stored in a file with the suffix ".mv.db". #New table engine "org.h2.mvstore.db.MVTableEngine" that internally uses the MVStore to persist data. To try it out, append ";DEFAULT_TABLE_ENGINE=org.h2.mvstore.db.MVTableEngine" to the database URL. This is still very experimental, and many features are not supported yet. The data is stored in a file with the suffix ".mv.db".
@changelog_1249_li @changelog_1255_li
#New connection setting "DEFAULT_TABLE_ENGINE" to use a specific table engine if none is set explicitly. This is to simplify testing the MVStore table engine. #New connection setting "DEFAULT_TABLE_ENGINE" to use a specific table engine if none is set explicitly. This is to simplify testing the MVStore table engine.
@changelog_1250_li @changelog_1256_li
#MVStore: encrypted stores are now supported. Only standardized algorithms are used: PBKDF2, SHA-256, XTS-AES, AES-128. #MVStore: encrypted stores are now supported. Only standardized algorithms are used: PBKDF2, SHA-256, XTS-AES, AES-128.
@changelog_1251_li @changelog_1257_li
#MVStore: improved API thanks to Simo Tripodi. #MVStore: improved API thanks to Simo Tripodi.
@changelog_1252_li @changelog_1258_li
#MVStore: maps can now be renamed. #MVStore: maps can now be renamed.
@changelog_1253_li @changelog_1259_li
#MVStore: store the file header also at the end of each chunk, which results in a further reduced number of write operations. #MVStore: store the file header also at the end of each chunk, which results in a further reduced number of write operations.
@changelog_1254_li @changelog_1260_li
#MVStore: a map implementation that supports concurrent operations. #MVStore: a map implementation that supports concurrent operations.
@changelog_1255_li @changelog_1261_li
#MVStore: unified exception handling; the version is included in the messages. #MVStore: unified exception handling; the version is included in the messages.
@changelog_1256_li @changelog_1262_li
#MVStore: old data is now retained for 45 seconds by default. #MVStore: old data is now retained for 45 seconds by default.
@changelog_1257_li @changelog_1263_li
#MVStore: compress is now disabled by default, and can be enabled on request. #MVStore: compress is now disabled by default, and can be enabled on request.
@changelog_1258_li @changelog_1264_li
#Support ALTER TABLE ADD ... AFTER. Patch from Andrew Gaul (argaul at gmail.com). Fixes issue 401. #Support ALTER TABLE ADD ... AFTER. Patch from Andrew Gaul (argaul at gmail.com). Fixes issue 401.
@changelog_1259_li @changelog_1265_li
#Improved OSGi support. H2 now registers itself as a DataSourceFactory service. Fixes issue 365. #Improved OSGi support. H2 now registers itself as a DataSourceFactory service. Fixes issue 365.
@changelog_1260_li @changelog_1266_li
#Add a DISK_SPACE_USED system function. Fixes issue 270. #Add a DISK_SPACE_USED system function. Fixes issue 270.
@changelog_1261_li @changelog_1267_li
#Fix a compile-time ambiguity when compiling with JDK7, thanks to a patch from Lukas Eder. #Fix a compile-time ambiguity when compiling with JDK7, thanks to a patch from Lukas Eder.
@changelog_1262_li @changelog_1268_li
#Supporting dropping an index for Lucene full-text indexes. #Supporting dropping an index for Lucene full-text indexes.
@changelog_1263_li @changelog_1269_li
#Optimized performance for SELECT ... ORDER BY X LIMIT Y OFFSET Z queries for in-memory databases using partial sort (by Sergi Vladykin). #Optimized performance for SELECT ... ORDER BY X LIMIT Y OFFSET Z queries for in-memory databases using partial sort (by Sergi Vladykin).
@changelog_1264_li @changelog_1270_li
#Experimental off-heap memory storage engine "nioMemFS:" and "nioMemLZF:", suggestion from Mark Addleman. #Experimental off-heap memory storage engine "nioMemFS:" and "nioMemLZF:", suggestion from Mark Addleman.
@changelog_1265_li @changelog_1271_li
#Issue 438: JdbcDatabaseMetaData.getSchemas() is no longer supported as of 1.3.169. #Issue 438: JdbcDatabaseMetaData.getSchemas() is no longer supported as of 1.3.169.
@changelog_1266_li @changelog_1272_li
#MySQL compatibility: support for ALTER TABLE tableName MODIFY [COLUMN] columnName columnDef. Patch from Ville Koskela. #MySQL compatibility: support for ALTER TABLE tableName MODIFY [COLUMN] columnName columnDef. Patch from Ville Koskela.
@changelog_1267_li @changelog_1273_li
#Issue 404: SHOW COLUMNS FROM tableName does not work with ALLOW_LITERALS=NUMBERS. #Issue 404: SHOW COLUMNS FROM tableName does not work with ALLOW_LITERALS=NUMBERS.
@changelog_1268_li @changelog_1274_li
#Throw an explicit error to make it clear we don't support the TRIGGER combination of SELECT and FOR EACH ROW. #Throw an explicit error to make it clear we don't support the TRIGGER combination of SELECT and FOR EACH ROW.
@changelog_1269_li @changelog_1275_li
#Issue 439: Utils.sortTopN does not handle single-element arrays. #Issue 439: Utils.sortTopN does not handle single-element arrays.
@cheatSheet_1000_h1 @cheatSheet_1000_h1
...@@ -10376,7 +10394,7 @@ H2 コンソール アプリケーション ...@@ -10376,7 +10394,7 @@ H2 コンソール アプリケーション
#Use a lazy and auto-close input stream (open resource when reading, close on eof). #Use a lazy and auto-close input stream (open resource when reading, close on eof).
@roadmap_1304_li @roadmap_1304_li
#PostgreSQL compatibility: generate_series. #PostgreSQL compatibility: generate_series (as an alias for system_range).
@roadmap_1305_li @roadmap_1305_li
#Connection pool: 'reset session' command (delete temp tables, rollback, auto-commit true). #Connection pool: 'reset session' command (delete temp tables, rollback, auto-commit true).
......
...@@ -616,274 +616,280 @@ build_1111_li=The rail images (one straight, four junctions, two turns) are gene ...@@ -616,274 +616,280 @@ build_1111_li=The rail images (one straight, four junctions, two turns) are gene
build_1112_p=\ To generate railroad diagrams for other grammars, see the package <code>org.h2.jcr</code>. This package is used to generate the SQL-2 railroad diagrams for the JCR 2.0 specification. build_1112_p=\ To generate railroad diagrams for other grammars, see the package <code>org.h2.jcr</code>. This package is used to generate the SQL-2 railroad diagrams for the JCR 2.0 specification.
changelog_1000_h1=Change Log changelog_1000_h1=Change Log
changelog_1001_h2=Next Version (unreleased) changelog_1001_h2=Next Version (unreleased)
changelog_1002_li=- changelog_1002_li=The JDBC escape syntax {ts 'value'} did not interpret the value as a timestamp. The same for {d 'value'} (for date) and {t 'value'} (for time). Thanks to Lukas Eder for reporting the issue.
changelog_1003_h2=Version 1.4.180 Beta (2014-07-13) changelog_1003_li=File system abstraction\: support replacing existing files using move (currently not for Windows).
changelog_1004_li=MVStore\: the store is now auto-compacted automatically up to some point, to avoid very large file sizes. This area is still work in progress. changelog_1004_li=The statement "shutdown defrag" now compresses the database (with the MVStore).
changelog_1005_li=Sequences of temporary tables (auto-increment or identity columns) were persisted unnecessarily in the database file, and were not removed when re-opening the database. changelog_1005_li=The MVStore now automatically shrinks the file in the background if there is no read or write activity. This might be a bit too aggressive; feedback is welcome\!
changelog_1006_li=MVStore\: an IndexOutOfBoundsException could sometimes occur MVMap.openVersion when concurrently accessing the store. changelog_1006_li=Change default value of PAGE_SIZE from 2048 to 4096 to more closely match most file systems block size (PageStore only; the MVStore already used 4096).
changelog_1007_li=The LIRS cache now re-sizes the internal hash map if needed. changelog_1007_li=Auto-scale MAX_MEMORY_ROWS and CACHE_SIZE settings by the amount of available RAM. Gives a better out of box experience for people with more powerful machines.
changelog_1008_li=Optionally persist session history in the H2 console. (patch from Martin Grajcar) changelog_1008_li=Handle tabs like 4 spaces in web console, patch by Martin Grajcar
changelog_1009_li=Add client-info property to get the number of servers currently in the cluster and which servers that are available. (patch from Nikolaj Fogh) changelog_1009_h2=Version 1.4.180 Beta (2014-07-13)
changelog_1010_li=Fix bug in changing encrypted DB password that kept the file handle open when the wrong password was supplied. (test case from Jens Hohmuth). changelog_1010_li=MVStore\: the store is now auto-compacted automatically up to some point, to avoid very large file sizes. This area is still work in progress.
changelog_1011_li=Issue 567\: H2 hangs for a long time then (sometimes) recovers. Introduce a queue when doing table locking to prevent session starvation. changelog_1011_li=Sequences of temporary tables (auto-increment or identity columns) were persisted unnecessarily in the database file, and were not removed when re-opening the database.
changelog_1012_h2=Version 1.4.179 Beta (2014-06-23) changelog_1012_li=MVStore\: an IndexOutOfBoundsException could sometimes occur MVMap.openVersion when concurrently accessing the store.
changelog_1013_li=The license was changed to MPL 2.0 (from 1.0) and EPL 1.0. changelog_1013_li=The LIRS cache now re-sizes the internal hash map if needed.
changelog_1014_li=Issue 565\: MVStore\: concurrently adding LOB objects (with MULTI_THREADED option) resulted in a NullPointerException. changelog_1014_li=Optionally persist session history in the H2 console. (patch from Martin Grajcar)
changelog_1015_li=MVStore\: reduced dependencies to other H2 classes. changelog_1015_li=Add client-info property to get the number of servers currently in the cluster and which servers that are available. (patch from Nikolaj Fogh)
changelog_1016_li=There was a way to prevent a database from being re-opened, by creating a column constraint that references a table with a higher id, for example with "check" constraints that contains queries. This is now detected, and creating the table is prohibited. In future versions of H2, most likely creating references to other tables will no longer be supported because of such problems. changelog_1016_li=Fix bug in changing encrypted DB password that kept the file handle open when the wrong password was supplied. (test case from Jens Hohmuth).
changelog_1017_li=MVStore\: descending indexes with "nulls first" did not work as expected (null was ordered last). changelog_1017_li=Issue 567\: H2 hangs for a long time then (sometimes) recovers. Introduce a queue when doing table locking to prevent session starvation.
changelog_1018_li=Large result sets now always create temporary tables instead of temporary files. changelog_1018_h2=Version 1.4.179 Beta (2014-06-23)
changelog_1019_li=When using the PageStore, opening a database failed in some cases with a NullPointerException if temporary tables were used (explicitly, or implicitly when using large result sets). changelog_1019_li=The license was changed to MPL 2.0 (from 1.0) and EPL 1.0.
changelog_1020_li=If a database file in the PageStore file format exists, this file and this mode is now used, even if the database URL does not contain "MV_STORE\=FALSE". If a MVStore file exists, it is used. changelog_1020_li=Issue 565\: MVStore\: concurrently adding LOB objects (with MULTI_THREADED option) resulted in a NullPointerException.
changelog_1021_li=Databases created with version 1.3.175 and earlier that contained foreign keys in combination with multi-column indexes could not be opened in some cases. This was due to a bugfix in version 1.3.176\: Referential integrity constraints sometimes used the wrong index. changelog_1021_li=MVStore\: reduced dependencies to other H2 classes.
changelog_1022_li=MVStore\: the ObjectDataType comparison method was incorrect if one key was Serializable and the other was of a common class. changelog_1022_li=There was a way to prevent a database from being re-opened, by creating a column constraint that references a table with a higher id, for example with "check" constraints that contains queries. This is now detected, and creating the table is prohibited. In future versions of H2, most likely creating references to other tables will no longer be supported because of such problems.
changelog_1023_li=Recursive queries with many result rows (more than the setting "max_memory_rows") did not work correctly. changelog_1023_li=MVStore\: descending indexes with "nulls first" did not work as expected (null was ordered last).
changelog_1024_li=The license has changed to MPL 2.0 + EPL 1.0. changelog_1024_li=Large result sets now always create temporary tables instead of temporary files.
changelog_1025_li=MVStore\: temporary tables from result sets could survive re-opening a database, which could result in a ClassCastException. changelog_1025_li=When using the PageStore, opening a database failed in some cases with a NullPointerException if temporary tables were used (explicitly, or implicitly when using large result sets).
changelog_1026_li=Issue 566\: MVStore\: unique indexes that were created later on did not work correctly if there were over 5000 rows in the table. Existing databases need to be re-created (at least the broken index need to be re-built). changelog_1026_li=If a database file in the PageStore file format exists, this file and this mode is now used, even if the database URL does not contain "MV_STORE\=FALSE". If a MVStore file exists, it is used.
changelog_1027_li=MVStore\: creating secondary indexes on large tables results in missing rows in the index. changelog_1027_li=Databases created with version 1.3.175 and earlier that contained foreign keys in combination with multi-column indexes could not be opened in some cases. This was due to a bugfix in version 1.3.176\: Referential integrity constraints sometimes used the wrong index.
changelog_1028_li=Metadata\: the password of linked tables is now only visible for admin users. changelog_1028_li=MVStore\: the ObjectDataType comparison method was incorrect if one key was Serializable and the other was of a common class.
changelog_1029_li=For Windows, database URLs of the form "jdbc\:h2\:/test" where considered relative and did not work unless the system property "h2.implicitRelativePath" was used. changelog_1029_li=Recursive queries with many result rows (more than the setting "max_memory_rows") did not work correctly.
changelog_1030_li=Windows\: using a base directory of "C\:/" and similar did not work as expected. changelog_1030_li=The license has changed to MPL 2.0 + EPL 1.0.
changelog_1031_li=Follow JDBC specification on Procedures MetaData, use P0 as return type of procedure. changelog_1031_li=MVStore\: temporary tables from result sets could survive re-opening a database, which could result in a ClassCastException.
changelog_1032_li=Issue 531\: IDENTITY ignored for added column. changelog_1032_li=Issue 566\: MVStore\: unique indexes that were created later on did not work correctly if there were over 5000 rows in the table. Existing databases need to be re-created (at least the broken index need to be re-built).
changelog_1033_li=FileSystem\: improve exception throwing compatibility with JDK changelog_1033_li=MVStore\: creating secondary indexes on large tables results in missing rows in the index.
changelog_1034_li=Spatial Index\: adjust costs so we do not use the spatial index if the query does not contain an intersects operator. changelog_1034_li=Metadata\: the password of linked tables is now only visible for admin users.
changelog_1035_li=Fix multi-threaded deadlock when using a View that includes a TableFunction. changelog_1035_li=For Windows, database URLs of the form "jdbc\:h2\:/test" where considered relative and did not work unless the system property "h2.implicitRelativePath" was used.
changelog_1036_li=Fix bug in dividing very-small BigDecimal numbers. changelog_1036_li=Windows\: using a base directory of "C\:/" and similar did not work as expected.
changelog_1037_h2=Version 1.4.178 Beta (2014-05-02) changelog_1037_li=Follow JDBC specification on Procedures MetaData, use P0 as return type of procedure.
changelog_1038_li=Issue 559\: Make dependency on org.osgi.service.jdbc optional. changelog_1038_li=Issue 531\: IDENTITY ignored for added column.
changelog_1039_li=Improve error message when the user specifies an unsupported combination of database settings. changelog_1039_li=FileSystem\: improve exception throwing compatibility with JDK
changelog_1040_li=MVStore\: in the multi-threaded mode, NullPointerException and other exceptions could occur. changelog_1040_li=Spatial Index\: adjust costs so we do not use the spatial index if the query does not contain an intersects operator.
changelog_1041_li=MVStore\: some database file could not be compacted due to a bug in the bookkeeping of the fill rate. Also, database file were compacted quite slowly. This has been improved; but more changes in this area are expected. changelog_1041_li=Fix multi-threaded deadlock when using a View that includes a TableFunction.
changelog_1042_li=MVStore\: support for volatile maps (that don't store changes). changelog_1042_li=Fix bug in dividing very-small BigDecimal numbers.
changelog_1043_li=MVStore mode\: in-memory databases now also use the MVStore. changelog_1043_h2=Version 1.4.178 Beta (2014-05-02)
changelog_1044_li=In server mode, appending ";autocommit\=false" to the database URL was working, but the return value of Connection.getAutoCommit() was wrong. changelog_1044_li=Issue 559\: Make dependency on org.osgi.service.jdbc optional.
changelog_1045_li=Issue 561\: OSGi\: the import package declaration of org.h2 excluded version 1.4. changelog_1045_li=Improve error message when the user specifies an unsupported combination of database settings.
changelog_1046_li=Issue 558\: with the MVStore, a NullPointerException could occur when using LOBs at session commit (LobStorageMap.removeLob). changelog_1046_li=MVStore\: in the multi-threaded mode, NullPointerException and other exceptions could occur.
changelog_1047_li=Remove the "h2.MAX_MEMORY_ROWS_DISTINCT" system property to reduce confusion. We already have the MAX_MEMORY_ROWS setting which does a very similar thing, and is better documented. changelog_1047_li=MVStore\: some database file could not be compacted due to a bug in the bookkeeping of the fill rate. Also, database file were compacted quite slowly. This has been improved; but more changes in this area are expected.
changelog_1048_li=Issue 554\: Web Console in an IFrame was not fully supported. changelog_1048_li=MVStore\: support for volatile maps (that don't store changes).
changelog_1049_h2=Version 1.4.177 Beta (2014-04-12) changelog_1049_li=MVStore mode\: in-memory databases now also use the MVStore.
changelog_1050_li=By default, the MV_STORE option is enabled, so it is using the new MVStore storage. The MVCC setting is by default set to the same values as the MV_STORE setting, so it is also enabled by default. For testing, both settings can be disabled by appending ";MV_STORE\=FALSE" and/or ";MVCC\=FALSE" to the database URL. changelog_1050_li=In server mode, appending ";autocommit\=false" to the database URL was working, but the return value of Connection.getAutoCommit() was wrong.
changelog_1051_li=The file locking method 'serialized' is no longer supported. This mode might return in a future version, however this is not clear right now. A new implementation and new tests would be needed. changelog_1051_li=Issue 561\: OSGi\: the import package declaration of org.h2 excluded version 1.4.
changelog_1052_li=Enable the new storage format for dates (system property "h2.storeLocalTime"). For the MVStore mode, this is always enabled, but with version 1.4 this is even enabled in the PageStore mode. changelog_1052_li=Issue 558\: with the MVStore, a NullPointerException could occur when using LOBs at session commit (LobStorageMap.removeLob).
changelog_1053_li=Implicit relative paths are disabled (system property "h2.implicitRelativePath"), so that the database URL jdbc\:h2\:test now needs to be written as jdbc\:h2\:./test. changelog_1053_li=Remove the "h2.MAX_MEMORY_ROWS_DISTINCT" system property to reduce confusion. We already have the MAX_MEMORY_ROWS setting which does a very similar thing, and is better documented.
changelog_1054_li="select ... fetch first 1 row only" is supported with the regular mode. This was disabled so far because "fetch" is now a keyword. See also Mode.supportOffsetFetch. changelog_1054_li=Issue 554\: Web Console in an IFrame was not fully supported.
changelog_1055_li=Byte arrays are now sorted in unsigned mode (x'99' is larger than x'09'). (System property "h2.sortBinaryUnsigned", Mode.binaryUnsigned, setting "binary_collation"). changelog_1055_h2=Version 1.4.177 Beta (2014-04-12)
changelog_1056_li=Csv.getInstance will be removed in future versions of 1.4. Use the public constructor instead. changelog_1056_li=By default, the MV_STORE option is enabled, so it is using the new MVStore storage. The MVCC setting is by default set to the same values as the MV_STORE setting, so it is also enabled by default. For testing, both settings can be disabled by appending ";MV_STORE\=FALSE" and/or ";MVCC\=FALSE" to the database URL.
changelog_1057_li=Remove support for the limited old-style outer join syntax using "(+)". Use "outer join" instead. System property "h2.oldStyleOuterJoin". changelog_1057_li=The file locking method 'serialized' is no longer supported. This mode might return in a future version, however this is not clear right now. A new implementation and new tests would be needed.
changelog_1058_li=Support the data type "DATETIME2" as an alias for "DATETIME", for MS SQL Server compatibility. changelog_1058_li=Enable the new storage format for dates (system property "h2.storeLocalTime"). For the MVStore mode, this is always enabled, but with version 1.4 this is even enabled in the PageStore mode.
changelog_1059_li=Add Oracle-compatible TRANSLATE function, patch by Eric Chatellier. changelog_1059_li=Implicit relative paths are disabled (system property "h2.implicitRelativePath"), so that the database URL jdbc\:h2\:test now needs to be written as jdbc\:h2\:./test.
changelog_1060_h2=Version 1.3.176 (2014-04-05) changelog_1060_li="select ... fetch first 1 row only" is supported with the regular mode. This was disabled so far because "fetch" is now a keyword. See also Mode.supportOffsetFetch.
changelog_1061_li=The file locking method 'serialized' is no longer documented, as it will not be available in version 1.4. changelog_1061_li=Byte arrays are now sorted in unsigned mode (x'99' is larger than x'09'). (System property "h2.sortBinaryUnsigned", Mode.binaryUnsigned, setting "binary_collation").
changelog_1062_li=The static method Csv.getInstance() was removed. Use the public constructor instead. changelog_1062_li=Csv.getInstance will be removed in future versions of 1.4. Use the public constructor instead.
changelog_1063_li=The default user name for the Script, RunScript, Shell, and CreateCluster tools are no longer "sa" but an empty string. changelog_1063_li=Remove support for the limited old-style outer join syntax using "(+)". Use "outer join" instead. System property "h2.oldStyleOuterJoin".
changelog_1064_li=The stack trace of the exception "The object is already closed" is no longer logged by default. changelog_1064_li=Support the data type "DATETIME2" as an alias for "DATETIME", for MS SQL Server compatibility.
changelog_1065_li=If a value of a result set was itself a result set, the result could only be read once. changelog_1065_li=Add Oracle-compatible TRANSLATE function, patch by Eric Chatellier.
changelog_1066_li=Column constraints are also visible in views (patch from Nicolas Fortin for H2GIS). changelog_1066_h2=Version 1.3.176 (2014-04-05)
changelog_1067_li=Granting a additional right to a role that already had a right for that table was not working. changelog_1067_li=The file locking method 'serialized' is no longer documented, as it will not be available in version 1.4.
changelog_1068_li=Spatial index\: a few bugs have been fixed (using spatial constraints in views, transferring geometry objects over TCP/IP, the returned geometry object is copied when needed). changelog_1068_li=The static method Csv.getInstance() was removed. Use the public constructor instead.
changelog_1069_li=Issue 551\: the datatype documentation was incorrect (found by Bernd Eckenfels). changelog_1069_li=The default user name for the Script, RunScript, Shell, and CreateCluster tools are no longer "sa" but an empty string.
changelog_1070_li=Issue 368\: ON DUPLICATE KEY UPDATE did not work for multi-row inserts. Test case from Angus Macdonald. changelog_1070_li=The stack trace of the exception "The object is already closed" is no longer logged by default.
changelog_1071_li=OSGi\: the package javax.tools is now imported (as an optional). changelog_1071_li=If a value of a result set was itself a result set, the result could only be read once.
changelog_1072_li=H2 Console\: auto-complete is now disabled by default, but there is a hot-key (Ctrl+Space). changelog_1072_li=Column constraints are also visible in views (patch from Nicolas Fortin for H2GIS).
changelog_1073_li=H2 Console\: auto-complete did not work with multi-line statements. changelog_1073_li=Granting a additional right to a role that already had a right for that table was not working.
changelog_1074_li=CLOB and BLOB data was not immediately removed after a rollback. changelog_1074_li=Spatial index\: a few bugs have been fixed (using spatial constraints in views, transferring geometry objects over TCP/IP, the returned geometry object is copied when needed).
changelog_1075_li=There is a new Aggregate API that supports the internal H2 data types (GEOMETRY for example). Thanks a lot to Nicolas Fortin for the patch\! changelog_1075_li=Issue 551\: the datatype documentation was incorrect (found by Bernd Eckenfels).
changelog_1076_li=Referential integrity constraints sometimes used the wrong index, such that updating a row in the referenced table incorrectly failed with a constraint violation. changelog_1076_li=Issue 368\: ON DUPLICATE KEY UPDATE did not work for multi-row inserts. Test case from Angus Macdonald.
changelog_1077_li=The Polish translation was completed and corrected by Wojtek Jurczyk. Thanks a lot\! changelog_1077_li=OSGi\: the package javax.tools is now imported (as an optional).
changelog_1078_li=Issue 545\: Unnecessary duplicate code was removed. changelog_1078_li=H2 Console\: auto-complete is now disabled by default, but there is a hot-key (Ctrl+Space).
changelog_1079_li=The profiler tool can now process files with full thread dumps. changelog_1079_li=H2 Console\: auto-complete did not work with multi-line statements.
changelog_1080_li=MVStore\: the file format was changed slightly. changelog_1080_li=CLOB and BLOB data was not immediately removed after a rollback.
changelog_1081_li=MVStore mode\: the CLOB and BLOB storage was re-implemented and is now much faster than with the PageStore (which is still the default storage). changelog_1081_li=There is a new Aggregate API that supports the internal H2 data types (GEOMETRY for example). Thanks a lot to Nicolas Fortin for the patch\!
changelog_1082_li=MVStore mode\: creating indexes is now much faster (in many cases faster than with the default PageStore). changelog_1082_li=Referential integrity constraints sometimes used the wrong index, such that updating a row in the referenced table incorrectly failed with a constraint violation.
changelog_1083_li=Various bugs in the MVStore storage and have been fixed, including a bug in the R-tree implementation. The database could get corrupt if there were transient IO exceptions while storing. changelog_1083_li=The Polish translation was completed and corrected by Wojtek Jurczyk. Thanks a lot\!
changelog_1084_li=The method org.h2.expression.Function.getCost could throw a NullPointException. changelog_1084_li=Issue 545\: Unnecessary duplicate code was removed.
changelog_1085_li=Storing LOBs in separate files (outside of the main database file) is no longer supported for new databases. changelog_1085_li=The profiler tool can now process files with full thread dumps.
changelog_1086_li=Lucene 2 is no longer supported. changelog_1086_li=MVStore\: the file format was changed slightly.
changelog_1087_li=Fix bug in calculating default MIN and MAX values for SEQUENCE. changelog_1087_li=MVStore mode\: the CLOB and BLOB storage was re-implemented and is now much faster than with the PageStore (which is still the default storage).
changelog_1088_li=Fix bug in performing IN queries with multiple values when IGNORECASE\=TRUE changelog_1088_li=MVStore mode\: creating indexes is now much faster (in many cases faster than with the default PageStore).
changelog_1089_li=Add entry-point to org.h2.tools.Shell so it can be called from inside an application. patch by Thomas Gillet. changelog_1089_li=Various bugs in the MVStore storage and have been fixed, including a bug in the R-tree implementation. The database could get corrupt if there were transient IO exceptions while storing.
changelog_1090_li=Fix bug that prevented the PgServer from being stopped and started multiple times. changelog_1090_li=The method org.h2.expression.Function.getCost could throw a NullPointException.
changelog_1091_li=Support some more DDL syntax for MySQL, patch from Peter Jentsch. changelog_1091_li=Storing LOBs in separate files (outside of the main database file) is no longer supported for new databases.
changelog_1092_li=Issue 548\: TO_CHAR does not format MM and DD correctly when the month or day of the month is 1 digit, patch from "the.tucc" changelog_1092_li=Lucene 2 is no longer supported.
changelog_1093_li=Fix bug in varargs support in ALIAS's, patch from Nicolas Fortin changelog_1093_li=Fix bug in calculating default MIN and MAX values for SEQUENCE.
changelog_1094_h2=Version 1.3.175 (2014-01-18) changelog_1094_li=Fix bug in performing IN queries with multiple values when IGNORECASE\=TRUE
changelog_1095_li=EXPLAIN was incorrect for queries with "ANY" or "SOME" conditions. changelog_1095_li=Add entry-point to org.h2.tools.Shell so it can be called from inside an application. patch by Thomas Gillet.
changelog_1096_li=CallableStatement with "out" parameters\: running the same statement twice could result in an exception ("parameter not set"). changelog_1096_li=Fix bug that prevented the PgServer from being stopped and started multiple times.
changelog_1097_li=Union queries\: duplicate rows could be returned if the sub-queries contained "order by". changelog_1097_li=Support some more DDL syntax for MySQL, patch from Peter Jentsch.
changelog_1098_li=The GEOMETRY data type now works for user defined functions that return a result set. changelog_1098_li=Issue 548\: TO_CHAR does not format MM and DD correctly when the month or day of the month is 1 digit, patch from "the.tucc"
changelog_1099_li=PostgreSQL compatibility\: the PgServer was not working properly when the setting database_to_upper was set to false. changelog_1099_li=Fix bug in varargs support in ALIAS's, patch from Nicolas Fortin
changelog_1100_li=JdbcDataSource\: the methods setUrl and getUrl where added as aliases for setURL and getURL. This should solve problems with the HikariCP (Hikari connection pool). changelog_1100_h2=Version 1.3.175 (2014-01-18)
changelog_1101_li=Issue 537\: H2 Console\: when loading the schema, incorrect JDBC calls where issued, which caused the exception "Column PRECISION not found". changelog_1101_li=EXPLAIN was incorrect for queries with "ANY" or "SOME" conditions.
changelog_1102_li=Improved Geometry processing (issue 535). changelog_1102_li=CallableStatement with "out" parameters\: running the same statement twice could result in an exception ("parameter not set").
changelog_1103_li=The collation can now be set in the database URL, even if there are data tables, if the collection is the same as the current collation. changelog_1103_li=Union queries\: duplicate rows could be returned if the sub-queries contained "order by".
changelog_1104_li=Improved Oracle compatibility for CASE WHEN and DECODE. changelog_1104_li=The GEOMETRY data type now works for user defined functions that return a result set.
changelog_1105_li=The statement "drop all objects" did not work if a table depends on a view via a constraint. changelog_1105_li=PostgreSQL compatibility\: the PgServer was not working properly when the setting database_to_upper was set to false.
changelog_1106_li=Subqueries or views with "order by" an alias expression could not be executed due to a regression introduced in version 1.3.174. changelog_1106_li=JdbcDataSource\: the methods setUrl and getUrl where added as aliases for setURL and getURL. This should solve problems with the HikariCP (Hikari connection pool).
changelog_1107_li=Issue 73\: MySQL compatibility\: support REPLACE, patch by Cemo Koc. changelog_1107_li=Issue 537\: H2 Console\: when loading the schema, incorrect JDBC calls where issued, which caused the exception "Column PRECISION not found".
changelog_1108_li=The spatial index now works in MVCC mode when using the MVStore storage. changelog_1108_li=Improved Geometry processing (issue 535).
changelog_1109_li=MVStore\: concurrency problems have been fixed. The API has been simplified. changelog_1109_li=The collation can now be set in the database URL, even if there are data tables, if the collection is the same as the current collation.
changelog_1110_li=Improve error message when dropping an index that belongs to a constraint, specify constraint in error message. changelog_1110_li=Improved Oracle compatibility for CASE WHEN and DECODE.
changelog_1111_li=Issue 518\: java.sql.Connection.commit() freezes after LOB modification with EXCLUSIVE connection changelog_1111_li=The statement "drop all objects" did not work if a table depends on a view via a constraint.
changelog_1112_li=Issue 517\: Create or replace view statement has no effect on the others already existing JDBC connection changelog_1112_li=Subqueries or views with "order by" an alias expression could not be executed due to a regression introduced in version 1.3.174.
changelog_1113_li=Support 123L syntax as in Java; example\: SELECT (2000000000L*2). changelog_1113_li=Issue 73\: MySQL compatibility\: support REPLACE, patch by Cemo Koc.
changelog_1114_li=Issue 520\: Add support for sequence max value, min value and cycle, patch by Daniel Gredler. changelog_1114_li=The spatial index now works in MVCC mode when using the MVStore storage.
changelog_1115_li=Issue 521\: ScriptReader should implement Closeable changelog_1115_li=MVStore\: concurrency problems have been fixed. The API has been simplified.
changelog_1116_li=Issue 524\: RunScript.execute does not close its Statement, patch from Gaul. changelog_1116_li=Improve error message when dropping an index that belongs to a constraint, specify constraint in error message.
changelog_1117_li=Add support for DB2 "WITH UR" clause, patch from litailang changelog_1117_li=Issue 518\: java.sql.Connection.commit() freezes after LOB modification with EXCLUSIVE connection
changelog_1118_li=Added support for ON DUPLICATE KEY UPDATE like MySQL with the values() function to update with the value that was to be inserted. Patch from Jean-Francois Noel. changelog_1118_li=Issue 517\: Create or replace view statement has no effect on the others already existing JDBC connection
changelog_1119_li=Issue 522\: Treat empty strings like NULL in Oracle compatibility mode, patch by Daniel Gredler. changelog_1119_li=Support 123L syntax as in Java; example\: SELECT (2000000000L*2).
changelog_1120_li=Issue 527\: Oracle compatibility mode\: incorrect scale behavior, patch by Daniel Gredler. changelog_1120_li=Issue 520\: Add support for sequence max value, min value and cycle, patch by Daniel Gredler.
changelog_1121_li=Slightly reduce the memory cost of View metadata. changelog_1121_li=Issue 521\: ScriptReader should implement Closeable
changelog_1122_li=Extend support of "GRANT ALTER ANY SCHEMA TO &lt;user&gt;" to allow grantee ability to manipulate tables changelog_1122_li=Issue 524\: RunScript.execute does not close its Statement, patch from Gaul.
changelog_1123_li=Issue 532\: Javadoc for ErrorCode.ROLES_AND_RIGHT_CANNOT_BE_MIXED looks wrong changelog_1123_li=Add support for DB2 "WITH UR" clause, patch from litailang
changelog_1124_li=Issue 528\: Add Oracle-compatible TO_CHAR function, patch by Daniel Gredler. changelog_1124_li=Added support for ON DUPLICATE KEY UPDATE like MySQL with the values() function to update with the value that was to be inserted. Patch from Jean-Francois Noel.
changelog_1125_li=Issue 534\: CREATE ALIAS NOCACHE, Patch by Nicolas Fortin changelog_1125_li=Issue 522\: Treat empty strings like NULL in Oracle compatibility mode, patch by Daniel Gredler.
changelog_1126_li=Fix an issue with storing Unicode surrogate pairs in CLOB columns. changelog_1126_li=Issue 527\: Oracle compatibility mode\: incorrect scale behavior, patch by Daniel Gredler.
changelog_1127_li=H2 console\: add SHIFT+ENTER "run selected" functionality changelog_1127_li=Slightly reduce the memory cost of View metadata.
changelog_1128_li=Fix bug in DB2 syntax "select * from test with ur", patch from litailang changelog_1128_li=Extend support of "GRANT ALTER ANY SCHEMA TO &lt;user&gt;" to allow grantee ability to manipulate tables
changelog_1129_li=Fix bug in DROP ALL OBJECTS when dealing with inter-schema dependencies. changelog_1129_li=Issue 532\: Javadoc for ErrorCode.ROLES_AND_RIGHT_CANNOT_BE_MIXED looks wrong
changelog_1130_h2=Version 1.3.174 (2013-10-19) changelog_1130_li=Issue 528\: Add Oracle-compatible TO_CHAR function, patch by Daniel Gredler.
changelog_1131_li=LIRS cache\: bugfix for caches that only contain non-resident entries. changelog_1131_li=Issue 534\: CREATE ALIAS NOCACHE, Patch by Nicolas Fortin
changelog_1132_li=For in-memory databases, queries with a "group by" column that is also a hash index threw a RuntimeException. changelog_1132_li=Fix an issue with storing Unicode surrogate pairs in CLOB columns.
changelog_1133_li=Improved error message for some syntax errors. changelog_1133_li=H2 console\: add SHIFT+ENTER "run selected" functionality
changelog_1134_li=File system abstraction\: if used directly, some file systems did not work correctly with spliced byte buffers (the database engine doesn't use those). changelog_1134_li=Fix bug in DB2 syntax "select * from test with ur", patch from litailang
changelog_1135_li=To use the MVStore storage engine (which is still work in progress), append ";mv_store\=true" to the database URL. Using the MVTableEngine when creating the table is no longer recommended. changelog_1135_li=Fix bug in DROP ALL OBJECTS when dealing with inter-schema dependencies.
changelog_1136_li=To compile user defined functions, the javax.tools.JavaCompiler is now used if available, and no temporary files are created. This should solve problems when multiple H2 database concurrently compile the same user defined functions. To disable, system the system property "h2.javaSystemCompiler" to false. changelog_1136_h2=Version 1.3.174 (2013-10-19)
changelog_1137_li=Concurrently creating function aliases in different databases could result in the exception "javac\: file not found". changelog_1137_li=LIRS cache\: bugfix for caches that only contain non-resident entries.
changelog_1138_li=The function "regexp_replace" threw the wrong kind of exception if the replacement string was invalid. changelog_1138_li=For in-memory databases, queries with a "group by" column that is also a hash index threw a RuntimeException.
changelog_1139_li=A checkpoint is now done every MAX_LOG_SIZE / 2 instead of every MAX_LOG_SIZE, so that the transaction log doesn't grow as large. changelog_1139_li=Improved error message for some syntax errors.
changelog_1140_li=MVStore table engine\: new setting "retention_time" to configure the time to retain old data. The default is 45 seconds. changelog_1140_li=File system abstraction\: if used directly, some file systems did not work correctly with spliced byte buffers (the database engine doesn't use those).
changelog_1141_li=The method TableEngine.createTable() now returns a Table object. changelog_1141_li=To use the MVStore storage engine (which is still work in progress), append ";mv_store\=true" to the database URL. Using the MVTableEngine when creating the table is no longer recommended.
changelog_1142_li=For read-only databases, for the trace level "debug", the trace info is written to the temp directory. changelog_1142_li=To compile user defined functions, the javax.tools.JavaCompiler is now used if available, and no temporary files are created. This should solve problems when multiple H2 database concurrently compile the same user defined functions. To disable, system the system property "h2.javaSystemCompiler" to false.
changelog_1143_li=Closing the file lock will now wait until the background thread is stopped. changelog_1143_li=Concurrently creating function aliases in different databases could result in the exception "javac\: file not found".
changelog_1144_li=In version 1.3.172, a performance regression was introduced when fixing the issue 389 (when there is a multi-column primary key, H2 does not seem to always pick the right index). This was related to boosting an index that matches the "order by" column list (the wrong index was used in some cases). changelog_1144_li=The function "regexp_replace" threw the wrong kind of exception if the replacement string was invalid.
changelog_1145_li=Improved spatial index and data type. changelog_1145_li=A checkpoint is now done every MAX_LOG_SIZE / 2 instead of every MAX_LOG_SIZE, so that the transaction log doesn't grow as large.
changelog_1146_li=Issue 467\: OSGi Class Loader (ability to create reference to class in other ClassLoader, for example in another OSGi bundle). changelog_1146_li=MVStore table engine\: new setting "retention_time" to configure the time to retain old data. The default is 45 seconds.
changelog_1147_li=Queries "group by" that contain a subquery with an aggregate function returned the wrong result in some cases. changelog_1147_li=The method TableEngine.createTable() now returns a Table object.
changelog_1148_li=Fix bug in unique and non-unique hash indexes which manifested as incorrect results when the search key was a different cardinal type from the table index key. e.g. where the one was INT and the other was LONG changelog_1148_li=For read-only databases, for the trace level "debug", the trace info is written to the temp directory.
changelog_1149_li=Bug\: Changes to the database structure did not result in the Session query cache being invalidated. changelog_1149_li=Closing the file lock will now wait until the background thread is stopped.
changelog_1150_li=New feature from Davide Cavestro - allow using custom Java object serialization engines on a per-DB basis. changelog_1150_li=In version 1.3.172, a performance regression was introduced when fixing the issue 389 (when there is a multi-column primary key, H2 does not seem to always pick the right index). This was related to boosting an index that matches the "order by" column list (the wrong index was used in some cases).
changelog_1151_li=When running the Recover tool on very large (&gt;6G) databases, some statistics were reported with negative numbers. changelog_1151_li=Improved spatial index and data type.
changelog_1152_li=Add a CONTAINS_UNCOMMITTED column to the SESSIONS metadata table, to allow detecting when rogue sessions are creating large transactions. changelog_1152_li=Issue 467\: OSGi Class Loader (ability to create reference to class in other ClassLoader, for example in another OSGi bundle).
changelog_1153_li=Some small fixes to the GEOMETRY support, patches by Nicolas Fortin. changelog_1153_li=Queries "group by" that contain a subquery with an aggregate function returned the wrong result in some cases.
changelog_1154_li=The BNF tool and the autocomplete feature are exported in OSGi, which makes it possible for smart editors to do autocomplete. Patch from Nicolas Fortin. changelog_1154_li=Fix bug in unique and non-unique hash indexes which manifested as incorrect results when the search key was a different cardinal type from the table index key. e.g. where the one was INT and the other was LONG
changelog_1155_li=Fix DROP ALL OBJECTS and DROP SCHEMA in the presence of tables with computed column dependencies. changelog_1155_li=Bug\: Changes to the database structure did not result in the Session query cache being invalidated.
changelog_1156_li=Session-temporary LOB's could sometimes accumulate, increasing the size of the DB file until shutdown. Now they are cleared out at every commit. changelog_1156_li=New feature from Davide Cavestro - allow using custom Java object serialization engines on a per-DB basis.
changelog_1157_li=There was a bug where a hash index with more than one column would be silently converted to a regular index. It will now throw an exception. changelog_1157_li=When running the Recover tool on very large (&gt;6G) databases, some statistics were reported with negative numbers.
changelog_1158_li=Query Statistics\: new feature which stores the newest 100 SQL queries executed and their performance data. Useful for tracking down badly performing queries. changelog_1158_li=Add a CONTAINS_UNCOMMITTED column to the SESSIONS metadata table, to allow detecting when rogue sessions are creating large transactions.
changelog_1159_li=Fix an LOB deadlock between reading and updating LOB columns. changelog_1159_li=Some small fixes to the GEOMETRY support, patches by Nicolas Fortin.
changelog_1160_li=Support the JDBC DatabaseMetaData\#getClientInfoProperties() method, in the sense of returning an empty result, in order to make WebSphere happy. changelog_1160_li=The BNF tool and the autocomplete feature are exported in OSGi, which makes it possible for smart editors to do autocomplete. Patch from Nicolas Fortin.
changelog_1161_li=Make Server\#openBrowser respect the $BROWSER environment variable. Add "chromium" to the list of browsers tried. Patch from Felix Kaiser. changelog_1161_li=Fix DROP ALL OBJECTS and DROP SCHEMA in the presence of tables with computed column dependencies.
changelog_1162_li=Fix to org.h2.util.ScriptReader when handling unclosed block comments. changelog_1162_li=Session-temporary LOB's could sometimes accumulate, increasing the size of the DB file until shutdown. Now they are cleared out at every commit.
changelog_1163_li=Make org.h2.util.ScriptReader throw a better exception when handling broken scripts which generate extremely large statements. changelog_1163_li=There was a bug where a hash index with more than one column would be silently converted to a regular index. It will now throw an exception.
changelog_1164_li=Fix bug with ALLOW_LITERALS\=NONE, where the periodic analyze table on insert would throw an exception. A similar problem was fixed in the Console tool. changelog_1164_li=Query Statistics\: new feature which stores the newest 100 SQL queries executed and their performance data. Useful for tracking down badly performing queries.
changelog_1165_li=Issue 510\: Make org.h2.bnf public for consumption by external projects, patch by Nicolas Fortin changelog_1165_li=Fix an LOB deadlock between reading and updating LOB columns.
changelog_1166_li=Issue 509\: Important fix on ValueGeometry, patch by Nicolas Fortin (with some tweaking) Make ValueGeometry\#getDimensionCount more reliable. Add unit test to check for illegal ValueGeometry comparison Add unit test for conversion of Geometry object into Object Add optional export to MANIFEST.MF for JTS Geometry classes Validate that geometry values can be represented in WKB. changelog_1166_li=Support the JDBC DatabaseMetaData\#getClientInfoProperties() method, in the sense of returning an empty result, in order to make WebSphere happy.
changelog_1167_li=Issue 506\: RFE\: Include Thread.getName() in case of a deadlock changelog_1167_li=Make Server\#openBrowser respect the $BROWSER environment variable. Add "chromium" to the list of browsers tried. Patch from Felix Kaiser.
changelog_1168_li=Adding support for "GRANT ALTER ANY SCHEMA TO &lt;user&gt;", patch by John Yates changelog_1168_li=Fix to org.h2.util.ScriptReader when handling unclosed block comments.
changelog_1169_h2=Version 1.3.173 (2013-07-28) changelog_1169_li=Make org.h2.util.ScriptReader throw a better exception when handling broken scripts which generate extremely large statements.
changelog_1170_li=Support empty statements that just contains a comment. changelog_1170_li=Fix bug with ALLOW_LITERALS\=NONE, where the periodic analyze table on insert would throw an exception. A similar problem was fixed in the Console tool.
changelog_1171_li=Server mode\: if there was an error while reading from a LOB, the session was closed in some cases. changelog_1171_li=Issue 510\: Make org.h2.bnf public for consumption by external projects, patch by Nicolas Fortin
changelog_1172_li=Issue 463\: Driver name and version are now the same in OsgiDataSourceFactory and JdbcDatabaseMetaData. changelog_1172_li=Issue 509\: Important fix on ValueGeometry, patch by Nicolas Fortin (with some tweaking) Make ValueGeometry\#getDimensionCount more reliable. Add unit test to check for illegal ValueGeometry comparison Add unit test for conversion of Geometry object into Object Add optional export to MANIFEST.MF for JTS Geometry classes Validate that geometry values can be represented in WKB.
changelog_1173_li=JaQu\: The data type VARCHAR is now (again) used for Strings (no longer TEXT, except when explicitly set). changelog_1173_li=Issue 506\: RFE\: Include Thread.getName() in case of a deadlock
changelog_1174_li=For in-memory databases, creating an index on a CLOB or BLOB column is no longer supported. This is to simplify the MVTableEngine. changelog_1174_li=Adding support for "GRANT ALTER ANY SCHEMA TO &lt;user&gt;", patch by John Yates
changelog_1175_li=New column "information_schema.tables.row_count_estimate". changelog_1175_h2=Version 1.3.173 (2013-07-28)
changelog_1176_li=Issue 468\: trunc(timestamp) could return the wrong value (+12 hours), and trunc(number) throw a NullPointerException. changelog_1176_li=Support empty statements that just contains a comment.
changelog_1177_li=The expression trunc(number) threw a NullPointerException. changelog_1177_li=Server mode\: if there was an error while reading from a LOB, the session was closed in some cases.
changelog_1178_li=Fixed a deadlock when updating LOB's concurrently. See TestLob.testDeadlock2(). changelog_1178_li=Issue 463\: Driver name and version are now the same in OsgiDataSourceFactory and JdbcDatabaseMetaData.
changelog_1179_li=Fixed a deadlock related to very large temporary result sets. changelog_1179_li=JaQu\: The data type VARCHAR is now (again) used for Strings (no longer TEXT, except when explicitly set).
changelog_1180_li=Add "-list" command line option to Shell tool so that result-list-mode can be triggered when reading from a file. changelog_1180_li=For in-memory databases, creating an index on a CLOB or BLOB column is no longer supported. This is to simplify the MVTableEngine.
changelog_1181_li=Issue 474\: H2 MySQL Compatibility code fails to ignore "COMMENT" in CREATE TABLE, patch from Aaron Azeckoski. changelog_1181_li=New column "information_schema.tables.row_count_estimate".
changelog_1182_li=Issue 476\: Broken link in jaqu.html changelog_1182_li=Issue 468\: trunc(timestamp) could return the wrong value (+12 hours), and trunc(number) throw a NullPointerException.
changelog_1183_li=Fix potential UTF8 encoding issue in org.h2.store.FileStore, reported by Juerg Spiess. changelog_1183_li=The expression trunc(number) threw a NullPointerException.
changelog_1184_li=Improve error message when check constraint is broken, test case from Gili (cowwoc). changelog_1184_li=Fixed a deadlock when updating LOB's concurrently. See TestLob.testDeadlock2().
changelog_1185_li=Improve error message when we have a unique constraint violation, displays the offending key in the error message. changelog_1185_li=Fixed a deadlock related to very large temporary result sets.
changelog_1186_li=Issue 478\: Support for "SHOW TRANSACTION ISOLATION LEVEL", patch from Andrew Franklin. changelog_1186_li=Add "-list" command line option to Shell tool so that result-list-mode can be triggered when reading from a file.
changelog_1187_li=Issue 475\: PgServer\: add support for CancelRequest, patch from Andrew Franklin. changelog_1187_li=Issue 474\: H2 MySQL Compatibility code fails to ignore "COMMENT" in CREATE TABLE, patch from Aaron Azeckoski.
changelog_1188_li=Issue 473\: PgServer missing -key option, patch from Andrew Franklin. changelog_1188_li=Issue 476\: Broken link in jaqu.html
changelog_1189_li=Issue 471\: CREATE VIEW does not check user rights, patch from Andrew Franklin. changelog_1189_li=Fix potential UTF8 encoding issue in org.h2.store.FileStore, reported by Juerg Spiess.
changelog_1190_li=Issue 477\: PgServer binary transmission of query params is unimplemented, patch from Andrew Franklin. changelog_1190_li=Improve error message when check constraint is broken, test case from Gili (cowwoc).
changelog_1191_li=Issue 479\: Support for SUBSTRING without a FROM condition, patch from Andrew Franklin. changelog_1191_li=Improve error message when we have a unique constraint violation, displays the offending key in the error message.
changelog_1192_li=Issue 472\: PgServer does not work with any recent Postgres JDBC driver, patch from Andrew Franklin. changelog_1192_li=Issue 478\: Support for "SHOW TRANSACTION ISOLATION LEVEL", patch from Andrew Franklin.
changelog_1193_li=Add syntax for passing additional parameters into custom TableEngine implementations. changelog_1193_li=Issue 475\: PgServer\: add support for CancelRequest, patch from Andrew Franklin.
changelog_1194_li=Issue 480\: Bugfix post issue 475, 477, patch from Andrew Franklin. changelog_1194_li=Issue 473\: PgServer missing -key option, patch from Andrew Franklin.
changelog_1195_li=Issue 481\: Further extensions to PgServer to support better support PG JDBC, patch from Andrew Franklin. changelog_1195_li=Issue 471\: CREATE VIEW does not check user rights, patch from Andrew Franklin.
changelog_1196_li=Add support for spatial datatype GEOMETRY. changelog_1196_li=Issue 477\: PgServer binary transmission of query params is unimplemented, patch from Andrew Franklin.
changelog_1197_li=Add support for in-memory spatial index. changelog_1197_li=Issue 479\: Support for SUBSTRING without a FROM condition, patch from Andrew Franklin.
changelog_1198_li=change the PageStore\#changeCount field from an int to a long, to cope with databases with very high transaction rates. changelog_1198_li=Issue 472\: PgServer does not work with any recent Postgres JDBC driver, patch from Andrew Franklin.
changelog_1199_li=Fix a NullPointerException when attempting to add foreign key reference to a view. changelog_1199_li=Add syntax for passing additional parameters into custom TableEngine implementations.
changelog_1200_li=Add sufficient ClientInfo support to our javax.sql.Connection implementation to make WebSphere happy. changelog_1200_li=Issue 480\: Bugfix post issue 475, 477, patch from Andrew Franklin.
changelog_1201_li=Issue 482\: class LobStorageBackend$LobInputStream does not override the method InputStream.available(). changelog_1201_li=Issue 481\: Further extensions to PgServer to support better support PG JDBC, patch from Andrew Franklin.
changelog_1202_li=Fix corruption resulting from a mix of the "WRITE_DELAY\=0" option and "SELECT DISTINCT" queries that don't fit in memory. changelog_1202_li=Add support for spatial datatype GEOMETRY.
changelog_1203_li=Fix the combination of updating a table which contains an LOB, and reading from the LOB at the same time. Previously it would throw an exception, now it works. changelog_1203_li=Add support for in-memory spatial index.
changelog_1204_li=Issue 484\: In the H2 Console tool, all schemas starting with "INFO" where hidden. Now they are hidden only if the database is not H2. Patch from "mgcodeact"/"cumer d" changelog_1204_li=change the PageStore\#changeCount field from an int to a long, to cope with databases with very high transaction rates.
changelog_1205_li=MySQL compatibility, support the "AUTO_INCREMENT\=3" part of the CREATE TABLE statement. changelog_1205_li=Fix a NullPointerException when attempting to add foreign key reference to a view.
changelog_1206_li=Issue 486\: MySQL compatibility, support the "DEFAULT CHARSET" part of the CREATE TABLE statement. changelog_1206_li=Add sufficient ClientInfo support to our javax.sql.Connection implementation to make WebSphere happy.
changelog_1207_li=Issue 487\: support the MySQL "SET foreign_key_checks \= 0" command changelog_1207_li=Issue 482\: class LobStorageBackend$LobInputStream does not override the method InputStream.available().
changelog_1208_li=Issue 490\: support MySQL "USING BTREE" index declaration changelog_1208_li=Fix corruption resulting from a mix of the "WRITE_DELAY\=0" option and "SELECT DISTINCT" queries that don't fit in memory.
changelog_1209_li=Issue 485\: Database get corrupted when column is renamed for which check constraint was defined inside create table statement. changelog_1209_li=Fix the combination of updating a table which contains an LOB, and reading from the LOB at the same time. Previously it would throw an exception, now it works.
changelog_1210_li=Issue 499\: support MySQL "UNIQUE KEY (ID) USING BTREE" constraint syntax changelog_1210_li=Issue 484\: In the H2 Console tool, all schemas starting with "INFO" where hidden. Now they are hidden only if the database is not H2. Patch from "mgcodeact"/"cumer d"
changelog_1211_li=Issue 501\: "CREATE TABLE .. WITH" not serialized, patch from nico.devel changelog_1211_li=MySQL compatibility, support the "AUTO_INCREMENT\=3" part of the CREATE TABLE statement.
changelog_1212_li=Avoid problems with runtime-compiled ALIAS methods when people have set the JAVA_TOOL_OPTIONS environment variable. changelog_1212_li=Issue 486\: MySQL compatibility, support the "DEFAULT CHARSET" part of the CREATE TABLE statement.
changelog_1213_h2=Version 1.3.172 (2013-05-25) changelog_1213_li=Issue 487\: support the MySQL "SET foreign_key_checks \= 0" command
changelog_1214_li=Referential integrity\: when adding a referential integrity constraint failed, and if creating the constraint automatically created an index, this index was not removed. changelog_1214_li=Issue 490\: support MySQL "USING BTREE" index declaration
changelog_1215_li=The auto-analyze feature now only reads 1000 rows per table instead of 10000. changelog_1215_li=Issue 485\: Database get corrupted when column is renamed for which check constraint was defined inside create table statement.
changelog_1216_li=The optimization for IN(...) queries combined with OR could result in a strange exception of the type "column x must be included in the group by list". changelog_1216_li=Issue 499\: support MySQL "UNIQUE KEY (ID) USING BTREE" constraint syntax
changelog_1217_li=Issue 454\: Use Charset for type-safety. changelog_1217_li=Issue 501\: "CREATE TABLE .. WITH" not serialized, patch from nico.devel
changelog_1218_li=Queries with both LIMIT and OFFSET could throw an IllegalArgumentException. changelog_1218_li=Avoid problems with runtime-compiled ALIAS methods when people have set the JAVA_TOOL_OPTIONS environment variable.
changelog_1219_li=MVStore\: multiple issues were fixed\: 460, 461, 462, 464, 466. changelog_1219_h2=Version 1.3.172 (2013-05-25)
changelog_1220_li=MVStore\: larger stores (multiple GB) are now much faster. changelog_1220_li=Referential integrity\: when adding a referential integrity constraint failed, and if creating the constraint automatically created an index, this index was not removed.
changelog_1221_li=When using local temporary tables and not dropping them manually before closing the session, and then killing the process could result in a database that couldn't be opened (except when using the recover tool). changelog_1221_li=The auto-analyze feature now only reads 1000 rows per table instead of 10000.
changelog_1222_li=Support TRUNC(timestamp) for improved Oracle compatibility. changelog_1222_li=The optimization for IN(...) queries combined with OR could result in a strange exception of the type "column x must be included in the group by list".
changelog_1223_li=Add support for CREATE TABLE TEST (ID BIGSERIAL) for PostgreSQL compatibility. Patch from Jesse Long. changelog_1223_li=Issue 454\: Use Charset for type-safety.
changelog_1224_li=Add new collation command SET BINARY_COLLATION UNSIGNED, helps with people testing BINARY columns in MySQL mode. changelog_1224_li=Queries with both LIMIT and OFFSET could throw an IllegalArgumentException.
changelog_1225_li=Issue 453\: ABBA race conditions in TABLE LINK connection sharing. changelog_1225_li=MVStore\: multiple issues were fixed\: 460, 461, 462, 464, 466.
changelog_1226_li=Issue 449\: Postgres Serial data type should not automatically be marked as primary key changelog_1226_li=MVStore\: larger stores (multiple GB) are now much faster.
changelog_1227_li=Issue 406\: Support "select h2version()" changelog_1227_li=When using local temporary tables and not dropping them manually before closing the session, and then killing the process could result in a database that couldn't be opened (except when using the recover tool).
changelog_1228_li=Issue 389\: When there is a multi-column primary key, H2 does not seem to always pick the right index changelog_1228_li=Support TRUNC(timestamp) for improved Oracle compatibility.
changelog_1229_li=Issue 305\: Implement SELECT ... FOR FETCH ONLY changelog_1229_li=Add support for CREATE TABLE TEST (ID BIGSERIAL) for PostgreSQL compatibility. Patch from Jesse Long.
changelog_1230_li=Issue 274\: Sybase/MSSQLServer compatibility - Add GETDATE and CHARINDEX system functions changelog_1230_li=Add new collation command SET BINARY_COLLATION UNSIGNED, helps with people testing BINARY columns in MySQL mode.
changelog_1231_li=Issue 274\: Sybase/MSSQLServer compatibility - swap parameters of CONVERT function. changelog_1231_li=Issue 453\: ABBA race conditions in TABLE LINK connection sharing.
changelog_1232_li=Issue 274\: Sybase/MSSQLServer compatibility - support index clause e.g. "select * from test (index table1_index)" changelog_1232_li=Issue 449\: Postgres Serial data type should not automatically be marked as primary key
changelog_1233_li=Fix bug in Optimizing SELECT * FROM A WHERE X\=1 OR X\=2 OR X\=3 into SELECT * FROM A WHERE X IN (1,2,3) changelog_1233_li=Issue 406\: Support "select h2version()"
changelog_1234_li=Issue 442\: Groovy patch for SourceCompiler (function ALIAS) changelog_1234_li=Issue 389\: When there is a multi-column primary key, H2 does not seem to always pick the right index
changelog_1235_li=Issue 459\: Improve LOB documentation changelog_1235_li=Issue 305\: Implement SELECT ... FOR FETCH ONLY
changelog_1236_h2=Version 1.3.171 (2013-03-17) changelog_1236_li=Issue 274\: Sybase/MSSQLServer compatibility - Add GETDATE and CHARINDEX system functions
changelog_1237_li=Security\: the TCP server did not correctly restrict access rights of clients in some cases. This was specially a problem when using the flag "tcpAllowOthers". changelog_1237_li=Issue 274\: Sybase/MSSQLServer compatibility - swap parameters of CONVERT function.
changelog_1238_li=H2 Console\: the session timeout can now be configured using the system property "h2.consoleTimeout". changelog_1238_li=Issue 274\: Sybase/MSSQLServer compatibility - support index clause e.g. "select * from test (index table1_index)"
changelog_1239_li=Issue 431\: Improved compatibility with MySQL\: support for "ENGINE\=InnoDB charset\=UTF8" when creating a table. changelog_1239_li=Fix bug in Optimizing SELECT * FROM A WHERE X\=1 OR X\=2 OR X\=3 into SELECT * FROM A WHERE X IN (1,2,3)
changelog_1240_li=Issue 249\: Improved compatibility with MySQL in the MySQL mode\: now the methods DatabaseMetaData methods stores*Case*Identifiers return the same as MySQL when using the MySQL mode. changelog_1240_li=Issue 442\: Groovy patch for SourceCompiler (function ALIAS)
changelog_1241_li=Issue 434\: H2 Console didn't work in the Chrome browser due to a wrong viewport argument. changelog_1241_li=Issue 459\: Improve LOB documentation
changelog_1242_li=There was a possibility that the .lock.db file was not deleted when the database was closed, which could slow down opening the database. changelog_1242_h2=Version 1.3.171 (2013-03-17)
changelog_1243_li=The SQL script generated by the "script" command contained inconsistent newlines on Windows. changelog_1243_li=Security\: the TCP server did not correctly restrict access rights of clients in some cases. This was specially a problem when using the flag "tcpAllowOthers".
changelog_1244_li=When using trace level 4 (SLF4J) in the server mode, a directory "trace.db" and an empty file was created on the client side. This is no longer made. changelog_1244_li=H2 Console\: the session timeout can now be configured using the system property "h2.consoleTimeout".
changelog_1245_li=Optimize IN(...) queries\: there was a bug in version 1.3.170 if the type of the left hand side didn't match the type of the right hand side. Fixed. changelog_1245_li=Issue 431\: Improved compatibility with MySQL\: support for "ENGINE\=InnoDB charset\=UTF8" when creating a table.
changelog_1246_li=Optimize IN(...) queries\: there was a bug in version 1.3.170 for comparison of the type "X IN(NULL, NULL)". Fixed. changelog_1246_li=Issue 249\: Improved compatibility with MySQL in the MySQL mode\: now the methods DatabaseMetaData methods stores*Case*Identifiers return the same as MySQL when using the MySQL mode.
changelog_1247_li=Timestamps with timezone that were passed as a string were not always converted correctly. For example "2012-11-06T23\:00\:00.000Z" was converted to "2012-11-06" instead of to "2012-11-07" in the timezone CET. Thanks a lot to Steve Hruda for reporting the problem\! changelog_1247_li=Issue 434\: H2 Console didn't work in the Chrome browser due to a wrong viewport argument.
changelog_1248_li=New table engine "org.h2.mvstore.db.MVTableEngine" that internally uses the MVStore to persist data. To try it out, append ";DEFAULT_TABLE_ENGINE\=org.h2.mvstore.db.MVTableEngine" to the database URL. This is still very experimental, and many features are not supported yet. The data is stored in a file with the suffix ".mv.db". changelog_1248_li=There was a possibility that the .lock.db file was not deleted when the database was closed, which could slow down opening the database.
changelog_1249_li=New connection setting "DEFAULT_TABLE_ENGINE" to use a specific table engine if none is set explicitly. This is to simplify testing the MVStore table engine. changelog_1249_li=The SQL script generated by the "script" command contained inconsistent newlines on Windows.
changelog_1250_li=MVStore\: encrypted stores are now supported. Only standardized algorithms are used\: PBKDF2, SHA-256, XTS-AES, AES-128. changelog_1250_li=When using trace level 4 (SLF4J) in the server mode, a directory "trace.db" and an empty file was created on the client side. This is no longer made.
changelog_1251_li=MVStore\: improved API thanks to Simo Tripodi. changelog_1251_li=Optimize IN(...) queries\: there was a bug in version 1.3.170 if the type of the left hand side didn't match the type of the right hand side. Fixed.
changelog_1252_li=MVStore\: maps can now be renamed. changelog_1252_li=Optimize IN(...) queries\: there was a bug in version 1.3.170 for comparison of the type "X IN(NULL, NULL)". Fixed.
changelog_1253_li=MVStore\: store the file header also at the end of each chunk, which results in a further reduced number of write operations. changelog_1253_li=Timestamps with timezone that were passed as a string were not always converted correctly. For example "2012-11-06T23\:00\:00.000Z" was converted to "2012-11-06" instead of to "2012-11-07" in the timezone CET. Thanks a lot to Steve Hruda for reporting the problem\!
changelog_1254_li=MVStore\: a map implementation that supports concurrent operations. changelog_1254_li=New table engine "org.h2.mvstore.db.MVTableEngine" that internally uses the MVStore to persist data. To try it out, append ";DEFAULT_TABLE_ENGINE\=org.h2.mvstore.db.MVTableEngine" to the database URL. This is still very experimental, and many features are not supported yet. The data is stored in a file with the suffix ".mv.db".
changelog_1255_li=MVStore\: unified exception handling; the version is included in the messages. changelog_1255_li=New connection setting "DEFAULT_TABLE_ENGINE" to use a specific table engine if none is set explicitly. This is to simplify testing the MVStore table engine.
changelog_1256_li=MVStore\: old data is now retained for 45 seconds by default. changelog_1256_li=MVStore\: encrypted stores are now supported. Only standardized algorithms are used\: PBKDF2, SHA-256, XTS-AES, AES-128.
changelog_1257_li=MVStore\: compress is now disabled by default, and can be enabled on request. changelog_1257_li=MVStore\: improved API thanks to Simo Tripodi.
changelog_1258_li=Support ALTER TABLE ADD ... AFTER. Patch from Andrew Gaul (argaul at gmail.com). Fixes issue 401. changelog_1258_li=MVStore\: maps can now be renamed.
changelog_1259_li=Improved OSGi support. H2 now registers itself as a DataSourceFactory service. Fixes issue 365. changelog_1259_li=MVStore\: store the file header also at the end of each chunk, which results in a further reduced number of write operations.
changelog_1260_li=Add a DISK_SPACE_USED system function. Fixes issue 270. changelog_1260_li=MVStore\: a map implementation that supports concurrent operations.
changelog_1261_li=Fix a compile-time ambiguity when compiling with JDK7, thanks to a patch from Lukas Eder. changelog_1261_li=MVStore\: unified exception handling; the version is included in the messages.
changelog_1262_li=Supporting dropping an index for Lucene full-text indexes. changelog_1262_li=MVStore\: old data is now retained for 45 seconds by default.
changelog_1263_li=Optimized performance for SELECT ... ORDER BY X LIMIT Y OFFSET Z queries for in-memory databases using partial sort (by Sergi Vladykin). changelog_1263_li=MVStore\: compress is now disabled by default, and can be enabled on request.
changelog_1264_li=Experimental off-heap memory storage engine "nioMemFS\:" and "nioMemLZF\:", suggestion from Mark Addleman. changelog_1264_li=Support ALTER TABLE ADD ... AFTER. Patch from Andrew Gaul (argaul at gmail.com). Fixes issue 401.
changelog_1265_li=Issue 438\: JdbcDatabaseMetaData.getSchemas() is no longer supported as of 1.3.169. changelog_1265_li=Improved OSGi support. H2 now registers itself as a DataSourceFactory service. Fixes issue 365.
changelog_1266_li=MySQL compatibility\: support for ALTER TABLE tableName MODIFY [COLUMN] columnName columnDef. Patch from Ville Koskela. changelog_1266_li=Add a DISK_SPACE_USED system function. Fixes issue 270.
changelog_1267_li=Issue 404\: SHOW COLUMNS FROM tableName does not work with ALLOW_LITERALS\=NUMBERS. changelog_1267_li=Fix a compile-time ambiguity when compiling with JDK7, thanks to a patch from Lukas Eder.
changelog_1268_li=Throw an explicit error to make it clear we don't support the TRIGGER combination of SELECT and FOR EACH ROW. changelog_1268_li=Supporting dropping an index for Lucene full-text indexes.
changelog_1269_li=Issue 439\: Utils.sortTopN does not handle single-element arrays. changelog_1269_li=Optimized performance for SELECT ... ORDER BY X LIMIT Y OFFSET Z queries for in-memory databases using partial sort (by Sergi Vladykin).
changelog_1270_li=Experimental off-heap memory storage engine "nioMemFS\:" and "nioMemLZF\:", suggestion from Mark Addleman.
changelog_1271_li=Issue 438\: JdbcDatabaseMetaData.getSchemas() is no longer supported as of 1.3.169.
changelog_1272_li=MySQL compatibility\: support for ALTER TABLE tableName MODIFY [COLUMN] columnName columnDef. Patch from Ville Koskela.
changelog_1273_li=Issue 404\: SHOW COLUMNS FROM tableName does not work with ALLOW_LITERALS\=NUMBERS.
changelog_1274_li=Throw an explicit error to make it clear we don't support the TRIGGER combination of SELECT and FOR EACH ROW.
changelog_1275_li=Issue 439\: Utils.sortTopN does not handle single-element arrays.
cheatSheet_1000_h1=H2 Database Engine Cheat Sheet cheatSheet_1000_h1=H2 Database Engine Cheat Sheet
cheatSheet_1001_h2=Using H2 cheatSheet_1001_h2=Using H2
cheatSheet_1002_a=H2 cheatSheet_1002_a=H2
...@@ -3457,7 +3463,7 @@ roadmap_1300_li=Java Service Wrapper\: try http\://yajsw.sourceforge.net/ ...@@ -3457,7 +3463,7 @@ roadmap_1300_li=Java Service Wrapper\: try http\://yajsw.sourceforge.net/
roadmap_1301_li=Batch parameter for INSERT, UPDATE, and DELETE, and commit after each batch. See also MySQL DELETE. roadmap_1301_li=Batch parameter for INSERT, UPDATE, and DELETE, and commit after each batch. See also MySQL DELETE.
roadmap_1302_li=MySQL compatibility\: support ALTER TABLE .. MODIFY COLUMN. roadmap_1302_li=MySQL compatibility\: support ALTER TABLE .. MODIFY COLUMN.
roadmap_1303_li=Use a lazy and auto-close input stream (open resource when reading, close on eof). roadmap_1303_li=Use a lazy and auto-close input stream (open resource when reading, close on eof).
roadmap_1304_li=PostgreSQL compatibility\: generate_series. roadmap_1304_li=PostgreSQL compatibility\: generate_series (as an alias for system_range).
roadmap_1305_li=Connection pool\: 'reset session' command (delete temp tables, rollback, auto-commit true). roadmap_1305_li=Connection pool\: 'reset session' command (delete temp tables, rollback, auto-commit true).
roadmap_1306_li=Improve SQL documentation, see http\://www.w3schools.com/sql/ roadmap_1306_li=Improve SQL documentation, see http\://www.w3schools.com/sql/
roadmap_1307_li=MySQL compatibility\: DatabaseMetaData.stores*() methods should return the same values. Test with SquirrelSQL. roadmap_1307_li=MySQL compatibility\: DatabaseMetaData.stores*() methods should return the same values. Test with SquirrelSQL.
......
...@@ -210,7 +210,7 @@ public class Database implements DataHandler { ...@@ -210,7 +210,7 @@ public class Database implements DataHandler {
Constants.CACHE_SIZE_DEFAULT); Constants.CACHE_SIZE_DEFAULT);
this.cacheSize = this.cacheSize =
ci.getProperty("CACHE_SIZE", defaultCacheSize); ci.getProperty("CACHE_SIZE", defaultCacheSize);
this.pageSize = ci.getProperty("PAGE_SIZE", this.pageSize = ci.getProperty("PAGE_SIZE",
Constants.DEFAULT_PAGE_SIZE); Constants.DEFAULT_PAGE_SIZE);
if ("r".equals(accessModeData)) { if ("r".equals(accessModeData)) {
readOnly = true; readOnly = true;
......
...@@ -250,7 +250,8 @@ public class SysProperties { ...@@ -250,7 +250,8 @@ public class SysProperties {
Utils.getProperty("h2.maxReconnect", 3); Utils.getProperty("h2.maxReconnect", 3);
/** /**
* System property <code>h2.maxMemoryRows</code> (default: 40000 per GB of available RAM).<br /> * System property <code>h2.maxMemoryRows</code>
* (default: 40000 per GB of available RAM).<br />
* The default maximum number of rows to be kept in memory in a result set. * The default maximum number of rows to be kept in memory in a result set.
*/ */
public static final int MAX_MEMORY_ROWS = public static final int MAX_MEMORY_ROWS =
...@@ -534,10 +535,12 @@ public class SysProperties { ...@@ -534,10 +535,12 @@ public class SysProperties {
public static String getScriptDirectory() { public static String getScriptDirectory() {
return Utils.getProperty(H2_SCRIPT_DIRECTORY, ""); return Utils.getProperty(H2_SCRIPT_DIRECTORY, "");
} }
/** /**
* This method attempts to auto-scale some of our properties to take advantage of more powerful machines out of the box. * This method attempts to auto-scale some of our properties to take
* We assume that our default properties are set correctly for approx. 1G of memory, and scale them up if we have more. * advantage of more powerful machines out of the box. We assume that our
* default properties are set correctly for approx. 1G of memory, and scale
* them up if we have more.
*/ */
private static int getAutoScaledForMemoryProperty(String key, int defaultValue) { private static int getAutoScaledForMemoryProperty(String key, int defaultValue) {
String s = Utils.getProperty(key, null); String s = Utils.getProperty(key, null);
...@@ -550,5 +553,5 @@ public class SysProperties { ...@@ -550,5 +553,5 @@ public class SysProperties {
} }
return Utils.scaleForAvailableMemory(defaultValue); return Utils.scaleForAvailableMemory(defaultValue);
} }
} }
...@@ -361,7 +361,7 @@ public class FileStore { ...@@ -361,7 +361,7 @@ public class FileStore {
/** /**
* Get the file name. * Get the file name.
* *
* @return the file name * @return the file name
*/ */
public String getFileName() { public String getFileName() {
......
...@@ -299,7 +299,7 @@ public class MVStore { ...@@ -299,7 +299,7 @@ public class MVStore {
o = config.get("autoCompactFillRate"); o = config.get("autoCompactFillRate");
autoCompactFillRate = o == null ? 80 : (Integer) o; autoCompactFillRate = o == null ? 80 : (Integer) o;
char[] encryptionKey = (char[]) config.get("encryptionKey"); char[] encryptionKey = (char[]) config.get("encryptionKey");
try { try {
if (!fileStoreIsProvided) { if (!fileStoreIsProvided) {
...@@ -1371,7 +1371,8 @@ public class MVStore { ...@@ -1371,7 +1371,8 @@ public class MVStore {
* Chunks are overwritten irrespective of the current retention time. Before * Chunks are overwritten irrespective of the current retention time. Before
* overwriting chunks and before resizing the file, syncFile() is called. * overwriting chunks and before resizing the file, syncFile() is called.
* *
* @param targetFillRate do nothing if the file store fill rate is higher than this * @param targetFillRate do nothing if the file store fill rate is higher
* than this
* @param moveSize the number of bytes to move * @param moveSize the number of bytes to move
* @return if anything was written * @return if anything was written
*/ */
...@@ -2537,7 +2538,7 @@ public class MVStore { ...@@ -2537,7 +2538,7 @@ public class MVStore {
public Builder autoCommitBufferSize(int kb) { public Builder autoCommitBufferSize(int kb) {
return set("autoCommitBufferSize", kb); return set("autoCommitBufferSize", kb);
} }
/** /**
* Set the auto-compact target fill rate. If the average fill rate (the * Set the auto-compact target fill rate. If the average fill rate (the
* percentage of the storage space that contains active data) of the * percentage of the storage space that contains active data) of the
...@@ -2548,7 +2549,7 @@ public class MVStore { ...@@ -2548,7 +2549,7 @@ public class MVStore {
* <p> * <p>
* The default value is 80 (80%). The value 0 disables auto-compacting. * The default value is 80 (80%). The value 0 disables auto-compacting.
* <p> * <p>
* *
* @param percent the target fill rate * @param percent the target fill rate
* @return this * @return this
*/ */
...@@ -2673,7 +2674,7 @@ public class MVStore { ...@@ -2673,7 +2674,7 @@ public class MVStore {
* Please note that any kind of store (including an off-heap store) is * Please note that any kind of store (including an off-heap store) is
* considered a "persistence", while an "in-memory store" means objects * considered a "persistence", while an "in-memory store" means objects
* are not persisted and fully kept in the JVM heap. * are not persisted and fully kept in the JVM heap.
* *
* @param store the file store * @param store the file store
* @return this * @return this
*/ */
......
...@@ -283,7 +283,7 @@ public class MVStoreTool { ...@@ -283,7 +283,7 @@ public class MVStoreTool {
pw.printf("Chunk length: %d\n", chunkLength); pw.printf("Chunk length: %d\n", chunkLength);
pw.printf("Chunk count: %d\n", chunks.size()); pw.printf("Chunk count: %d\n", chunks.size());
pw.printf("Used space: %d%%\n", 100 * chunkLength / fileLength); pw.printf("Used space: %d%%\n", 100 * chunkLength / fileLength);
pw.printf("Chunk fill rate: %d%%\n", maxLength == 0 ? 100 : pw.printf("Chunk fill rate: %d%%\n", maxLength == 0 ? 100 :
100 * maxLengthLive / maxLength); 100 * maxLengthLive / maxLength);
for (Entry<Integer, Chunk> e : chunks.entrySet()) { for (Entry<Integer, Chunk> e : chunks.entrySet()) {
Chunk c = e.getValue(); Chunk c = e.getValue();
...@@ -316,7 +316,7 @@ public class MVStoreTool { ...@@ -316,7 +316,7 @@ public class MVStoreTool {
* the new file is renamed to ".newFile", then the old file is removed, and * the new file is renamed to ".newFile", then the old file is removed, and
* the new file is renamed. This might be interrupted, so it's better to * the new file is renamed. This might be interrupted, so it's better to
* compactCleanUp before opening a store, in case this method was used. * compactCleanUp before opening a store, in case this method was used.
* *
* @param fileName the file name * @param fileName the file name
* @param compress whether to compress the data * @param compress whether to compress the data
*/ */
...@@ -334,13 +334,13 @@ public class MVStoreTool { ...@@ -334,13 +334,13 @@ public class MVStoreTool {
FileUtils.move(newName, fileName); FileUtils.move(newName, fileName);
} }
} }
/** /**
* Clean up if needed, in a case a compact operation was interrupted due to * Clean up if needed, in a case a compact operation was interrupted due to
* killing the process or a power failure. This will delete temporary files * killing the process or a power failure. This will delete temporary files
* (if any), and in case atomic file replacements were not used, rename the * (if any), and in case atomic file replacements were not used, rename the
* new file. * new file.
* *
* @param fileName the file name * @param fileName the file name
*/ */
public static void compactCleanUp(String fileName) { public static void compactCleanUp(String fileName) {
...@@ -363,6 +363,7 @@ public class MVStoreTool { ...@@ -363,6 +363,7 @@ public class MVStoreTool {
* *
* @param sourceFileName the name of the source store * @param sourceFileName the name of the source store
* @param targetFileName the name of the target store * @param targetFileName the name of the target store
* @param compress whether to compress the data
*/ */
public static void compact(String sourceFileName, String targetFileName, boolean compress) { public static void compact(String sourceFileName, String targetFileName, boolean compress) {
MVStore source = new MVStore.Builder(). MVStore source = new MVStore.Builder().
...@@ -380,7 +381,7 @@ public class MVStoreTool { ...@@ -380,7 +381,7 @@ public class MVStoreTool {
target.close(); target.close();
source.close(); source.close();
} }
/** /**
* Copy all live pages from the source store to the target store. * Copy all live pages from the source store to the target store.
* *
......
...@@ -333,7 +333,7 @@ public class MVSecondaryIndex extends BaseIndex implements MVIndex { ...@@ -333,7 +333,7 @@ public class MVSecondaryIndex extends BaseIndex implements MVIndex {
* @return the row * @return the row
*/ */
SearchRow convertToSearchRow(ValueArray key) { SearchRow convertToSearchRow(ValueArray key) {
Value[] array = key.getList(); Value[] array = key.getList();
SearchRow searchRow = mvTable.getTemplateRow(); SearchRow searchRow = mvTable.getTemplateRow();
searchRow.setKey((array[array.length - 1]).getLong()); searchRow.setKey((array[array.length - 1]).getLong());
Column[] cols = getColumns(); Column[] cols = getColumns();
......
...@@ -124,8 +124,8 @@ public abstract class FilePath { ...@@ -124,8 +124,8 @@ public abstract class FilePath {
* Rename a file if this is allowed. * Rename a file if this is allowed.
* *
* @param newName the new fully qualified file name * @param newName the new fully qualified file name
* @param atomicReplace whether the move should be atomic, and the target file * @param atomicReplace whether the move should be atomic, and the target
* should be replaced if it exists and replacing is possible * file should be replaced if it exists and replacing is possible
*/ */
public abstract void moveTo(FilePath newName, boolean atomicReplace); public abstract void moveTo(FilePath newName, boolean atomicReplace);
......
...@@ -90,7 +90,8 @@ public class FilePathDisk extends FilePath { ...@@ -90,7 +90,8 @@ public class FilePathDisk extends FilePath {
name + " (not found)", name + " (not found)",
newName.name); newName.name);
} }
// Java 7: use java.nio.file.Files.move(Path source, Path target, CopyOption... options) // Java 7: use java.nio.file.Files.move(Path source, Path target,
// CopyOption... options)
// with CopyOptions "REPLACE_EXISTING" and "ATOMIC_MOVE". // with CopyOptions "REPLACE_EXISTING" and "ATOMIC_MOVE".
if (atomicReplace) { if (atomicReplace) {
boolean ok = oldFile.renameTo(newFile); boolean ok = oldFile.renameTo(newFile);
......
...@@ -49,7 +49,7 @@ public class FilePathMem extends FilePath { ...@@ -49,7 +49,7 @@ public class FilePathMem extends FilePath {
@Override @Override
public void moveTo(FilePath newName, boolean atomicReplace) { public void moveTo(FilePath newName, boolean atomicReplace) {
synchronized (MEMORY_FILES) { synchronized (MEMORY_FILES) {
if (!atomicReplace && !newName.name.equals(name) && if (!atomicReplace && !newName.name.equals(name) &&
MEMORY_FILES.containsKey(newName.name)) { MEMORY_FILES.containsKey(newName.name)) {
throw DbException.get(ErrorCode.FILE_RENAME_FAILED_2, throw DbException.get(ErrorCode.FILE_RENAME_FAILED_2,
new String[] { name, newName + " (exists)" }); new String[] { name, newName + " (exists)" });
......
...@@ -48,7 +48,7 @@ public class FilePathNioMem extends FilePath { ...@@ -48,7 +48,7 @@ public class FilePathNioMem extends FilePath {
@Override @Override
public void moveTo(FilePath newName, boolean atomicReplace) { public void moveTo(FilePath newName, boolean atomicReplace) {
synchronized (MEMORY_FILES) { synchronized (MEMORY_FILES) {
if (!atomicReplace && !name.equals(newName.name) && if (!atomicReplace && !name.equals(newName.name) &&
MEMORY_FILES.containsKey(newName.name)) { MEMORY_FILES.containsKey(newName.name)) {
throw DbException.get(ErrorCode.FILE_RENAME_FAILED_2, throw DbException.get(ErrorCode.FILE_RENAME_FAILED_2,
new String[] { name, newName + " (exists)" }); new String[] { name, newName + " (exists)" });
......
...@@ -104,19 +104,19 @@ public class FileUtils { ...@@ -104,19 +104,19 @@ public class FileUtils {
/** /**
* Rename a file if this is allowed. This method is similar to Java 7 * Rename a file if this is allowed. This method is similar to Java 7
* <code>java.nio.file.Files.move</code>. * <code>java.nio.file.Files.move</code>.
* *
* @param source the old fully qualified file name * @param source the old fully qualified file name
* @param target the new fully qualified file name * @param target the new fully qualified file name
*/ */
public static void move(String source, String target) { public static void move(String source, String target) {
FilePath.get(source).moveTo(FilePath.get(target), false); FilePath.get(source).moveTo(FilePath.get(target), false);
} }
/** /**
* Rename a file if this is allowed, and try to atomically replace an * Rename a file if this is allowed, and try to atomically replace an
* existing file. This method is similar to Java 7 * existing file. This method is similar to Java 7
* <code>java.nio.file.Files.move</code>. * <code>java.nio.file.Files.move</code>.
* *
* @param source the old fully qualified file name * @param source the old fully qualified file name
* @param target the new fully qualified file name * @param target the new fully qualified file name
*/ */
......
...@@ -736,11 +736,12 @@ public class Utils { ...@@ -736,11 +736,12 @@ public class Utils {
} }
return defaultValue; return defaultValue;
} }
/** /**
* Scale the value with the available memory. If 1 GB of RAM is available, * Scale the value with the available memory. If 1 GB of RAM is available,
* the value is returned, if 2 GB are available, then twice the value, and so on. * the value is returned, if 2 GB are available, then twice the value, and
* * so on.
*
* @param value the value to scale * @param value the value to scale
* @return the scaled value * @return the scaled value
*/ */
...@@ -753,12 +754,14 @@ public class Utils { ...@@ -753,12 +754,14 @@ public class Utils {
try { try {
OperatingSystemMXBean mxBean = ManagementFactory OperatingSystemMXBean mxBean = ManagementFactory
.getOperatingSystemMXBean(); .getOperatingSystemMXBean();
// this method is only available on the class com.sun.management.OperatingSystemMXBean, which mxBean // this method is only available on the class
// is an instance of under the Oracle JDK, but it is not present on Android and other JDK's // com.sun.management.OperatingSystemMXBean, which mxBean
// is an instance of under the Oracle JDK, but it is not present on
// Android and other JDK's
Method method = Class.forName( Method method = Class.forName(
"com.sun.management.OperatingSystemMXBean"). "com.sun.management.OperatingSystemMXBean").
getMethod("getTotalPhysicalMemorySize"); getMethod("getTotalPhysicalMemorySize");
long physicalMemorySize = ((Number) method.invoke(mxBean)).longValue(); long physicalMemorySize = ((Number) method.invoke(mxBean)).longValue();
return (int) (value * physicalMemorySize / (1024 * 1024 * 1024)); return (int) (value * physicalMemorySize / (1024 * 1024 * 1024));
} catch (Exception e) { } catch (Exception e) {
// ignore // ignore
......
...@@ -111,17 +111,17 @@ public class TestMVStore extends TestBase { ...@@ -111,17 +111,17 @@ public class TestMVStore extends TestBase {
// longer running tests // longer running tests
testLargerThan2G(); testLargerThan2G();
} }
private void testProvidedFileStoreNotOpenedAndClosed() { private void testProvidedFileStoreNotOpenedAndClosed() {
final AtomicInteger openClose = new AtomicInteger(); final AtomicInteger openClose = new AtomicInteger();
FileStore fileStore = new OffHeapStore() { FileStore fileStore = new OffHeapStore() {
@Override @Override
public void open(String fileName, boolean readOnly, char[] encryptionKey) { public void open(String fileName, boolean readOnly, char[] encryptionKey) {
openClose.incrementAndGet(); openClose.incrementAndGet();
super.open(fileName, readOnly, encryptionKey); super.open(fileName, readOnly, encryptionKey);
} }
@Override @Override
public void close() { public void close() {
openClose.incrementAndGet(); openClose.incrementAndGet();
......
...@@ -75,7 +75,7 @@ public class TestMVStoreTool extends TestBase { ...@@ -75,7 +75,7 @@ public class TestMVStoreTool extends TestBase {
} }
} }
s.close(); s.close();
MVStoreTool.compact(fileName, fileName + ".new", false); MVStoreTool.compact(fileName, fileName + ".new", false);
MVStoreTool.compact(fileName, fileName + ".new.compress", true); MVStoreTool.compact(fileName, fileName + ".new.compress", true);
MVStore s1 = new MVStore.Builder(). MVStore s1 = new MVStore.Builder().
...@@ -92,7 +92,8 @@ public class TestMVStoreTool extends TestBase { ...@@ -92,7 +92,8 @@ public class TestMVStoreTool extends TestBase {
long size1 = FileUtils.size(fileName); long size1 = FileUtils.size(fileName);
long size2 = FileUtils.size(fileName + ".new"); long size2 = FileUtils.size(fileName + ".new");
long size3 = FileUtils.size(fileName + ".new.compress"); long size3 = FileUtils.size(fileName + ".new.compress");
assertTrue("size1: " + size1 + " size2: " + size2 + " size3: " + size3, size2 < size1 && size3 < size2); assertTrue("size1: " + size1 + " size2: " + size2 + " size3: " + size3,
size2 < size1 && size3 < size2);
MVStoreTool.compact(fileName, false); MVStoreTool.compact(fileName, false);
assertEquals(size2, FileUtils.size(fileName)); assertEquals(size2, FileUtils.size(fileName));
MVStoreTool.compact(fileName, true); MVStoreTool.compact(fileName, true);
...@@ -112,7 +113,7 @@ public class TestMVStoreTool extends TestBase { ...@@ -112,7 +113,7 @@ public class TestMVStoreTool extends TestBase {
Object x = mb.get(e.getKey()); Object x = mb.get(e.getKey());
assertEquals(e.getValue().toString(), x.toString()); assertEquals(e.getValue().toString(), x.toString());
} }
} else { } else {
MVMap<?, ?> ma = a.openMap(mapName); MVMap<?, ?> ma = a.openMap(mapName);
MVMap<?, ?> mb = a.openMap(mapName); MVMap<?, ?> mb = a.openMap(mapName);
......
...@@ -350,33 +350,33 @@ public class TestFileSystem extends TestBase { ...@@ -350,33 +350,33 @@ public class TestFileSystem extends TestBase {
} }
private void testReadOnly(final String f) throws IOException { private void testReadOnly(final String f) throws IOException {
new AssertThrows(IOException.class) { new AssertThrows(IOException.class) {
@Override @Override
public void test() throws IOException { public void test() throws IOException {
FileUtils.newOutputStream(f, false); FileUtils.newOutputStream(f, false);
}}; }};
new AssertThrows(DbException.class) { new AssertThrows(DbException.class) {
@Override @Override
public void test() { public void test() {
FileUtils.move(f, f); FileUtils.move(f, f);
}}; }};
new AssertThrows(DbException.class) { new AssertThrows(DbException.class) {
@Override @Override
public void test() { public void test() {
FileUtils.move(f, f); FileUtils.move(f, f);
}}; }};
new AssertThrows(IOException.class) { new AssertThrows(IOException.class) {
@Override @Override
public void test() throws IOException { public void test() throws IOException {
FileUtils.createTempFile(f, ".tmp", false, false); FileUtils.createTempFile(f, ".tmp", false, false);
}}; }};
final FileChannel channel = FileUtils.open(f, "r"); final FileChannel channel = FileUtils.open(f, "r");
new AssertThrows(IOException.class) { new AssertThrows(IOException.class) {
@Override @Override
public void test() throws IOException { public void test() throws IOException {
channel.write(ByteBuffer.allocate(1)); channel.write(ByteBuffer.allocate(1));
}}; }};
new AssertThrows(IOException.class) { new AssertThrows(IOException.class) {
@Override @Override
public void test() throws IOException { public void test() throws IOException {
channel.truncate(0); channel.truncate(0);
...@@ -419,12 +419,12 @@ public class TestFileSystem extends TestBase { ...@@ -419,12 +419,12 @@ public class TestFileSystem extends TestBase {
FileUtils.delete(fileName); FileUtils.delete(fileName);
} }
if (FileUtils.createFile(fileName)) { if (FileUtils.createFile(fileName)) {
new AssertThrows(DbException.class) { new AssertThrows(DbException.class) {
@Override @Override
public void test() { public void test() {
FileUtils.createDirectory(fileName); FileUtils.createDirectory(fileName);
}}; }};
new AssertThrows(DbException.class) { new AssertThrows(DbException.class) {
@Override @Override
public void test() { public void test() {
FileUtils.createDirectories(fileName + "/test"); FileUtils.createDirectories(fileName + "/test");
...@@ -442,14 +442,14 @@ public class TestFileSystem extends TestBase { ...@@ -442,14 +442,14 @@ public class TestFileSystem extends TestBase {
if (FileUtils.createFile(fileName)) { if (FileUtils.createFile(fileName)) {
FileUtils.move(fileName, fileName2); FileUtils.move(fileName, fileName2);
FileUtils.createFile(fileName); FileUtils.createFile(fileName);
new AssertThrows(DbException.class) { new AssertThrows(DbException.class) {
@Override @Override
public void test() { public void test() {
FileUtils.move(fileName2, fileName); FileUtils.move(fileName2, fileName);
}}; }};
FileUtils.delete(fileName); FileUtils.delete(fileName);
FileUtils.delete(fileName2); FileUtils.delete(fileName2);
new AssertThrows(DbException.class) { new AssertThrows(DbException.class) {
@Override @Override
public void test() { public void test() {
FileUtils.move(fileName, fileName2); FileUtils.move(fileName, fileName2);
...@@ -464,32 +464,32 @@ public class TestFileSystem extends TestBase { ...@@ -464,32 +464,32 @@ public class TestFileSystem extends TestBase {
} }
if (FileUtils.createFile(fileName)) { if (FileUtils.createFile(fileName)) {
final FileChannel channel = FileUtils.open(fileName, "rw"); final FileChannel channel = FileUtils.open(fileName, "rw");
new AssertThrows(UnsupportedOperationException.class) { new AssertThrows(UnsupportedOperationException.class) {
@Override @Override
public void test() throws IOException { public void test() throws IOException {
channel.map(MapMode.PRIVATE, 0, channel.size()); channel.map(MapMode.PRIVATE, 0, channel.size());
}}; }};
new AssertThrows(UnsupportedOperationException.class) { new AssertThrows(UnsupportedOperationException.class) {
@Override @Override
public void test() throws IOException { public void test() throws IOException {
channel.read(new ByteBuffer[]{ByteBuffer.allocate(10)}, 0, 0); channel.read(new ByteBuffer[]{ByteBuffer.allocate(10)}, 0, 0);
}}; }};
new AssertThrows(UnsupportedOperationException.class) { new AssertThrows(UnsupportedOperationException.class) {
@Override @Override
public void test() throws IOException { public void test() throws IOException {
channel.write(new ByteBuffer[]{ByteBuffer.allocate(10)}, 0, 0); channel.write(new ByteBuffer[]{ByteBuffer.allocate(10)}, 0, 0);
}}; }};
new AssertThrows(UnsupportedOperationException.class) { new AssertThrows(UnsupportedOperationException.class) {
@Override @Override
public void test() throws IOException { public void test() throws IOException {
channel.transferFrom(channel, 0, 0); channel.transferFrom(channel, 0, 0);
}}; }};
new AssertThrows(UnsupportedOperationException.class) { new AssertThrows(UnsupportedOperationException.class) {
@Override @Override
public void test() throws IOException { public void test() throws IOException {
channel.transferTo(0, 0, channel); channel.transferTo(0, 0, channel);
}}; }};
new AssertThrows(UnsupportedOperationException.class) { new AssertThrows(UnsupportedOperationException.class) {
@Override @Override
public void test() throws IOException { public void test() throws IOException {
channel.lock(); channel.lock();
......
...@@ -761,3 +761,4 @@ reinstated uninteresting dead defendant doctrines beat factual fair suspended ...@@ -761,3 +761,4 @@ reinstated uninteresting dead defendant doctrines beat factual fair suspended
exploit noise ongoing disclaimers shrinks remedy party desirable timely construe exploit noise ongoing disclaimers shrinks remedy party desirable timely construe
deque synchronizers affero kevent nikolaj hohmuth grajcar jens fogh hostnames deque synchronizers affero kevent nikolaj hohmuth grajcar jens fogh hostnames
operate resized jni yjp ownable starvation reaper biased introduce epoll hangs operate resized jni yjp ownable starvation reaper biased introduce epoll hangs
compaction aggressive powerful
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论