提交 065aa507 authored 作者: Thomas Mueller's avatar Thomas Mueller

Prepare release.

上级 121598c2
......@@ -2930,7 +2930,7 @@ CHAR(65)
CONCAT(string, string [,...])
","
Combines strings.
Unlike with the operator ""||"", NULL parameters are ignored,
Unlike with the operator ""||"", NULL parameters are ignored,
and do not cause the result to become NULL.
This method returns a string.
","
......@@ -2941,7 +2941,7 @@ CONCAT(NAME, '!')
CONCAT_WS(separatorString, string, string [,...])
","
Combines strings with separator.
Unlike with the operator ""||"", NULL parameters are ignored,
Unlike with the operator ""||"", NULL parameters are ignored,
and do not cause the result to become NULL.
This method returns a string.
","
......
......@@ -53,15 +53,15 @@ Change Log
</li><li>Fix a NullPointerException when attempting to add foreign key reference to a view.
</li><li>Add sufficient ClientInfo support to our javax.sql.Connection implementation to make WebSphere happy.
</li><li>Issue 482: class LobStorageBackend$LobInputStream does not override the method InputStream.available().
</li><li>Fix corruption resulting from a mix of the "WRITE_DELAY=0" option
</li><li>Fix corruption resulting from a mix of the "WRITE_DELAY=0" option
and "SELECT DISTINCT" queries that don't fit in memory.
</li><li>Fix the combination of updating a table which contains an LOB,
</li><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.
</li><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"
</li><li>MySQL compatibiltity, support the "AUTO_INCREMENT=3" part of the CREATE TABLE statement.
</li><li>Issue 486: MySQL compatibiltity, support the "DEFAULT CHARSET" part of the CREATE TABLE statement.
</li><li>MySQL compatibility, support the "AUTO_INCREMENT=3" part of the CREATE TABLE statement.
</li><li>Issue 486: MySQL compatibility, support the "DEFAULT CHARSET" part of the CREATE TABLE statement.
</li><li>Issue 487: support the MySQL "SET foreign_key_checks = 0" command
</li><li>Issue 490: support MySQL "USING BTREE" index declaration
</li><li>Issue 485: Database get corrupted when column is renamed for which check constraint was defined inside create table statement.
......
......@@ -1643,582 +1643,618 @@ Change Log
Next Version (unreleased)
@changelog_1002_li
Server mode: if there was an error while reading from a LOB, the session was closed in some cases.
Support empty statements that just contains a comment.
@changelog_1003_li
Issue 463: Driver name and version are now the same in OsgiDataSourceFactory and JdbcDatabaseMetaData.
Server mode: if there was an error while reading from a LOB, the session was closed in some cases.
@changelog_1004_li
JaQu: The data type VARCHAR is now (again) used for Strings (no longer TEXT, except when explicitly set).
Issue 463: Driver name and version are now the same in OsgiDataSourceFactory and JdbcDatabaseMetaData.
@changelog_1005_li
For in-memory databases, creating an index on a CLOB or BLOB column is no longer supported. This is to simplify the MVTableEngine.
JaQu: The data type VARCHAR is now (again) used for Strings (no longer TEXT, except when explicitly set).
@changelog_1006_li
New column "information_schema.tables.row_count_estimate".
For in-memory databases, creating an index on a CLOB or BLOB column is no longer supported. This is to simplify the MVTableEngine.
@changelog_1007_li
Issue 468: trunc(timestamp) could return the wrong value (+12 hours), and trunc(number) throw a NullPointerException.
New column "information_schema.tables.row_count_estimate".
@changelog_1008_li
The expression trunc(number) threw a NullPointerException.
Issue 468: trunc(timestamp) could return the wrong value (+12 hours), and trunc(number) throw a NullPointerException.
@changelog_1009_li
Fixed a deadlock when updating LOB's concurrently. See TestLob.testDeadlock2().
The expression trunc(number) threw a NullPointerException.
@changelog_1010_li
Fixed a deadlock related to very large temporary result sets.
Fixed a deadlock when updating LOB's concurrently. See TestLob.testDeadlock2().
@changelog_1011_li
Add "-list" command line option to Shell tool so that result-list-mode can be triggered when reading from a file.
Fixed a deadlock related to very large temporary result sets.
@changelog_1012_li
Issue 474: H2 MySQL Compatibility code fails to ignore "COMMENT" in CREATE TABLE, patch from Aaron Azeckoski.
Add "-list" command line option to Shell tool so that result-list-mode can be triggered when reading from a file.
@changelog_1013_li
Issue 476: Broken link in jaqu.html
Issue 474: H2 MySQL Compatibility code fails to ignore "COMMENT" in CREATE TABLE, patch from Aaron Azeckoski.
@changelog_1014_li
Fix potential UTF8 encoding issue in org.h2.store.FileStore, reported by Juerg Spiess.
Issue 476: Broken link in jaqu.html
@changelog_1015_li
Improve error message when check constraint is broken, test case from Gili (cowwoc).
Fix potential UTF8 encoding issue in org.h2.store.FileStore, reported by Juerg Spiess.
@changelog_1016_li
Improve error message when we have a unique constraint violation, displays the offending key in the error message.
Improve error message when check constraint is broken, test case from Gili (cowwoc).
@changelog_1017_li
Issue 478: Support for "SHOW TRANSACTION ISOLATION LEVEL", patch from Andrew Franklin.
Improve error message when we have a unique constraint violation, displays the offending key in the error message.
@changelog_1018_li
Issue 475: PgServer: add support for CancelRequest, patch from Andrew Franklin.
Issue 478: Support for "SHOW TRANSACTION ISOLATION LEVEL", patch from Andrew Franklin.
@changelog_1019_li
Issue 473: PgServer missing -key option, patch from Andrew Franklin.
Issue 475: PgServer: add support for CancelRequest, patch from Andrew Franklin.
@changelog_1020_li
Issue 471: CREATE VIEW does not check user rights, patch from Andrew Franklin.
Issue 473: PgServer missing -key option, patch from Andrew Franklin.
@changelog_1021_li
Issue 477: PgServer binary transmission of query params is unimplemented, patch from Andrew Franklin.
Issue 471: CREATE VIEW does not check user rights, patch from Andrew Franklin.
@changelog_1022_li
Issue 479: Support for SUBSTRING without a FROM condition, patch from Andrew Franklin.
Issue 477: PgServer binary transmission of query params is unimplemented, patch from Andrew Franklin.
@changelog_1023_li
Issue 472: PgServer does not work with any recent Postgres JDBC driver, patch from Andrew Franklin.
Issue 479: Support for SUBSTRING without a FROM condition, patch from Andrew Franklin.
@changelog_1024_li
Add syntax for passing additional parameters into custom TableEngine implementations.
Issue 472: PgServer does not work with any recent Postgres JDBC driver, patch from Andrew Franklin.
@changelog_1025_li
Issue 480: Bugfix post issue 475, 477, patch from Andrew Franklin.
Add syntax for passing additional parameters into custom TableEngine implementations.
@changelog_1026_li
Issue 481: Further extensions to PgServer to support better support PG JDBC, patch from Andrew Franklin.
Issue 480: Bugfix post issue 475, 477, patch from Andrew Franklin.
@changelog_1027_li
Add support for spatial datatype GEOMETRY.
Issue 481: Further extensions to PgServer to support better support PG JDBC, patch from Andrew Franklin.
@changelog_1028_li
Add support for in-memory spatial index.
Add support for spatial datatype GEOMETRY.
@changelog_1029_li
change the PageStore#changeCount field from an int to a long, to cope with databases with very high transaction rates.
Add support for in-memory spatial index.
@changelog_1030_li
Fix a NullPointerException when attempting to add foreign key reference to a view.
change the PageStore#changeCount field from an int to a long, to cope with databases with very high transaction rates.
@changelog_1031_li
Add sufficient ClientInfo support to our javax.sql.Connection implementation to make WebSphere happy.
Fix a NullPointerException when attempting to add foreign key reference to a view.
@changelog_1032_li
Add sufficient ClientInfo support to our javax.sql.Connection implementation to make WebSphere happy.
@changelog_1033_li
Issue 482: class LobStorageBackend$LobInputStream does not override the method InputStream.available().
@changelog_1033_h2
@changelog_1034_li
Fix corruption resulting from a mix of the "WRITE_DELAY=0" option and "SELECT DISTINCT" queries that don't fit in memory.
@changelog_1035_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_1036_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_1037_li
MySQL compatibility, support the "AUTO_INCREMENT=3" part of the CREATE TABLE statement.
@changelog_1038_li
Issue 486: MySQL compatibility, support the "DEFAULT CHARSET" part of the CREATE TABLE statement.
@changelog_1039_li
Issue 487: support the MySQL "SET foreign_key_checks = 0" command
@changelog_1040_li
Issue 490: support MySQL "USING BTREE" index declaration
@changelog_1041_li
Issue 485: Database get corrupted when column is renamed for which check constraint was defined inside create table statement.
@changelog_1042_li
Issue 499: support MySQL "UNIQUE KEY (ID) USING BTREE" constraint syntax
@changelog_1043_li
Issue 501: "CREATE TABLE .. WITH" not serialized, patch from nico.devel
@changelog_1044_li
Avoid problems with runtime-compiled ALIAS methods when people have set the JAVA_TOOL_OPTIONS environment variable.
@changelog_1045_h2
Version 1.3.172 (2013-05-25)
@changelog_1034_li
@changelog_1046_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_1035_li
@changelog_1047_li
The auto-analyze feature now only reads 1000 rows per table instead of 10000.
@changelog_1036_li
@changelog_1048_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_1037_li
@changelog_1049_li
Issue 454: Use Charset for type-safety.
@changelog_1038_li
@changelog_1050_li
Queries with both LIMIT and OFFSET could throw an IllegalArgumentException.
@changelog_1039_li
@changelog_1051_li
MVStore: multiple issues were fixed: 460, 461, 462, 464, 466.
@changelog_1040_li
@changelog_1052_li
MVStore: larger stores (multiple GB) are now much faster.
@changelog_1041_li
@changelog_1053_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_1042_li
@changelog_1054_li
Support TRUNC(timestamp) for improved Oracle compatibility.
@changelog_1043_li
@changelog_1055_li
Add support for CREATE TABLE TEST (ID BIGSERIAL) for PostgreSQL compatibility. Patch from Jesse Long.
@changelog_1044_li
@changelog_1056_li
Add new collation command SET BINARY_COLLATION UNSIGNED, helps with people testing BINARY columns in MySQL mode.
@changelog_1045_li
@changelog_1057_li
Issue 453: ABBA race conditions in TABLE LINK connection sharing.
@changelog_1046_li
@changelog_1058_li
Issue 449: Postgres Serial data type should not automatically be marked as primary key
@changelog_1047_li
@changelog_1059_li
Issue 406: Support "select h2version()"
@changelog_1048_li
@changelog_1060_li
Issue 389: When there is a multi-column primary key, H2 does not seem to always pick the right index
@changelog_1049_li
@changelog_1061_li
Issue 305: Implement SELECT ... FOR FETCH ONLY
@changelog_1050_li
@changelog_1062_li
Issue 274: Sybase/MSSQLServer compatibility - Add GETDATE and CHARINDEX system functions
@changelog_1051_li
@changelog_1063_li
Issue 274: Sybase/MSSQLServer compatibility - swap parameters of CONVERT function.
@changelog_1052_li
@changelog_1064_li
Issue 274: Sybase/MSSQLServer compatibility - support index clause e.g. "select * from test (index table1_index)"
@changelog_1053_li
@changelog_1065_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_1054_li
@changelog_1066_li
Issue 442: Groovy patch for SourceCompiler (function ALIAS)
@changelog_1055_li
@changelog_1067_li
Issue 459: Improve LOB documentation
@changelog_1056_h2
@changelog_1068_h2
Version 1.3.171 (2013-03-17)
@changelog_1057_li
@changelog_1069_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_1058_li
@changelog_1070_li
H2 Console: the session timeout can now be configured using the system property "h2.consoleTimeout".
@changelog_1059_li
@changelog_1071_li
Issue 431: Improved compatibility with MySQL: support for "ENGINE=InnoDB charset=UTF8" when creating a table.
@changelog_1060_li
@changelog_1072_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_1061_li
@changelog_1073_li
Issue 434: H2 Console didn't work in the Chrome browser due to a wrong viewport argument.
@changelog_1062_li
@changelog_1074_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_1063_li
@changelog_1075_li
The SQL script generated by the "script" command contained inconsistent newlines on Windows.
@changelog_1064_li
@changelog_1076_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_1065_li
@changelog_1077_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_1066_li
@changelog_1078_li
Optimize IN(...) queries: there was a bug in version 1.3.170 for comparison of the type "X IN(NULL, NULL)". Fixed.
@changelog_1067_li
@changelog_1079_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_1068_li
@changelog_1080_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_1069_li
@changelog_1081_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_1070_li
@changelog_1082_li
MVStore: encrypted stores are now supported. Only standardized algorithms are used: PBKDF2, SHA-256, XTS-AES, AES-128.
@changelog_1071_li
@changelog_1083_li
MVStore: improved API thanks to Simo Tripodi.
@changelog_1072_li
@changelog_1084_li
MVStore: maps can now be renamed.
@changelog_1073_li
@changelog_1085_li
MVStore: store the file header also at the end of each chunk, which results in a further reduced number of write operations.
@changelog_1074_li
@changelog_1086_li
MVStore: a map implementation that supports concurrent operations.
@changelog_1075_li
@changelog_1087_li
MVStore: unified exception handling; the version is included in the messages.
@changelog_1076_li
@changelog_1088_li
MVStore: old data is now retained for 45 seconds by default.
@changelog_1077_li
@changelog_1089_li
MVStore: compress is now disabled by default, and can be enabled on request.
@changelog_1078_li
@changelog_1090_li
Support ALTER TABLE ADD ... AFTER. Patch from Andrew Gaul (argaul at gmail.com). Fixes issue 401.
@changelog_1079_li
@changelog_1091_li
Improved OSGi support. H2 now registers itself as a DataSourceFactory service. Fixes issue 365.
@changelog_1080_li
@changelog_1092_li
Add a DISK_SPACE_USED system function. Fixes issue 270.
@changelog_1081_li
@changelog_1093_li
Fix a compile-time ambiguity when compiling with JDK7, thanks to a patch from Lukas Eder.
@changelog_1082_li
@changelog_1094_li
Supporting dropping an index for Lucene full-text indexes.
@changelog_1083_li
@changelog_1095_li
Optimized performance for SELECT ... ORDER BY X LIMIT Y OFFSET Z queries for in-memory databases using partial sort (by Sergi Vladykin).
@changelog_1084_li
@changelog_1096_li
Experimental off-heap memory storage engine "nioMemFS:" and "nioMemLZF:", suggestion from Mark Addleman.
@changelog_1085_li
@changelog_1097_li
Issue 438: JdbcDatabaseMetaData.getSchemas() is no longer supported as of 1.3.169.
@changelog_1086_li
@changelog_1098_li
MySQL compatibility: support for ALTER TABLE tableName MODIFY [COLUMN] columnName columnDef. Patch from Ville Koskela.
@changelog_1087_li
@changelog_1099_li
Issue 404: SHOW COLUMNS FROM tableName does not work with ALLOW_LITERALS=NUMBERS.
@changelog_1088_li
@changelog_1100_li
Throw an explicit error to make it clear we don't support the TRIGGER combination of SELECT and FOR EACH ROW.
@changelog_1089_li
@changelog_1101_li
Issue 439: Utils.sortTopN does not handle single-element arrays.
@changelog_1090_h2
@changelog_1102_h2
Version 1.3.170 (2012-11-30)
@changelog_1091_li
@changelog_1103_li
Issue 407: The TriggerAdapter didn't work with CLOB and BLOB columns.
@changelog_1092_li
@changelog_1104_li
PostgreSQL compatibility: support for data types BIGSERIAL and SERIAL as an alias for AUTO_INCREMENT.
@changelog_1093_li
@changelog_1105_li
Issue 417: H2 Console: the web session timeout didn't work, resulting in a memory leak. This was only a problem if the H2 Console was run for a long time and many sessions were opened.
@changelog_1094_li
@changelog_1106_li
Issue 412: Running the Server tool with just the option "-browser" will now log a warning.
@changelog_1095_li
@changelog_1107_li
Issue 411: CloseWatcher registration was not concurrency-safe.
@changelog_1096_li
@changelog_1108_li
MySQL compatibility: support for CONCAT_WS. Thanks a lot to litailang for the patch!
@changelog_1097_li
@changelog_1109_li
PostgreSQL compatibility: support for EXTRACT(WEEK FROM dateColumn). Thanks to Prashant Bhat for the patch!
@changelog_1098_li
@changelog_1110_li
Fix for a bug where we would sometimes use the wrong unique constraint to validate foreign key constraints.
@changelog_1099_li
@changelog_1111_li
Support BOM at the beginning of files for the RUNSCRIPT command
@changelog_1100_li
@changelog_1112_li
Fix in calling SET @X = IDENTITY() where it would return NULL incorrectly
@changelog_1101_li
@changelog_1113_li
Fix ABBA deadlock between adding a constraint and the H2-Log-Writer thread.
@changelog_1102_li
@changelog_1114_li
Optimize IN(...) queries where the values are constant and of the same type.
@changelog_1103_li
@changelog_1115_li
Restore tool: the parameter "quiet" was not used and is now removed.
@changelog_1104_li
@changelog_1116_li
Fix ConcurrentModificationException when creating tables and executing SHOW TABLES in parallel. Reported by Viktor Voytovych.
@changelog_1105_li
@changelog_1117_li
Serialization is now pluggable using the system property "h2.javaObjectSerializer". Thanks to Sergi Vladykin for the patch!
@changelog_1106_h2
@changelog_1118_h2
Version 1.3.169 (2012-09-09)
@changelog_1107_li
@changelog_1119_li
The default jar file is now compiled for Java 6.
@changelog_1108_li
@changelog_1120_li
The new jar file will probably not end up in the central Maven repository in the next few weeks because Sonatype has disabled automatic synchronization from SourceForge (which they call 'legacy sync' now). It will probably take some time until this is sorted out. The H2 jar files are deployed to http://h2database.com/m2-repo/com/h2database/h2/maven-metadata.xml and http://hsql.sourceforge.net/m2-repo/com/h2database/h2/maven-metadata.xml as usual.
@changelog_1109_li
@changelog_1121_li
A part of the documentation and the H2 Console has been changed to support the Apple retina display.
@changelog_1110_li
@changelog_1122_li
The CreateCluster tool could not be used if the source database contained a CLOB or BLOB. The root cause was that the TCP server did not synchronize on the session, which caused a problem when using the exclusive mode.
@changelog_1111_li
@changelog_1123_li
Statement.getQueryTimeout(): only the first call to this method will query the database. If the query timeout was changed in another way than calling setQueryTimeout, this method will always return the last value. This was changed because Hibernate calls getQueryTimeout() a lot.
@changelog_1112_li
@changelog_1124_li
Issue 416: PreparedStatement.setNString throws AbstractMethodError. All implemented JDBC 4 methods that don't break compatibility with Java 5 are now included in the default jar file.
@changelog_1113_li
@changelog_1125_li
Issue 414: for some functions, the parameters were evaluated twice (for example "char(nextval(..))" ran "nextval(..)" twice).
@changelog_1114_li
@changelog_1126_li
The ResultSetMetaData methods getSchemaName and getTableName could return null instead of "" (an empty string) as specified in the JDBC API.
@changelog_1115_li
@changelog_1127_li
Added compatibility for "SET NAMES" query in MySQL compatibility mode.
@changelog_1116_h2
@changelog_1128_h2
Version 1.3.168 (2012-07-13)
@changelog_1117_li
@changelog_1129_li
The message "Transaction log could not be truncated" was sometimes written to the .trace.db file even if there was no problem truncating the transaction log.
@changelog_1118_li
@changelog_1130_li
New system property "h2.serializeJavaObject" (default: true) that allows to disable serializing Java objects, so that the objects compareTo and toString methods can be used.
@changelog_1119_li
@changelog_1131_li
Dylan has translated the H2 Console tool to Korean. Thanks a lot!
@changelog_1120_li
@changelog_1132_li
Executing the statement CREATE INDEX IF ALREADY EXISTS if the index already exists no longer fails for a read only database.
@changelog_1121_li
@changelog_1133_li
MVCC: concurrently updating a row could result in the row to appear deleted in the second connection, if there are multiple unique indexes (or a primary key and at least one unique index). Thanks a lot to Teruo for the patch!
@changelog_1122_li
@changelog_1134_li
Fulltext search: in-memory Lucene indexes are now supported.
@changelog_1123_li
@changelog_1135_li
Fulltext search: UUID primary keys are now supported.
@changelog_1124_li
@changelog_1136_li
Apache Tomcat 7.x will now longer log a warning when unloading the web application, if using a connection pool.
@changelog_1125_li
@changelog_1137_li
H2 Console: support the Midori browser (for Debian / Raspberry Pi)
@changelog_1126_li
@changelog_1138_li
When opening a remote session, don't open a temporary file if the trace level is set to zero
@changelog_1127_li
@changelog_1139_li
Use HMAC for authenticating remote LOB id's, removing the need for maintaining a cache, and removing the limit on the number of LOBs per result set.
@changelog_1128_li
@changelog_1140_li
H2 Console: HTML and XML documents can now be edited in an updatable result set. There is (limited) support for editing multi-line documents.
@changelog_1129_h2
@changelog_1141_h2
Version 1.3.167 (2012-05-23)
@changelog_1130_li
@changelog_1142_li
H2 Console: when editing a row, an empty varchar column was replaced with a single space.
@changelog_1131_li
@changelog_1143_li
Lukas Eder has updated the jOOQ documentation.
@changelog_1132_li
@changelog_1144_li
Some nested joins could not be executed, for example: select * from (select * from (select * from a) a right join b b) c;
@changelog_1133_li
@changelog_1145_li
MS SQL Server compatibility: ISNULL is now an alias for IFNULL.
@changelog_1134_li
@changelog_1146_li
Terrence Huang has completed the translation of the H2 Console tool to Chinese. Thanks a lot!
@changelog_1135_li
@changelog_1147_li
Server mode: the number of CLOB / BLOB values that were cached on the server is now the maximum of: 5 times the SERVER_RESULT_SET_FETCH_SIZE (which is 100 by default), and SysProperties.SERVER_CACHED_OBJECTS.
@changelog_1136_li
@changelog_1148_li
In the trace file, the query execution time was incorrect in some cases, specially for the statement SET TRACE_LEVEL_FILE 2.
@changelog_1137_li
@changelog_1149_li
The feature LOG_SIZE_LIMIT that was introduced in version 1.3.165 did not always work correctly (specially with regards to multithreading) and has been removed. The message "Transaction log could not be truncated" is still written to the .trace.db file if required.
@changelog_1138_li
@changelog_1150_li
Then reading from a resource using the prefix "classpath:", the ContextClassLoader is now used if the resource can't be read otherwise.
@changelog_1139_li
@changelog_1151_li
DatabaseEventListener now calls setProgress whenever a statement starts and ends.
@changelog_1140_li
@changelog_1152_li
DatabaseEventListener now calls setProgress periodically while a statement is running.
@changelog_1141_li
@changelog_1153_li
The table INFORMATION_SCHEMA.FUNCTION_ALIASES now includes a column TYPE_NAME.
@changelog_1142_li
@changelog_1154_li
Issue 378: when using views, the wrong values were bound to a parameter in some cases.
@changelog_1143_li
@changelog_1155_li
Terrence Huang has translated the error messages to Chinese. Thanks a lot!
@changelog_1144_li
@changelog_1156_li
TRUNC was added as an alias for TRUNCATE.
@changelog_1145_li
@changelog_1157_li
Small optimisation for accessing result values by column name.
@changelog_1146_li
@changelog_1158_li
Fix for bug in Statement.getMoreResults(int)
@changelog_1147_li
@changelog_1159_li
The SCRIPT statements now supports filtering by schema and table. Thanks a lot to Jacob Qvortrup for providing the patch!
@changelog_1148_h2
@changelog_1160_h2
Version 1.3.166 (2012-04-08)
@changelog_1149_li
@changelog_1161_li
Indexes on column that are larger than half the page size (wide indexes) could sometimes get corrupt, resulting in an ArrayIndexOutOfBoundsException in PageBtree.getRow or "Row not found" in PageBtreeLeaf. Also, such indexes used too much disk space.
@changelog_1150_li
@changelog_1162_li
Server mode: when retrieving more than 64 rows each containing a CLOB or BLOB, the error message "The object is already closed" was thrown.
@changelog_1151_li
@changelog_1163_li
ConvertTraceFile: the time in the trace file is now parsed as a long.
@changelog_1152_li
@changelog_1164_li
Invalid connection settings are now detected.
@changelog_1153_li
@changelog_1165_li
Issue 387: WHERE condition getting pushed into sub-query with LIMIT.
@changelog_1154_h2
@changelog_1166_h2
Version 1.3.165 (2012-03-18)
@changelog_1155_li
@changelog_1167_li
Better string representation for decimal values (for example 0.00000000 instead of 0E-26).
@changelog_1156_li
@changelog_1168_li
Prepared statements could only be re-used if the same data types were used the second time they were executed.
@changelog_1157_li
@changelog_1169_li
In error messages about referential constraint violation, the values are now included.
@changelog_1158_li
@changelog_1170_li
SCRIPT and RUNSCRIPT: the password can now be set using a prepared statement. Previously, it was required to be a literal in the SQL statement.
@changelog_1159_li
@changelog_1171_li
MySQL compatibility: SUBSTR with a negative start index now works like MySQL.
@changelog_1160_li
@changelog_1172_li
When enabling autocommit, the transaction is now committed (as required by the JDBC API).
@changelog_1161_li
@changelog_1173_li
The shell script <code>h2.sh</code> did not work with spaces in the path. It also works now with quoted spaces in the argument list. Thanks a lot to Shimizu Fumiyuki for the patch!
@changelog_1162_li
@changelog_1174_li
If the transaction log could not be truncated because of an uncommitted transaction, now "Transaction log could not be truncated" is written to the .trace.db file. Before, the database file was growing and it was hard to find out what the root cause was. To avoid the database file from growing, a new feature to automatically rollback the oldest transaction is available now. To enable it, append ;LOG_SIZE_LIMIT=32 to the database URL (in that case, the oldest session is rolled back if the transaction log is 32 MB).
@changelog_1163_li
@changelog_1175_li
ALTER TABLE ADD can now add more than one column at a time.
@changelog_1164_li
@changelog_1176_li
Issue 380: ALTER TABLE ADD FOREIGN KEY with an explicit index didn't verify the index can be used, which would lead to a NullPointerException later on.
@changelog_1165_li
@changelog_1177_li
Issue 384: the wrong kind of exception (NullPointerException) was thrown in a UNION query with an incorrect ORDER BY expression.
@changelog_1166_li
@changelog_1178_li
Issue 362: support LIMIT in UPDATE statements.
@changelog_1167_li
@changelog_1179_li
Browser: if no default browser is set, Google Chrome is now used if available. If not available, then Konqueror, Netscape, or Opera is used if available (as before).
@changelog_1168_li
@changelog_1180_li
CSV tool: new feature to disable writing the column header (option writeColumnHeader).
@changelog_1169_li
@changelog_1181_li
CSV tool: new feature to preserve the case sensitivity of column names (option caseSensitiveColumnNames).
@changelog_1170_li
@changelog_1182_li
PostgreSQL compatibility: LOG(x) is base 10 in the PostgreSQL mode.
@changelog_1171_h2
@changelog_1183_h2
Version 1.3.164 (2012-02-03)
@changelog_1172_li
@changelog_1184_li
New built-in function ARRAY_CONTAINS.
@changelog_1173_li
@changelog_1185_li
Some DatabaseMetaData methods didn't work when using ALLOW_LITERALS NONE.
@changelog_1174_li
@changelog_1186_li
Trying to convert a VARCHAR to UUID will now fail if the text contains a character that is not a hex digit, '-', or not a whitespace.
@changelog_1175_li
@changelog_1187_li
TriggerAdapter: in "before" triggers, values can be changed using the ResultSet.updateX methods.
@changelog_1176_li
@changelog_1188_li
Creating a table with column data type NULL now works (even if not very useful).
@changelog_1177_li
@changelog_1189_li
ALTER TABLE ALTER COLUMN no longer copies the data for widening conversions (for example if only the precision was increased) unless necessary.
@changelog_1178_li
@changelog_1190_li
Multi-threaded kernel: concurrently running an online backup and updating the database resulted in a broken (transactionally incorrect) backup file in some cases.
@changelog_1179_li
@changelog_1191_li
The script created by SCRIPT DROP did not always work if multiple views existed that depend on each other.
@changelog_1180_li
@changelog_1192_li
MathUtils.getSecureRandom could log a warning to System.err in case the /dev/random is very slow, and the System.getProperties().toString() returned a string larger than 64 KB.
@changelog_1181_li
@changelog_1193_li
The database file locking mechanism "FS" (;FILE_LOCK=FS) did not work on Linux since version 1.3.161.
@changelog_1182_li
@changelog_1194_li
Sequences: the functions NEXTVAL and CURRVAL did not work as expected when using quoted, mixed case sequence names.
@changelog_1183_li
@changelog_1195_li
The constructor for Csv objects is now public, and Csv.getInstance() is now deprecated.
@changelog_1184_li
@changelog_1196_li
SimpleResultSet: updating a result set is now supported.
@changelog_1185_li
@changelog_1197_li
Database URL: extra semicolons are not supported.
@changelog_1186_h2
@changelog_1198_h2
Version 1.3.163 (2011-12-30)
@changelog_1187_li
@changelog_1199_li
On out of disk space, the database could get corrupt sometimes, if later write operations succeeded. The same problem happened on other kinds of I/O exceptions (where one or some of the writes fail, but subsequent writes succeed). Now the file is closed on the first unsuccessful write operation, so that later requests fail consistently.
@changelog_1188_li
@changelog_1200_li
DatabaseEventListener.diskSpaceIsLow() is no longer supported because it can't be guaranteed that it always works correctly.
@changelog_1189_li
@changelog_1201_li
XMLTEXT now supports an optional parameter to escape newlines.
@changelog_1190_li
@changelog_1202_li
XMLNODE now support an optional parameter to disable indentation.
@changelog_1191_li
@changelog_1203_li
Csv.write now formats date, time, and timestamp values using java.sql.Date / Time / Timestamp.toString(). Previously, ResultSet.getString() was used, which didn't work well for Oracle.
@changelog_1192_li
@changelog_1204_li
The shell script <code>h2.sh</code> can now be run from within a different directory. Thanks a lot to Daniel Serodio for the patch!
@changelog_1193_li
@changelog_1205_li
The page size of a persistent database can now be queries using: select * from information_schema.settings where name = 'info.PAGE_SIZE'
@changelog_1194_li
@changelog_1206_li
In the server mode, BLOB and CLOB objects are no longer closed when the result set is closed (as required by the JDBC spec).
@cheatSheet_1000_h1
......@@ -3767,7 +3803,7 @@ Changing other settings
Connecting to an Embedded (Local) Database
@features_1350_p
The database URL for connecting to a local database is <code>jdbc:h2:[file:][&lt;path&gt;]&lt;databaseName&gt;</code>. The prefix <code>file:</code> is optional. If no or only a relative path is used, then the current working directory is used as a starting point. The case sensitivity of the path and database name depend on the operating system, however it is recommended to use lowercase letters only. The database name must be at least three characters long (a limitation of <code>File.createTempFile</code>). To point to the user home directory, use <code>~/</code>, as in: <code>jdbc:h2:~/test</code>.
The database URL for connecting to a local database is <code>jdbc:h2:[file:][&lt;path&gt;]&lt;databaseName&gt;</code>. The prefix <code>file:</code> is optional. If no or only a relative path is used, then the current working directory is used as a starting point. The case sensitivity of the path and database name depend on the operating system, however it is recommended to use lowercase letters only. The database name must be at least three characters long (a limitation of <code>File.createTempFile</code>). The database name must not contain a semicolon. To point to the user home directory, use <code>~/</code>, as in: <code>jdbc:h2:~/test</code>.
@features_1351_h2
In-Memory Databases
......@@ -7160,51 +7196,48 @@ ConcurrentModificationException
Table Engine for H2
@mvstore_1110_p
The plan is to use the MVStore as the default storage engine for the H2 database in the future (supporting SQL, JDBC, transactions, MVCC, and so on). This is work in progress. To try it out, append <code>;DEFAULT_TABLE_ENGINE=org.h2.mvstore.db.MVTableEngine</code> to the database URL. In general, functionality and performance should be similar than the current default storage engine (the page store). There are a few features that have not been implemented yet or are not complete:
The plan is to use the MVStore as the default storage engine for the H2 database in the future (supporting SQL, JDBC, transactions, MVCC, and so on). This is work in progress. To try it out, append <code>;MV_STORE=TRUE</code> to the database URL. In general, functionality and performance should be similar than the current default storage engine (the page store). There are a few features that have not been implemented yet or are not complete:
@mvstore_1111_li
Changing the cache size is currently not supported.
There is still a file <code>.h2.db</code>, and the <code>.lock.db</code> file is still used to lock a database (long term, the plan is to no longer use those files).
@mvstore_1112_li
The database metadata is still stored in a <code>.h2.db</code> file, and the <code>.lock.db</code> file is still used to lock a database (long term, the plan is to no longer use those files).
@mvstore_1113_li
The database file(s) sometimes do not shrink as expected.
@mvstore_1114_h2
@mvstore_1113_h2
Similar Projects and Differences to Other Storage Engines
@mvstore_1115_p
@mvstore_1114_p
Unlike similar storage engines like LevelDB and Kyoto Cabinet, the MVStore is written in Java and can easily be embedded in a Java and Android application.
@mvstore_1116_p
@mvstore_1115_p
The MVStore is somewhat similar to the Berkeley DB Java Edition because it is also written in Java, and is also a log structured storage, but the H2 license is more liberal.
@mvstore_1117_p
@mvstore_1116_p
Like SQLite, the MVStore keeps all data in one file. Unlike SQLite, the MVStore uses is a log structured storage. The plan is to make the MVStore both easier to use as well as faster than SQLite. In a recent (very simple) test, the MVStore was about twice as fast as SQLite on Android.
@mvstore_1118_p
@mvstore_1117_p
The API of the MVStore is similar to MapDB (previously known as JDBM) from Jan Kotek, and some code is shared between MapDB and JDBM. However, unlike MapDB, the MVStore uses is a log structured storage. The MVStore does not have a record size limit.
@mvstore_1119_h2
@mvstore_1118_h2
Current State
@mvstore_1120_p
@mvstore_1119_p
The code is still experimental at this stage. The API as well as the behavior may partially change. Features may be added and removed (even thought the main features will stay).
@mvstore_1121_h2
@mvstore_1120_h2
Requirements
@mvstore_1122_p
@mvstore_1121_p
The MVStore is included in the latest H2 jar file.
@mvstore_1123_p
@mvstore_1122_p
There are no special requirements to use it. The MVStore should run on any JVM as well as on Android.
@mvstore_1124_p
@mvstore_1123_p
To build just the MVStore (without the database engine), run:
@mvstore_1125_p
@mvstore_1124_p
This will create the file <code>bin/h2mvstore-1.3.172.jar</code> (about 130 KB).
@performance_1000_h1
......
......@@ -1643,582 +1643,618 @@ Centralリ�?ジトリ�?�利用
#Next Version (unreleased)
@changelog_1002_li
#Server mode: if there was an error while reading from a LOB, the session was closed in some cases.
#Support empty statements that just contains a comment.
@changelog_1003_li
#Issue 463: Driver name and version are now the same in OsgiDataSourceFactory and JdbcDatabaseMetaData.
#Server mode: if there was an error while reading from a LOB, the session was closed in some cases.
@changelog_1004_li
#JaQu: The data type VARCHAR is now (again) used for Strings (no longer TEXT, except when explicitly set).
#Issue 463: Driver name and version are now the same in OsgiDataSourceFactory and JdbcDatabaseMetaData.
@changelog_1005_li
#For in-memory databases, creating an index on a CLOB or BLOB column is no longer supported. This is to simplify the MVTableEngine.
#JaQu: The data type VARCHAR is now (again) used for Strings (no longer TEXT, except when explicitly set).
@changelog_1006_li
#New column "information_schema.tables.row_count_estimate".
#For in-memory databases, creating an index on a CLOB or BLOB column is no longer supported. This is to simplify the MVTableEngine.
@changelog_1007_li
#Issue 468: trunc(timestamp) could return the wrong value (+12 hours), and trunc(number) throw a NullPointerException.
#New column "information_schema.tables.row_count_estimate".
@changelog_1008_li
#The expression trunc(number) threw a NullPointerException.
#Issue 468: trunc(timestamp) could return the wrong value (+12 hours), and trunc(number) throw a NullPointerException.
@changelog_1009_li
#Fixed a deadlock when updating LOB's concurrently. See TestLob.testDeadlock2().
#The expression trunc(number) threw a NullPointerException.
@changelog_1010_li
#Fixed a deadlock related to very large temporary result sets.
#Fixed a deadlock when updating LOB's concurrently. See TestLob.testDeadlock2().
@changelog_1011_li
#Add "-list" command line option to Shell tool so that result-list-mode can be triggered when reading from a file.
#Fixed a deadlock related to very large temporary result sets.
@changelog_1012_li
#Issue 474: H2 MySQL Compatibility code fails to ignore "COMMENT" in CREATE TABLE, patch from Aaron Azeckoski.
#Add "-list" command line option to Shell tool so that result-list-mode can be triggered when reading from a file.
@changelog_1013_li
#Issue 476: Broken link in jaqu.html
#Issue 474: H2 MySQL Compatibility code fails to ignore "COMMENT" in CREATE TABLE, patch from Aaron Azeckoski.
@changelog_1014_li
#Fix potential UTF8 encoding issue in org.h2.store.FileStore, reported by Juerg Spiess.
#Issue 476: Broken link in jaqu.html
@changelog_1015_li
#Improve error message when check constraint is broken, test case from Gili (cowwoc).
#Fix potential UTF8 encoding issue in org.h2.store.FileStore, reported by Juerg Spiess.
@changelog_1016_li
#Improve error message when we have a unique constraint violation, displays the offending key in the error message.
#Improve error message when check constraint is broken, test case from Gili (cowwoc).
@changelog_1017_li
#Issue 478: Support for "SHOW TRANSACTION ISOLATION LEVEL", patch from Andrew Franklin.
#Improve error message when we have a unique constraint violation, displays the offending key in the error message.
@changelog_1018_li
#Issue 475: PgServer: add support for CancelRequest, patch from Andrew Franklin.
#Issue 478: Support for "SHOW TRANSACTION ISOLATION LEVEL", patch from Andrew Franklin.
@changelog_1019_li
#Issue 473: PgServer missing -key option, patch from Andrew Franklin.
#Issue 475: PgServer: add support for CancelRequest, patch from Andrew Franklin.
@changelog_1020_li
#Issue 471: CREATE VIEW does not check user rights, patch from Andrew Franklin.
#Issue 473: PgServer missing -key option, patch from Andrew Franklin.
@changelog_1021_li
#Issue 477: PgServer binary transmission of query params is unimplemented, patch from Andrew Franklin.
#Issue 471: CREATE VIEW does not check user rights, patch from Andrew Franklin.
@changelog_1022_li
#Issue 479: Support for SUBSTRING without a FROM condition, patch from Andrew Franklin.
#Issue 477: PgServer binary transmission of query params is unimplemented, patch from Andrew Franklin.
@changelog_1023_li
#Issue 472: PgServer does not work with any recent Postgres JDBC driver, patch from Andrew Franklin.
#Issue 479: Support for SUBSTRING without a FROM condition, patch from Andrew Franklin.
@changelog_1024_li
#Add syntax for passing additional parameters into custom TableEngine implementations.
#Issue 472: PgServer does not work with any recent Postgres JDBC driver, patch from Andrew Franklin.
@changelog_1025_li
#Issue 480: Bugfix post issue 475, 477, patch from Andrew Franklin.
#Add syntax for passing additional parameters into custom TableEngine implementations.
@changelog_1026_li
#Issue 481: Further extensions to PgServer to support better support PG JDBC, patch from Andrew Franklin.
#Issue 480: Bugfix post issue 475, 477, patch from Andrew Franklin.
@changelog_1027_li
#Add support for spatial datatype GEOMETRY.
#Issue 481: Further extensions to PgServer to support better support PG JDBC, patch from Andrew Franklin.
@changelog_1028_li
#Add support for in-memory spatial index.
#Add support for spatial datatype GEOMETRY.
@changelog_1029_li
#change the PageStore#changeCount field from an int to a long, to cope with databases with very high transaction rates.
#Add support for in-memory spatial index.
@changelog_1030_li
#Fix a NullPointerException when attempting to add foreign key reference to a view.
#change the PageStore#changeCount field from an int to a long, to cope with databases with very high transaction rates.
@changelog_1031_li
#Add sufficient ClientInfo support to our javax.sql.Connection implementation to make WebSphere happy.
#Fix a NullPointerException when attempting to add foreign key reference to a view.
@changelog_1032_li
#Add sufficient ClientInfo support to our javax.sql.Connection implementation to make WebSphere happy.
@changelog_1033_li
#Issue 482: class LobStorageBackend$LobInputStream does not override the method InputStream.available().
@changelog_1033_h2
@changelog_1034_li
#Fix corruption resulting from a mix of the "WRITE_DELAY=0" option and "SELECT DISTINCT" queries that don't fit in memory.
@changelog_1035_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_1036_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_1037_li
#MySQL compatibility, support the "AUTO_INCREMENT=3" part of the CREATE TABLE statement.
@changelog_1038_li
#Issue 486: MySQL compatibility, support the "DEFAULT CHARSET" part of the CREATE TABLE statement.
@changelog_1039_li
#Issue 487: support the MySQL "SET foreign_key_checks = 0" command
@changelog_1040_li
#Issue 490: support MySQL "USING BTREE" index declaration
@changelog_1041_li
#Issue 485: Database get corrupted when column is renamed for which check constraint was defined inside create table statement.
@changelog_1042_li
#Issue 499: support MySQL "UNIQUE KEY (ID) USING BTREE" constraint syntax
@changelog_1043_li
#Issue 501: "CREATE TABLE .. WITH" not serialized, patch from nico.devel
@changelog_1044_li
#Avoid problems with runtime-compiled ALIAS methods when people have set the JAVA_TOOL_OPTIONS environment variable.
@changelog_1045_h2
#Version 1.3.172 (2013-05-25)
@changelog_1034_li
@changelog_1046_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_1035_li
@changelog_1047_li
#The auto-analyze feature now only reads 1000 rows per table instead of 10000.
@changelog_1036_li
@changelog_1048_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_1037_li
@changelog_1049_li
#Issue 454: Use Charset for type-safety.
@changelog_1038_li
@changelog_1050_li
#Queries with both LIMIT and OFFSET could throw an IllegalArgumentException.
@changelog_1039_li
@changelog_1051_li
#MVStore: multiple issues were fixed: 460, 461, 462, 464, 466.
@changelog_1040_li
@changelog_1052_li
#MVStore: larger stores (multiple GB) are now much faster.
@changelog_1041_li
@changelog_1053_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_1042_li
@changelog_1054_li
#Support TRUNC(timestamp) for improved Oracle compatibility.
@changelog_1043_li
@changelog_1055_li
#Add support for CREATE TABLE TEST (ID BIGSERIAL) for PostgreSQL compatibility. Patch from Jesse Long.
@changelog_1044_li
@changelog_1056_li
#Add new collation command SET BINARY_COLLATION UNSIGNED, helps with people testing BINARY columns in MySQL mode.
@changelog_1045_li
@changelog_1057_li
#Issue 453: ABBA race conditions in TABLE LINK connection sharing.
@changelog_1046_li
@changelog_1058_li
#Issue 449: Postgres Serial data type should not automatically be marked as primary key
@changelog_1047_li
@changelog_1059_li
#Issue 406: Support "select h2version()"
@changelog_1048_li
@changelog_1060_li
#Issue 389: When there is a multi-column primary key, H2 does not seem to always pick the right index
@changelog_1049_li
@changelog_1061_li
#Issue 305: Implement SELECT ... FOR FETCH ONLY
@changelog_1050_li
@changelog_1062_li
#Issue 274: Sybase/MSSQLServer compatibility - Add GETDATE and CHARINDEX system functions
@changelog_1051_li
@changelog_1063_li
#Issue 274: Sybase/MSSQLServer compatibility - swap parameters of CONVERT function.
@changelog_1052_li
@changelog_1064_li
#Issue 274: Sybase/MSSQLServer compatibility - support index clause e.g. "select * from test (index table1_index)"
@changelog_1053_li
@changelog_1065_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_1054_li
@changelog_1066_li
#Issue 442: Groovy patch for SourceCompiler (function ALIAS)
@changelog_1055_li
@changelog_1067_li
#Issue 459: Improve LOB documentation
@changelog_1056_h2
@changelog_1068_h2
#Version 1.3.171 (2013-03-17)
@changelog_1057_li
@changelog_1069_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_1058_li
@changelog_1070_li
#H2 Console: the session timeout can now be configured using the system property "h2.consoleTimeout".
@changelog_1059_li
@changelog_1071_li
#Issue 431: Improved compatibility with MySQL: support for "ENGINE=InnoDB charset=UTF8" when creating a table.
@changelog_1060_li
@changelog_1072_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_1061_li
@changelog_1073_li
#Issue 434: H2 Console didn't work in the Chrome browser due to a wrong viewport argument.
@changelog_1062_li
@changelog_1074_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_1063_li
@changelog_1075_li
#The SQL script generated by the "script" command contained inconsistent newlines on Windows.
@changelog_1064_li
@changelog_1076_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_1065_li
@changelog_1077_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_1066_li
@changelog_1078_li
#Optimize IN(...) queries: there was a bug in version 1.3.170 for comparison of the type "X IN(NULL, NULL)". Fixed.
@changelog_1067_li
@changelog_1079_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_1068_li
@changelog_1080_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_1069_li
@changelog_1081_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_1070_li
@changelog_1082_li
#MVStore: encrypted stores are now supported. Only standardized algorithms are used: PBKDF2, SHA-256, XTS-AES, AES-128.
@changelog_1071_li
@changelog_1083_li
#MVStore: improved API thanks to Simo Tripodi.
@changelog_1072_li
@changelog_1084_li
#MVStore: maps can now be renamed.
@changelog_1073_li
@changelog_1085_li
#MVStore: store the file header also at the end of each chunk, which results in a further reduced number of write operations.
@changelog_1074_li
@changelog_1086_li
#MVStore: a map implementation that supports concurrent operations.
@changelog_1075_li
@changelog_1087_li
#MVStore: unified exception handling; the version is included in the messages.
@changelog_1076_li
@changelog_1088_li
#MVStore: old data is now retained for 45 seconds by default.
@changelog_1077_li
@changelog_1089_li
#MVStore: compress is now disabled by default, and can be enabled on request.
@changelog_1078_li
@changelog_1090_li
#Support ALTER TABLE ADD ... AFTER. Patch from Andrew Gaul (argaul at gmail.com). Fixes issue 401.
@changelog_1079_li
@changelog_1091_li
#Improved OSGi support. H2 now registers itself as a DataSourceFactory service. Fixes issue 365.
@changelog_1080_li
@changelog_1092_li
#Add a DISK_SPACE_USED system function. Fixes issue 270.
@changelog_1081_li
@changelog_1093_li
#Fix a compile-time ambiguity when compiling with JDK7, thanks to a patch from Lukas Eder.
@changelog_1082_li
@changelog_1094_li
#Supporting dropping an index for Lucene full-text indexes.
@changelog_1083_li
@changelog_1095_li
#Optimized performance for SELECT ... ORDER BY X LIMIT Y OFFSET Z queries for in-memory databases using partial sort (by Sergi Vladykin).
@changelog_1084_li
@changelog_1096_li
#Experimental off-heap memory storage engine "nioMemFS:" and "nioMemLZF:", suggestion from Mark Addleman.
@changelog_1085_li
@changelog_1097_li
#Issue 438: JdbcDatabaseMetaData.getSchemas() is no longer supported as of 1.3.169.
@changelog_1086_li
@changelog_1098_li
#MySQL compatibility: support for ALTER TABLE tableName MODIFY [COLUMN] columnName columnDef. Patch from Ville Koskela.
@changelog_1087_li
@changelog_1099_li
#Issue 404: SHOW COLUMNS FROM tableName does not work with ALLOW_LITERALS=NUMBERS.
@changelog_1088_li
@changelog_1100_li
#Throw an explicit error to make it clear we don't support the TRIGGER combination of SELECT and FOR EACH ROW.
@changelog_1089_li
@changelog_1101_li
#Issue 439: Utils.sortTopN does not handle single-element arrays.
@changelog_1090_h2
@changelog_1102_h2
#Version 1.3.170 (2012-11-30)
@changelog_1091_li
@changelog_1103_li
#Issue 407: The TriggerAdapter didn't work with CLOB and BLOB columns.
@changelog_1092_li
@changelog_1104_li
#PostgreSQL compatibility: support for data types BIGSERIAL and SERIAL as an alias for AUTO_INCREMENT.
@changelog_1093_li
@changelog_1105_li
#Issue 417: H2 Console: the web session timeout didn't work, resulting in a memory leak. This was only a problem if the H2 Console was run for a long time and many sessions were opened.
@changelog_1094_li
@changelog_1106_li
#Issue 412: Running the Server tool with just the option "-browser" will now log a warning.
@changelog_1095_li
@changelog_1107_li
#Issue 411: CloseWatcher registration was not concurrency-safe.
@changelog_1096_li
@changelog_1108_li
#MySQL compatibility: support for CONCAT_WS. Thanks a lot to litailang for the patch!
@changelog_1097_li
@changelog_1109_li
#PostgreSQL compatibility: support for EXTRACT(WEEK FROM dateColumn). Thanks to Prashant Bhat for the patch!
@changelog_1098_li
@changelog_1110_li
#Fix for a bug where we would sometimes use the wrong unique constraint to validate foreign key constraints.
@changelog_1099_li
@changelog_1111_li
#Support BOM at the beginning of files for the RUNSCRIPT command
@changelog_1100_li
@changelog_1112_li
#Fix in calling SET @X = IDENTITY() where it would return NULL incorrectly
@changelog_1101_li
@changelog_1113_li
#Fix ABBA deadlock between adding a constraint and the H2-Log-Writer thread.
@changelog_1102_li
@changelog_1114_li
#Optimize IN(...) queries where the values are constant and of the same type.
@changelog_1103_li
@changelog_1115_li
#Restore tool: the parameter "quiet" was not used and is now removed.
@changelog_1104_li
@changelog_1116_li
#Fix ConcurrentModificationException when creating tables and executing SHOW TABLES in parallel. Reported by Viktor Voytovych.
@changelog_1105_li
@changelog_1117_li
#Serialization is now pluggable using the system property "h2.javaObjectSerializer". Thanks to Sergi Vladykin for the patch!
@changelog_1106_h2
@changelog_1118_h2
#Version 1.3.169 (2012-09-09)
@changelog_1107_li
@changelog_1119_li
#The default jar file is now compiled for Java 6.
@changelog_1108_li
@changelog_1120_li
#The new jar file will probably not end up in the central Maven repository in the next few weeks because Sonatype has disabled automatic synchronization from SourceForge (which they call 'legacy sync' now). It will probably take some time until this is sorted out. The H2 jar files are deployed to http://h2database.com/m2-repo/com/h2database/h2/maven-metadata.xml and http://hsql.sourceforge.net/m2-repo/com/h2database/h2/maven-metadata.xml as usual.
@changelog_1109_li
@changelog_1121_li
#A part of the documentation and the H2 Console has been changed to support the Apple retina display.
@changelog_1110_li
@changelog_1122_li
#The CreateCluster tool could not be used if the source database contained a CLOB or BLOB. The root cause was that the TCP server did not synchronize on the session, which caused a problem when using the exclusive mode.
@changelog_1111_li
@changelog_1123_li
#Statement.getQueryTimeout(): only the first call to this method will query the database. If the query timeout was changed in another way than calling setQueryTimeout, this method will always return the last value. This was changed because Hibernate calls getQueryTimeout() a lot.
@changelog_1112_li
@changelog_1124_li
#Issue 416: PreparedStatement.setNString throws AbstractMethodError. All implemented JDBC 4 methods that don't break compatibility with Java 5 are now included in the default jar file.
@changelog_1113_li
@changelog_1125_li
#Issue 414: for some functions, the parameters were evaluated twice (for example "char(nextval(..))" ran "nextval(..)" twice).
@changelog_1114_li
@changelog_1126_li
#The ResultSetMetaData methods getSchemaName and getTableName could return null instead of "" (an empty string) as specified in the JDBC API.
@changelog_1115_li
@changelog_1127_li
#Added compatibility for "SET NAMES" query in MySQL compatibility mode.
@changelog_1116_h2
@changelog_1128_h2
#Version 1.3.168 (2012-07-13)
@changelog_1117_li
@changelog_1129_li
#The message "Transaction log could not be truncated" was sometimes written to the .trace.db file even if there was no problem truncating the transaction log.
@changelog_1118_li
@changelog_1130_li
#New system property "h2.serializeJavaObject" (default: true) that allows to disable serializing Java objects, so that the objects compareTo and toString methods can be used.
@changelog_1119_li
@changelog_1131_li
#Dylan has translated the H2 Console tool to Korean. Thanks a lot!
@changelog_1120_li
@changelog_1132_li
#Executing the statement CREATE INDEX IF ALREADY EXISTS if the index already exists no longer fails for a read only database.
@changelog_1121_li
@changelog_1133_li
#MVCC: concurrently updating a row could result in the row to appear deleted in the second connection, if there are multiple unique indexes (or a primary key and at least one unique index). Thanks a lot to Teruo for the patch!
@changelog_1122_li
@changelog_1134_li
#Fulltext search: in-memory Lucene indexes are now supported.
@changelog_1123_li
@changelog_1135_li
#Fulltext search: UUID primary keys are now supported.
@changelog_1124_li
@changelog_1136_li
#Apache Tomcat 7.x will now longer log a warning when unloading the web application, if using a connection pool.
@changelog_1125_li
@changelog_1137_li
#H2 Console: support the Midori browser (for Debian / Raspberry Pi)
@changelog_1126_li
@changelog_1138_li
#When opening a remote session, don't open a temporary file if the trace level is set to zero
@changelog_1127_li
@changelog_1139_li
#Use HMAC for authenticating remote LOB id's, removing the need for maintaining a cache, and removing the limit on the number of LOBs per result set.
@changelog_1128_li
@changelog_1140_li
#H2 Console: HTML and XML documents can now be edited in an updatable result set. There is (limited) support for editing multi-line documents.
@changelog_1129_h2
@changelog_1141_h2
#Version 1.3.167 (2012-05-23)
@changelog_1130_li
@changelog_1142_li
#H2 Console: when editing a row, an empty varchar column was replaced with a single space.
@changelog_1131_li
@changelog_1143_li
#Lukas Eder has updated the jOOQ documentation.
@changelog_1132_li
@changelog_1144_li
#Some nested joins could not be executed, for example: select * from (select * from (select * from a) a right join b b) c;
@changelog_1133_li
@changelog_1145_li
#MS SQL Server compatibility: ISNULL is now an alias for IFNULL.
@changelog_1134_li
@changelog_1146_li
#Terrence Huang has completed the translation of the H2 Console tool to Chinese. Thanks a lot!
@changelog_1135_li
@changelog_1147_li
#Server mode: the number of CLOB / BLOB values that were cached on the server is now the maximum of: 5 times the SERVER_RESULT_SET_FETCH_SIZE (which is 100 by default), and SysProperties.SERVER_CACHED_OBJECTS.
@changelog_1136_li
@changelog_1148_li
#In the trace file, the query execution time was incorrect in some cases, specially for the statement SET TRACE_LEVEL_FILE 2.
@changelog_1137_li
@changelog_1149_li
#The feature LOG_SIZE_LIMIT that was introduced in version 1.3.165 did not always work correctly (specially with regards to multithreading) and has been removed. The message "Transaction log could not be truncated" is still written to the .trace.db file if required.
@changelog_1138_li
@changelog_1150_li
#Then reading from a resource using the prefix "classpath:", the ContextClassLoader is now used if the resource can't be read otherwise.
@changelog_1139_li
@changelog_1151_li
#DatabaseEventListener now calls setProgress whenever a statement starts and ends.
@changelog_1140_li
@changelog_1152_li
#DatabaseEventListener now calls setProgress periodically while a statement is running.
@changelog_1141_li
@changelog_1153_li
#The table INFORMATION_SCHEMA.FUNCTION_ALIASES now includes a column TYPE_NAME.
@changelog_1142_li
@changelog_1154_li
#Issue 378: when using views, the wrong values were bound to a parameter in some cases.
@changelog_1143_li
@changelog_1155_li
#Terrence Huang has translated the error messages to Chinese. Thanks a lot!
@changelog_1144_li
@changelog_1156_li
#TRUNC was added as an alias for TRUNCATE.
@changelog_1145_li
@changelog_1157_li
#Small optimisation for accessing result values by column name.
@changelog_1146_li
@changelog_1158_li
#Fix for bug in Statement.getMoreResults(int)
@changelog_1147_li
@changelog_1159_li
#The SCRIPT statements now supports filtering by schema and table. Thanks a lot to Jacob Qvortrup for providing the patch!
@changelog_1148_h2
@changelog_1160_h2
#Version 1.3.166 (2012-04-08)
@changelog_1149_li
@changelog_1161_li
#Indexes on column that are larger than half the page size (wide indexes) could sometimes get corrupt, resulting in an ArrayIndexOutOfBoundsException in PageBtree.getRow or "Row not found" in PageBtreeLeaf. Also, such indexes used too much disk space.
@changelog_1150_li
@changelog_1162_li
#Server mode: when retrieving more than 64 rows each containing a CLOB or BLOB, the error message "The object is already closed" was thrown.
@changelog_1151_li
@changelog_1163_li
#ConvertTraceFile: the time in the trace file is now parsed as a long.
@changelog_1152_li
@changelog_1164_li
#Invalid connection settings are now detected.
@changelog_1153_li
@changelog_1165_li
#Issue 387: WHERE condition getting pushed into sub-query with LIMIT.
@changelog_1154_h2
@changelog_1166_h2
#Version 1.3.165 (2012-03-18)
@changelog_1155_li
@changelog_1167_li
#Better string representation for decimal values (for example 0.00000000 instead of 0E-26).
@changelog_1156_li
@changelog_1168_li
#Prepared statements could only be re-used if the same data types were used the second time they were executed.
@changelog_1157_li
@changelog_1169_li
#In error messages about referential constraint violation, the values are now included.
@changelog_1158_li
@changelog_1170_li
#SCRIPT and RUNSCRIPT: the password can now be set using a prepared statement. Previously, it was required to be a literal in the SQL statement.
@changelog_1159_li
@changelog_1171_li
#MySQL compatibility: SUBSTR with a negative start index now works like MySQL.
@changelog_1160_li
@changelog_1172_li
#When enabling autocommit, the transaction is now committed (as required by the JDBC API).
@changelog_1161_li
@changelog_1173_li
#The shell script <code>h2.sh</code> did not work with spaces in the path. It also works now with quoted spaces in the argument list. Thanks a lot to Shimizu Fumiyuki for the patch!
@changelog_1162_li
@changelog_1174_li
#If the transaction log could not be truncated because of an uncommitted transaction, now "Transaction log could not be truncated" is written to the .trace.db file. Before, the database file was growing and it was hard to find out what the root cause was. To avoid the database file from growing, a new feature to automatically rollback the oldest transaction is available now. To enable it, append ;LOG_SIZE_LIMIT=32 to the database URL (in that case, the oldest session is rolled back if the transaction log is 32 MB).
@changelog_1163_li
@changelog_1175_li
#ALTER TABLE ADD can now add more than one column at a time.
@changelog_1164_li
@changelog_1176_li
#Issue 380: ALTER TABLE ADD FOREIGN KEY with an explicit index didn't verify the index can be used, which would lead to a NullPointerException later on.
@changelog_1165_li
@changelog_1177_li
#Issue 384: the wrong kind of exception (NullPointerException) was thrown in a UNION query with an incorrect ORDER BY expression.
@changelog_1166_li
@changelog_1178_li
#Issue 362: support LIMIT in UPDATE statements.
@changelog_1167_li
@changelog_1179_li
#Browser: if no default browser is set, Google Chrome is now used if available. If not available, then Konqueror, Netscape, or Opera is used if available (as before).
@changelog_1168_li
@changelog_1180_li
#CSV tool: new feature to disable writing the column header (option writeColumnHeader).
@changelog_1169_li
@changelog_1181_li
#CSV tool: new feature to preserve the case sensitivity of column names (option caseSensitiveColumnNames).
@changelog_1170_li
@changelog_1182_li
#PostgreSQL compatibility: LOG(x) is base 10 in the PostgreSQL mode.
@changelog_1171_h2
@changelog_1183_h2
#Version 1.3.164 (2012-02-03)
@changelog_1172_li
@changelog_1184_li
#New built-in function ARRAY_CONTAINS.
@changelog_1173_li
@changelog_1185_li
#Some DatabaseMetaData methods didn't work when using ALLOW_LITERALS NONE.
@changelog_1174_li
@changelog_1186_li
#Trying to convert a VARCHAR to UUID will now fail if the text contains a character that is not a hex digit, '-', or not a whitespace.
@changelog_1175_li
@changelog_1187_li
#TriggerAdapter: in "before" triggers, values can be changed using the ResultSet.updateX methods.
@changelog_1176_li
@changelog_1188_li
#Creating a table with column data type NULL now works (even if not very useful).
@changelog_1177_li
@changelog_1189_li
#ALTER TABLE ALTER COLUMN no longer copies the data for widening conversions (for example if only the precision was increased) unless necessary.
@changelog_1178_li
@changelog_1190_li
#Multi-threaded kernel: concurrently running an online backup and updating the database resulted in a broken (transactionally incorrect) backup file in some cases.
@changelog_1179_li
@changelog_1191_li
#The script created by SCRIPT DROP did not always work if multiple views existed that depend on each other.
@changelog_1180_li
@changelog_1192_li
#MathUtils.getSecureRandom could log a warning to System.err in case the /dev/random is very slow, and the System.getProperties().toString() returned a string larger than 64 KB.
@changelog_1181_li
@changelog_1193_li
#The database file locking mechanism "FS" (;FILE_LOCK=FS) did not work on Linux since version 1.3.161.
@changelog_1182_li
@changelog_1194_li
#Sequences: the functions NEXTVAL and CURRVAL did not work as expected when using quoted, mixed case sequence names.
@changelog_1183_li
@changelog_1195_li
#The constructor for Csv objects is now public, and Csv.getInstance() is now deprecated.
@changelog_1184_li
@changelog_1196_li
#SimpleResultSet: updating a result set is now supported.
@changelog_1185_li
@changelog_1197_li
#Database URL: extra semicolons are not supported.
@changelog_1186_h2
@changelog_1198_h2
#Version 1.3.163 (2011-12-30)
@changelog_1187_li
@changelog_1199_li
#On out of disk space, the database could get corrupt sometimes, if later write operations succeeded. The same problem happened on other kinds of I/O exceptions (where one or some of the writes fail, but subsequent writes succeed). Now the file is closed on the first unsuccessful write operation, so that later requests fail consistently.
@changelog_1188_li
@changelog_1200_li
#DatabaseEventListener.diskSpaceIsLow() is no longer supported because it can't be guaranteed that it always works correctly.
@changelog_1189_li
@changelog_1201_li
#XMLTEXT now supports an optional parameter to escape newlines.
@changelog_1190_li
@changelog_1202_li
#XMLNODE now support an optional parameter to disable indentation.
@changelog_1191_li
@changelog_1203_li
#Csv.write now formats date, time, and timestamp values using java.sql.Date / Time / Timestamp.toString(). Previously, ResultSet.getString() was used, which didn't work well for Oracle.
@changelog_1192_li
@changelog_1204_li
#The shell script <code>h2.sh</code> can now be run from within a different directory. Thanks a lot to Daniel Serodio for the patch!
@changelog_1193_li
@changelog_1205_li
#The page size of a persistent database can now be queries using: select * from information_schema.settings where name = 'info.PAGE_SIZE'
@changelog_1194_li
@changelog_1206_li
#In the server mode, BLOB and CLOB objects are no longer closed when the result set is closed (as required by the JDBC spec).
@cheatSheet_1000_h1
......@@ -3767,7 +3803,7 @@ jdbc:h2:mem:
エンベッド (ローカル) データベース�?�接続
@features_1350_p
# The database URL for connecting to a local database is <code>jdbc:h2:[file:][&lt;path&gt;]&lt;databaseName&gt;</code>. The prefix <code>file:</code> is optional. If no or only a relative path is used, then the current working directory is used as a starting point. The case sensitivity of the path and database name depend on the operating system, however it is recommended to use lowercase letters only. The database name must be at least three characters long (a limitation of <code>File.createTempFile</code>). To point to the user home directory, use <code>~/</code>, as in: <code>jdbc:h2:~/test</code>.
# The database URL for connecting to a local database is <code>jdbc:h2:[file:][&lt;path&gt;]&lt;databaseName&gt;</code>. The prefix <code>file:</code> is optional. If no or only a relative path is used, then the current working directory is used as a starting point. The case sensitivity of the path and database name depend on the operating system, however it is recommended to use lowercase letters only. The database name must be at least three characters long (a limitation of <code>File.createTempFile</code>). The database name must not contain a semicolon. To point to the user home directory, use <code>~/</code>, as in: <code>jdbc:h2:~/test</code>.
@features_1351_h2
#In-Memory Databases
......@@ -7160,51 +7196,48 @@ H2 データベース エンジン
#Table Engine for H2
@mvstore_1110_p
# The plan is to use the MVStore as the default storage engine for the H2 database in the future (supporting SQL, JDBC, transactions, MVCC, and so on). This is work in progress. To try it out, append <code>;DEFAULT_TABLE_ENGINE=org.h2.mvstore.db.MVTableEngine</code> to the database URL. In general, functionality and performance should be similar than the current default storage engine (the page store). There are a few features that have not been implemented yet or are not complete:
# The plan is to use the MVStore as the default storage engine for the H2 database in the future (supporting SQL, JDBC, transactions, MVCC, and so on). This is work in progress. To try it out, append <code>;MV_STORE=TRUE</code> to the database URL. In general, functionality and performance should be similar than the current default storage engine (the page store). There are a few features that have not been implemented yet or are not complete:
@mvstore_1111_li
#Changing the cache size is currently not supported.
#There is still a file <code>.h2.db</code>, and the <code>.lock.db</code> file is still used to lock a database (long term, the plan is to no longer use those files).
@mvstore_1112_li
#The database metadata is still stored in a <code>.h2.db</code> file, and the <code>.lock.db</code> file is still used to lock a database (long term, the plan is to no longer use those files).
@mvstore_1113_li
#The database file(s) sometimes do not shrink as expected.
@mvstore_1114_h2
@mvstore_1113_h2
#Similar Projects and Differences to Other Storage Engines
@mvstore_1115_p
@mvstore_1114_p
# Unlike similar storage engines like LevelDB and Kyoto Cabinet, the MVStore is written in Java and can easily be embedded in a Java and Android application.
@mvstore_1116_p
@mvstore_1115_p
# The MVStore is somewhat similar to the Berkeley DB Java Edition because it is also written in Java, and is also a log structured storage, but the H2 license is more liberal.
@mvstore_1117_p
@mvstore_1116_p
# Like SQLite, the MVStore keeps all data in one file. Unlike SQLite, the MVStore uses is a log structured storage. The plan is to make the MVStore both easier to use as well as faster than SQLite. In a recent (very simple) test, the MVStore was about twice as fast as SQLite on Android.
@mvstore_1118_p
@mvstore_1117_p
# The API of the MVStore is similar to MapDB (previously known as JDBM) from Jan Kotek, and some code is shared between MapDB and JDBM. However, unlike MapDB, the MVStore uses is a log structured storage. The MVStore does not have a record size limit.
@mvstore_1119_h2
@mvstore_1118_h2
#Current State
@mvstore_1120_p
@mvstore_1119_p
# The code is still experimental at this stage. The API as well as the behavior may partially change. Features may be added and removed (even thought the main features will stay).
@mvstore_1121_h2
@mvstore_1120_h2
必�?�?�件
@mvstore_1122_p
@mvstore_1121_p
# The MVStore is included in the latest H2 jar file.
@mvstore_1123_p
@mvstore_1122_p
# There are no special requirements to use it. The MVStore should run on any JVM as well as on Android.
@mvstore_1124_p
@mvstore_1123_p
# To build just the MVStore (without the database engine), run:
@mvstore_1125_p
@mvstore_1124_p
# This will create the file <code>bin/h2mvstore-1.3.172.jar</code> (about 130 KB).
@performance_1000_h1
......
......@@ -546,199 +546,211 @@ 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.
changelog_1000_h1=Change Log
changelog_1001_h2=Next Version (unreleased)
changelog_1002_li=Server mode\: if there was an error while reading from a LOB, the session was closed in some cases.
changelog_1003_li=Issue 463\: Driver name and version are now the same in OsgiDataSourceFactory and JdbcDatabaseMetaData.
changelog_1004_li=JaQu\: The data type VARCHAR is now (again) used for Strings (no longer TEXT, except when explicitly set).
changelog_1005_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_1006_li=New column "information_schema.tables.row_count_estimate".
changelog_1007_li=Issue 468\: trunc(timestamp) could return the wrong value (+12 hours), and trunc(number) throw a NullPointerException.
changelog_1008_li=The expression trunc(number) threw a NullPointerException.
changelog_1009_li=Fixed a deadlock when updating LOB's concurrently. See TestLob.testDeadlock2().
changelog_1010_li=Fixed a deadlock related to very large temporary result sets.
changelog_1011_li=Add "-list" command line option to Shell tool so that result-list-mode can be triggered when reading from a file.
changelog_1012_li=Issue 474\: H2 MySQL Compatibility code fails to ignore "COMMENT" in CREATE TABLE, patch from Aaron Azeckoski.
changelog_1013_li=Issue 476\: Broken link in jaqu.html
changelog_1014_li=Fix potential UTF8 encoding issue in org.h2.store.FileStore, reported by Juerg Spiess.
changelog_1015_li=Improve error message when check constraint is broken, test case from Gili (cowwoc).
changelog_1016_li=Improve error message when we have a unique constraint violation, displays the offending key in the error message.
changelog_1017_li=Issue 478\: Support for "SHOW TRANSACTION ISOLATION LEVEL", patch from Andrew Franklin.
changelog_1018_li=Issue 475\: PgServer\: add support for CancelRequest, patch from Andrew Franklin.
changelog_1019_li=Issue 473\: PgServer missing -key option, patch from Andrew Franklin.
changelog_1020_li=Issue 471\: CREATE VIEW does not check user rights, patch from Andrew Franklin.
changelog_1021_li=Issue 477\: PgServer binary transmission of query params is unimplemented, patch from Andrew Franklin.
changelog_1022_li=Issue 479\: Support for SUBSTRING without a FROM condition, patch from Andrew Franklin.
changelog_1023_li=Issue 472\: PgServer does not work with any recent Postgres JDBC driver, patch from Andrew Franklin.
changelog_1024_li=Add syntax for passing additional parameters into custom TableEngine implementations.
changelog_1025_li=Issue 480\: Bugfix post issue 475, 477, patch from Andrew Franklin.
changelog_1026_li=Issue 481\: Further extensions to PgServer to support better support PG JDBC, patch from Andrew Franklin.
changelog_1027_li=Add support for spatial datatype GEOMETRY.
changelog_1028_li=Add support for in-memory spatial index.
changelog_1029_li=change the PageStore\#changeCount field from an int to a long, to cope with databases with very high transaction rates.
changelog_1030_li=Fix a NullPointerException when attempting to add foreign key reference to a view.
changelog_1031_li=Add sufficient ClientInfo support to our javax.sql.Connection implementation to make WebSphere happy.
changelog_1032_li=Issue 482\: class LobStorageBackend$LobInputStream does not override the method InputStream.available().
changelog_1033_h2=Version 1.3.172 (2013-05-25)
changelog_1034_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_1035_li=The auto-analyze feature now only reads 1000 rows per table instead of 10000.
changelog_1036_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_1037_li=Issue 454\: Use Charset for type-safety.
changelog_1038_li=Queries with both LIMIT and OFFSET could throw an IllegalArgumentException.
changelog_1039_li=MVStore\: multiple issues were fixed\: 460, 461, 462, 464, 466.
changelog_1040_li=MVStore\: larger stores (multiple GB) are now much faster.
changelog_1041_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_1042_li=Support TRUNC(timestamp) for improved Oracle compatibility.
changelog_1043_li=Add support for CREATE TABLE TEST (ID BIGSERIAL) for PostgreSQL compatibility. Patch from Jesse Long.
changelog_1044_li=Add new collation command SET BINARY_COLLATION UNSIGNED, helps with people testing BINARY columns in MySQL mode.
changelog_1045_li=Issue 453\: ABBA race conditions in TABLE LINK connection sharing.
changelog_1046_li=Issue 449\: Postgres Serial data type should not automatically be marked as primary key
changelog_1047_li=Issue 406\: Support "select h2version()"
changelog_1048_li=Issue 389\: When there is a multi-column primary key, H2 does not seem to always pick the right index
changelog_1049_li=Issue 305\: Implement SELECT ... FOR FETCH ONLY
changelog_1050_li=Issue 274\: Sybase/MSSQLServer compatibility - Add GETDATE and CHARINDEX system functions
changelog_1051_li=Issue 274\: Sybase/MSSQLServer compatibility - swap parameters of CONVERT function.
changelog_1052_li=Issue 274\: Sybase/MSSQLServer compatibility - support index clause e.g. "select * from test (index table1_index)"
changelog_1053_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_1054_li=Issue 442\: Groovy patch for SourceCompiler (function ALIAS)
changelog_1055_li=Issue 459\: Improve LOB documentation
changelog_1056_h2=Version 1.3.171 (2013-03-17)
changelog_1057_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_1058_li=H2 Console\: the session timeout can now be configured using the system property "h2.consoleTimeout".
changelog_1059_li=Issue 431\: Improved compatibility with MySQL\: support for "ENGINE\=InnoDB charset\=UTF8" when creating a table.
changelog_1060_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_1061_li=Issue 434\: H2 Console didn't work in the Chrome browser due to a wrong viewport argument.
changelog_1062_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_1063_li=The SQL script generated by the "script" command contained inconsistent newlines on Windows.
changelog_1064_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_1065_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_1066_li=Optimize IN(...) queries\: there was a bug in version 1.3.170 for comparison of the type "X IN(NULL, NULL)". Fixed.
changelog_1067_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_1068_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_1069_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_1070_li=MVStore\: encrypted stores are now supported. Only standardized algorithms are used\: PBKDF2, SHA-256, XTS-AES, AES-128.
changelog_1071_li=MVStore\: improved API thanks to Simo Tripodi.
changelog_1072_li=MVStore\: maps can now be renamed.
changelog_1073_li=MVStore\: store the file header also at the end of each chunk, which results in a further reduced number of write operations.
changelog_1074_li=MVStore\: a map implementation that supports concurrent operations.
changelog_1075_li=MVStore\: unified exception handling; the version is included in the messages.
changelog_1076_li=MVStore\: old data is now retained for 45 seconds by default.
changelog_1077_li=MVStore\: compress is now disabled by default, and can be enabled on request.
changelog_1078_li=Support ALTER TABLE ADD ... AFTER. Patch from Andrew Gaul (argaul at gmail.com). Fixes issue 401.
changelog_1079_li=Improved OSGi support. H2 now registers itself as a DataSourceFactory service. Fixes issue 365.
changelog_1080_li=Add a DISK_SPACE_USED system function. Fixes issue 270.
changelog_1081_li=Fix a compile-time ambiguity when compiling with JDK7, thanks to a patch from Lukas Eder.
changelog_1082_li=Supporting dropping an index for Lucene full-text indexes.
changelog_1083_li=Optimized performance for SELECT ... ORDER BY X LIMIT Y OFFSET Z queries for in-memory databases using partial sort (by Sergi Vladykin).
changelog_1084_li=Experimental off-heap memory storage engine "nioMemFS\:" and "nioMemLZF\:", suggestion from Mark Addleman.
changelog_1085_li=Issue 438\: JdbcDatabaseMetaData.getSchemas() is no longer supported as of 1.3.169.
changelog_1086_li=MySQL compatibility\: support for ALTER TABLE tableName MODIFY [COLUMN] columnName columnDef. Patch from Ville Koskela.
changelog_1087_li=Issue 404\: SHOW COLUMNS FROM tableName does not work with ALLOW_LITERALS\=NUMBERS.
changelog_1088_li=Throw an explicit error to make it clear we don't support the TRIGGER combination of SELECT and FOR EACH ROW.
changelog_1089_li=Issue 439\: Utils.sortTopN does not handle single-element arrays.
changelog_1090_h2=Version 1.3.170 (2012-11-30)
changelog_1091_li=Issue 407\: The TriggerAdapter didn't work with CLOB and BLOB columns.
changelog_1092_li=PostgreSQL compatibility\: support for data types BIGSERIAL and SERIAL as an alias for AUTO_INCREMENT.
changelog_1093_li=Issue 417\: H2 Console\: the web session timeout didn't work, resulting in a memory leak. This was only a problem if the H2 Console was run for a long time and many sessions were opened.
changelog_1094_li=Issue 412\: Running the Server tool with just the option "-browser" will now log a warning.
changelog_1095_li=Issue 411\: CloseWatcher registration was not concurrency-safe.
changelog_1096_li=MySQL compatibility\: support for CONCAT_WS. Thanks a lot to litailang for the patch\!
changelog_1097_li=PostgreSQL compatibility\: support for EXTRACT(WEEK FROM dateColumn). Thanks to Prashant Bhat for the patch\!
changelog_1098_li=Fix for a bug where we would sometimes use the wrong unique constraint to validate foreign key constraints.
changelog_1099_li=Support BOM at the beginning of files for the RUNSCRIPT command
changelog_1100_li=Fix in calling SET @X \= IDENTITY() where it would return NULL incorrectly
changelog_1101_li=Fix ABBA deadlock between adding a constraint and the H2-Log-Writer thread.
changelog_1102_li=Optimize IN(...) queries where the values are constant and of the same type.
changelog_1103_li=Restore tool\: the parameter "quiet" was not used and is now removed.
changelog_1104_li=Fix ConcurrentModificationException when creating tables and executing SHOW TABLES in parallel. Reported by Viktor Voytovych.
changelog_1105_li=Serialization is now pluggable using the system property "h2.javaObjectSerializer". Thanks to Sergi Vladykin for the patch\!
changelog_1106_h2=Version 1.3.169 (2012-09-09)
changelog_1107_li=The default jar file is now compiled for Java 6.
changelog_1108_li=The new jar file will probably not end up in the central Maven repository in the next few weeks because Sonatype has disabled automatic synchronization from SourceForge (which they call 'legacy sync' now). It will probably take some time until this is sorted out. The H2 jar files are deployed to http\://h2database.com/m2-repo/com/h2database/h2/maven-metadata.xml and http\://hsql.sourceforge.net/m2-repo/com/h2database/h2/maven-metadata.xml as usual.
changelog_1109_li=A part of the documentation and the H2 Console has been changed to support the Apple retina display.
changelog_1110_li=The CreateCluster tool could not be used if the source database contained a CLOB or BLOB. The root cause was that the TCP server did not synchronize on the session, which caused a problem when using the exclusive mode.
changelog_1111_li=Statement.getQueryTimeout()\: only the first call to this method will query the database. If the query timeout was changed in another way than calling setQueryTimeout, this method will always return the last value. This was changed because Hibernate calls getQueryTimeout() a lot.
changelog_1112_li=Issue 416\: PreparedStatement.setNString throws AbstractMethodError. All implemented JDBC 4 methods that don't break compatibility with Java 5 are now included in the default jar file.
changelog_1113_li=Issue 414\: for some functions, the parameters were evaluated twice (for example "char(nextval(..))" ran "nextval(..)" twice).
changelog_1114_li=The ResultSetMetaData methods getSchemaName and getTableName could return null instead of "" (an empty string) as specified in the JDBC API.
changelog_1115_li=Added compatibility for "SET NAMES" query in MySQL compatibility mode.
changelog_1116_h2=Version 1.3.168 (2012-07-13)
changelog_1117_li=The message "Transaction log could not be truncated" was sometimes written to the .trace.db file even if there was no problem truncating the transaction log.
changelog_1118_li=New system property "h2.serializeJavaObject" (default\: true) that allows to disable serializing Java objects, so that the objects compareTo and toString methods can be used.
changelog_1119_li=Dylan has translated the H2 Console tool to Korean. Thanks a lot\!
changelog_1120_li=Executing the statement CREATE INDEX IF ALREADY EXISTS if the index already exists no longer fails for a read only database.
changelog_1121_li=MVCC\: concurrently updating a row could result in the row to appear deleted in the second connection, if there are multiple unique indexes (or a primary key and at least one unique index). Thanks a lot to Teruo for the patch\!
changelog_1122_li=Fulltext search\: in-memory Lucene indexes are now supported.
changelog_1123_li=Fulltext search\: UUID primary keys are now supported.
changelog_1124_li=Apache Tomcat 7.x will now longer log a warning when unloading the web application, if using a connection pool.
changelog_1125_li=H2 Console\: support the Midori browser (for Debian / Raspberry Pi)
changelog_1126_li=When opening a remote session, don't open a temporary file if the trace level is set to zero
changelog_1127_li=Use HMAC for authenticating remote LOB id's, removing the need for maintaining a cache, and removing the limit on the number of LOBs per result set.
changelog_1128_li=H2 Console\: HTML and XML documents can now be edited in an updatable result set. There is (limited) support for editing multi-line documents.
changelog_1129_h2=Version 1.3.167 (2012-05-23)
changelog_1130_li=H2 Console\: when editing a row, an empty varchar column was replaced with a single space.
changelog_1131_li=Lukas Eder has updated the jOOQ documentation.
changelog_1132_li=Some nested joins could not be executed, for example\: select * from (select * from (select * from a) a right join b b) c;
changelog_1133_li=MS SQL Server compatibility\: ISNULL is now an alias for IFNULL.
changelog_1134_li=Terrence Huang has completed the translation of the H2 Console tool to Chinese. Thanks a lot\!
changelog_1135_li=Server mode\: the number of CLOB / BLOB values that were cached on the server is now the maximum of\: 5 times the SERVER_RESULT_SET_FETCH_SIZE (which is 100 by default), and SysProperties.SERVER_CACHED_OBJECTS.
changelog_1136_li=In the trace file, the query execution time was incorrect in some cases, specially for the statement SET TRACE_LEVEL_FILE 2.
changelog_1137_li=The feature LOG_SIZE_LIMIT that was introduced in version 1.3.165 did not always work correctly (specially with regards to multithreading) and has been removed. The message "Transaction log could not be truncated" is still written to the .trace.db file if required.
changelog_1138_li=Then reading from a resource using the prefix "classpath\:", the ContextClassLoader is now used if the resource can't be read otherwise.
changelog_1139_li=DatabaseEventListener now calls setProgress whenever a statement starts and ends.
changelog_1140_li=DatabaseEventListener now calls setProgress periodically while a statement is running.
changelog_1141_li=The table INFORMATION_SCHEMA.FUNCTION_ALIASES now includes a column TYPE_NAME.
changelog_1142_li=Issue 378\: when using views, the wrong values were bound to a parameter in some cases.
changelog_1143_li=Terrence Huang has translated the error messages to Chinese. Thanks a lot\!
changelog_1144_li=TRUNC was added as an alias for TRUNCATE.
changelog_1145_li=Small optimisation for accessing result values by column name.
changelog_1146_li=Fix for bug in Statement.getMoreResults(int)
changelog_1147_li=The SCRIPT statements now supports filtering by schema and table. Thanks a lot to Jacob Qvortrup for providing the patch\!
changelog_1148_h2=Version 1.3.166 (2012-04-08)
changelog_1149_li=Indexes on column that are larger than half the page size (wide indexes) could sometimes get corrupt, resulting in an ArrayIndexOutOfBoundsException in PageBtree.getRow or "Row not found" in PageBtreeLeaf. Also, such indexes used too much disk space.
changelog_1150_li=Server mode\: when retrieving more than 64 rows each containing a CLOB or BLOB, the error message "The object is already closed" was thrown.
changelog_1151_li=ConvertTraceFile\: the time in the trace file is now parsed as a long.
changelog_1152_li=Invalid connection settings are now detected.
changelog_1153_li=Issue 387\: WHERE condition getting pushed into sub-query with LIMIT.
changelog_1154_h2=Version 1.3.165 (2012-03-18)
changelog_1155_li=Better string representation for decimal values (for example 0.00000000 instead of 0E-26).
changelog_1156_li=Prepared statements could only be re-used if the same data types were used the second time they were executed.
changelog_1157_li=In error messages about referential constraint violation, the values are now included.
changelog_1158_li=SCRIPT and RUNSCRIPT\: the password can now be set using a prepared statement. Previously, it was required to be a literal in the SQL statement.
changelog_1159_li=MySQL compatibility\: SUBSTR with a negative start index now works like MySQL.
changelog_1160_li=When enabling autocommit, the transaction is now committed (as required by the JDBC API).
changelog_1161_li=The shell script <code>h2.sh</code> did not work with spaces in the path. It also works now with quoted spaces in the argument list. Thanks a lot to Shimizu Fumiyuki for the patch\!
changelog_1162_li=If the transaction log could not be truncated because of an uncommitted transaction, now "Transaction log could not be truncated" is written to the .trace.db file. Before, the database file was growing and it was hard to find out what the root cause was. To avoid the database file from growing, a new feature to automatically rollback the oldest transaction is available now. To enable it, append ;LOG_SIZE_LIMIT\=32 to the database URL (in that case, the oldest session is rolled back if the transaction log is 32 MB).
changelog_1163_li=ALTER TABLE ADD can now add more than one column at a time.
changelog_1164_li=Issue 380\: ALTER TABLE ADD FOREIGN KEY with an explicit index didn't verify the index can be used, which would lead to a NullPointerException later on.
changelog_1165_li=Issue 384\: the wrong kind of exception (NullPointerException) was thrown in a UNION query with an incorrect ORDER BY expression.
changelog_1166_li=Issue 362\: support LIMIT in UPDATE statements.
changelog_1167_li=Browser\: if no default browser is set, Google Chrome is now used if available. If not available, then Konqueror, Netscape, or Opera is used if available (as before).
changelog_1168_li=CSV tool\: new feature to disable writing the column header (option writeColumnHeader).
changelog_1169_li=CSV tool\: new feature to preserve the case sensitivity of column names (option caseSensitiveColumnNames).
changelog_1170_li=PostgreSQL compatibility\: LOG(x) is base 10 in the PostgreSQL mode.
changelog_1171_h2=Version 1.3.164 (2012-02-03)
changelog_1172_li=New built-in function ARRAY_CONTAINS.
changelog_1173_li=Some DatabaseMetaData methods didn't work when using ALLOW_LITERALS NONE.
changelog_1174_li=Trying to convert a VARCHAR to UUID will now fail if the text contains a character that is not a hex digit, '-', or not a whitespace.
changelog_1175_li=TriggerAdapter\: in "before" triggers, values can be changed using the ResultSet.updateX methods.
changelog_1176_li=Creating a table with column data type NULL now works (even if not very useful).
changelog_1177_li=ALTER TABLE ALTER COLUMN no longer copies the data for widening conversions (for example if only the precision was increased) unless necessary.
changelog_1178_li=Multi-threaded kernel\: concurrently running an online backup and updating the database resulted in a broken (transactionally incorrect) backup file in some cases.
changelog_1179_li=The script created by SCRIPT DROP did not always work if multiple views existed that depend on each other.
changelog_1180_li=MathUtils.getSecureRandom could log a warning to System.err in case the /dev/random is very slow, and the System.getProperties().toString() returned a string larger than 64 KB.
changelog_1181_li=The database file locking mechanism "FS" (;FILE_LOCK\=FS) did not work on Linux since version 1.3.161.
changelog_1182_li=Sequences\: the functions NEXTVAL and CURRVAL did not work as expected when using quoted, mixed case sequence names.
changelog_1183_li=The constructor for Csv objects is now public, and Csv.getInstance() is now deprecated.
changelog_1184_li=SimpleResultSet\: updating a result set is now supported.
changelog_1185_li=Database URL\: extra semicolons are not supported.
changelog_1186_h2=Version 1.3.163 (2011-12-30)
changelog_1187_li=On out of disk space, the database could get corrupt sometimes, if later write operations succeeded. The same problem happened on other kinds of I/O exceptions (where one or some of the writes fail, but subsequent writes succeed). Now the file is closed on the first unsuccessful write operation, so that later requests fail consistently.
changelog_1188_li=DatabaseEventListener.diskSpaceIsLow() is no longer supported because it can't be guaranteed that it always works correctly.
changelog_1189_li=XMLTEXT now supports an optional parameter to escape newlines.
changelog_1190_li=XMLNODE now support an optional parameter to disable indentation.
changelog_1191_li=Csv.write now formats date, time, and timestamp values using java.sql.Date / Time / Timestamp.toString(). Previously, ResultSet.getString() was used, which didn't work well for Oracle.
changelog_1192_li=The shell script <code>h2.sh</code> can now be run from within a different directory. Thanks a lot to Daniel Serodio for the patch\!
changelog_1193_li=The page size of a persistent database can now be queries using\: select * from information_schema.settings where name \= 'info.PAGE_SIZE'
changelog_1194_li=In the server mode, BLOB and CLOB objects are no longer closed when the result set is closed (as required by the JDBC spec).
changelog_1002_li=Support empty statements that just contains a comment.
changelog_1003_li=Server mode\: if there was an error while reading from a LOB, the session was closed in some cases.
changelog_1004_li=Issue 463\: Driver name and version are now the same in OsgiDataSourceFactory and JdbcDatabaseMetaData.
changelog_1005_li=JaQu\: The data type VARCHAR is now (again) used for Strings (no longer TEXT, except when explicitly set).
changelog_1006_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_1007_li=New column "information_schema.tables.row_count_estimate".
changelog_1008_li=Issue 468\: trunc(timestamp) could return the wrong value (+12 hours), and trunc(number) throw a NullPointerException.
changelog_1009_li=The expression trunc(number) threw a NullPointerException.
changelog_1010_li=Fixed a deadlock when updating LOB's concurrently. See TestLob.testDeadlock2().
changelog_1011_li=Fixed a deadlock related to very large temporary result sets.
changelog_1012_li=Add "-list" command line option to Shell tool so that result-list-mode can be triggered when reading from a file.
changelog_1013_li=Issue 474\: H2 MySQL Compatibility code fails to ignore "COMMENT" in CREATE TABLE, patch from Aaron Azeckoski.
changelog_1014_li=Issue 476\: Broken link in jaqu.html
changelog_1015_li=Fix potential UTF8 encoding issue in org.h2.store.FileStore, reported by Juerg Spiess.
changelog_1016_li=Improve error message when check constraint is broken, test case from Gili (cowwoc).
changelog_1017_li=Improve error message when we have a unique constraint violation, displays the offending key in the error message.
changelog_1018_li=Issue 478\: Support for "SHOW TRANSACTION ISOLATION LEVEL", patch from Andrew Franklin.
changelog_1019_li=Issue 475\: PgServer\: add support for CancelRequest, patch from Andrew Franklin.
changelog_1020_li=Issue 473\: PgServer missing -key option, patch from Andrew Franklin.
changelog_1021_li=Issue 471\: CREATE VIEW does not check user rights, patch from Andrew Franklin.
changelog_1022_li=Issue 477\: PgServer binary transmission of query params is unimplemented, patch from Andrew Franklin.
changelog_1023_li=Issue 479\: Support for SUBSTRING without a FROM condition, patch from Andrew Franklin.
changelog_1024_li=Issue 472\: PgServer does not work with any recent Postgres JDBC driver, patch from Andrew Franklin.
changelog_1025_li=Add syntax for passing additional parameters into custom TableEngine implementations.
changelog_1026_li=Issue 480\: Bugfix post issue 475, 477, patch from Andrew Franklin.
changelog_1027_li=Issue 481\: Further extensions to PgServer to support better support PG JDBC, patch from Andrew Franklin.
changelog_1028_li=Add support for spatial datatype GEOMETRY.
changelog_1029_li=Add support for in-memory spatial index.
changelog_1030_li=change the PageStore\#changeCount field from an int to a long, to cope with databases with very high transaction rates.
changelog_1031_li=Fix a NullPointerException when attempting to add foreign key reference to a view.
changelog_1032_li=Add sufficient ClientInfo support to our javax.sql.Connection implementation to make WebSphere happy.
changelog_1033_li=Issue 482\: class LobStorageBackend$LobInputStream does not override the method InputStream.available().
changelog_1034_li=Fix corruption resulting from a mix of the "WRITE_DELAY\=0" option and "SELECT DISTINCT" queries that don't fit in memory.
changelog_1035_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_1036_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_1037_li=MySQL compatibility, support the "AUTO_INCREMENT\=3" part of the CREATE TABLE statement.
changelog_1038_li=Issue 486\: MySQL compatibility, support the "DEFAULT CHARSET" part of the CREATE TABLE statement.
changelog_1039_li=Issue 487\: support the MySQL "SET foreign_key_checks \= 0" command
changelog_1040_li=Issue 490\: support MySQL "USING BTREE" index declaration
changelog_1041_li=Issue 485\: Database get corrupted when column is renamed for which check constraint was defined inside create table statement.
changelog_1042_li=Issue 499\: support MySQL "UNIQUE KEY (ID) USING BTREE" constraint syntax
changelog_1043_li=Issue 501\: "CREATE TABLE .. WITH" not serialized, patch from nico.devel
changelog_1044_li=Avoid problems with runtime-compiled ALIAS methods when people have set the JAVA_TOOL_OPTIONS environment variable.
changelog_1045_h2=Version 1.3.172 (2013-05-25)
changelog_1046_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_1047_li=The auto-analyze feature now only reads 1000 rows per table instead of 10000.
changelog_1048_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_1049_li=Issue 454\: Use Charset for type-safety.
changelog_1050_li=Queries with both LIMIT and OFFSET could throw an IllegalArgumentException.
changelog_1051_li=MVStore\: multiple issues were fixed\: 460, 461, 462, 464, 466.
changelog_1052_li=MVStore\: larger stores (multiple GB) are now much faster.
changelog_1053_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_1054_li=Support TRUNC(timestamp) for improved Oracle compatibility.
changelog_1055_li=Add support for CREATE TABLE TEST (ID BIGSERIAL) for PostgreSQL compatibility. Patch from Jesse Long.
changelog_1056_li=Add new collation command SET BINARY_COLLATION UNSIGNED, helps with people testing BINARY columns in MySQL mode.
changelog_1057_li=Issue 453\: ABBA race conditions in TABLE LINK connection sharing.
changelog_1058_li=Issue 449\: Postgres Serial data type should not automatically be marked as primary key
changelog_1059_li=Issue 406\: Support "select h2version()"
changelog_1060_li=Issue 389\: When there is a multi-column primary key, H2 does not seem to always pick the right index
changelog_1061_li=Issue 305\: Implement SELECT ... FOR FETCH ONLY
changelog_1062_li=Issue 274\: Sybase/MSSQLServer compatibility - Add GETDATE and CHARINDEX system functions
changelog_1063_li=Issue 274\: Sybase/MSSQLServer compatibility - swap parameters of CONVERT function.
changelog_1064_li=Issue 274\: Sybase/MSSQLServer compatibility - support index clause e.g. "select * from test (index table1_index)"
changelog_1065_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_1066_li=Issue 442\: Groovy patch for SourceCompiler (function ALIAS)
changelog_1067_li=Issue 459\: Improve LOB documentation
changelog_1068_h2=Version 1.3.171 (2013-03-17)
changelog_1069_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_1070_li=H2 Console\: the session timeout can now be configured using the system property "h2.consoleTimeout".
changelog_1071_li=Issue 431\: Improved compatibility with MySQL\: support for "ENGINE\=InnoDB charset\=UTF8" when creating a table.
changelog_1072_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_1073_li=Issue 434\: H2 Console didn't work in the Chrome browser due to a wrong viewport argument.
changelog_1074_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_1075_li=The SQL script generated by the "script" command contained inconsistent newlines on Windows.
changelog_1076_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_1077_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_1078_li=Optimize IN(...) queries\: there was a bug in version 1.3.170 for comparison of the type "X IN(NULL, NULL)". Fixed.
changelog_1079_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_1080_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_1081_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_1082_li=MVStore\: encrypted stores are now supported. Only standardized algorithms are used\: PBKDF2, SHA-256, XTS-AES, AES-128.
changelog_1083_li=MVStore\: improved API thanks to Simo Tripodi.
changelog_1084_li=MVStore\: maps can now be renamed.
changelog_1085_li=MVStore\: store the file header also at the end of each chunk, which results in a further reduced number of write operations.
changelog_1086_li=MVStore\: a map implementation that supports concurrent operations.
changelog_1087_li=MVStore\: unified exception handling; the version is included in the messages.
changelog_1088_li=MVStore\: old data is now retained for 45 seconds by default.
changelog_1089_li=MVStore\: compress is now disabled by default, and can be enabled on request.
changelog_1090_li=Support ALTER TABLE ADD ... AFTER. Patch from Andrew Gaul (argaul at gmail.com). Fixes issue 401.
changelog_1091_li=Improved OSGi support. H2 now registers itself as a DataSourceFactory service. Fixes issue 365.
changelog_1092_li=Add a DISK_SPACE_USED system function. Fixes issue 270.
changelog_1093_li=Fix a compile-time ambiguity when compiling with JDK7, thanks to a patch from Lukas Eder.
changelog_1094_li=Supporting dropping an index for Lucene full-text indexes.
changelog_1095_li=Optimized performance for SELECT ... ORDER BY X LIMIT Y OFFSET Z queries for in-memory databases using partial sort (by Sergi Vladykin).
changelog_1096_li=Experimental off-heap memory storage engine "nioMemFS\:" and "nioMemLZF\:", suggestion from Mark Addleman.
changelog_1097_li=Issue 438\: JdbcDatabaseMetaData.getSchemas() is no longer supported as of 1.3.169.
changelog_1098_li=MySQL compatibility\: support for ALTER TABLE tableName MODIFY [COLUMN] columnName columnDef. Patch from Ville Koskela.
changelog_1099_li=Issue 404\: SHOW COLUMNS FROM tableName does not work with ALLOW_LITERALS\=NUMBERS.
changelog_1100_li=Throw an explicit error to make it clear we don't support the TRIGGER combination of SELECT and FOR EACH ROW.
changelog_1101_li=Issue 439\: Utils.sortTopN does not handle single-element arrays.
changelog_1102_h2=Version 1.3.170 (2012-11-30)
changelog_1103_li=Issue 407\: The TriggerAdapter didn't work with CLOB and BLOB columns.
changelog_1104_li=PostgreSQL compatibility\: support for data types BIGSERIAL and SERIAL as an alias for AUTO_INCREMENT.
changelog_1105_li=Issue 417\: H2 Console\: the web session timeout didn't work, resulting in a memory leak. This was only a problem if the H2 Console was run for a long time and many sessions were opened.
changelog_1106_li=Issue 412\: Running the Server tool with just the option "-browser" will now log a warning.
changelog_1107_li=Issue 411\: CloseWatcher registration was not concurrency-safe.
changelog_1108_li=MySQL compatibility\: support for CONCAT_WS. Thanks a lot to litailang for the patch\!
changelog_1109_li=PostgreSQL compatibility\: support for EXTRACT(WEEK FROM dateColumn). Thanks to Prashant Bhat for the patch\!
changelog_1110_li=Fix for a bug where we would sometimes use the wrong unique constraint to validate foreign key constraints.
changelog_1111_li=Support BOM at the beginning of files for the RUNSCRIPT command
changelog_1112_li=Fix in calling SET @X \= IDENTITY() where it would return NULL incorrectly
changelog_1113_li=Fix ABBA deadlock between adding a constraint and the H2-Log-Writer thread.
changelog_1114_li=Optimize IN(...) queries where the values are constant and of the same type.
changelog_1115_li=Restore tool\: the parameter "quiet" was not used and is now removed.
changelog_1116_li=Fix ConcurrentModificationException when creating tables and executing SHOW TABLES in parallel. Reported by Viktor Voytovych.
changelog_1117_li=Serialization is now pluggable using the system property "h2.javaObjectSerializer". Thanks to Sergi Vladykin for the patch\!
changelog_1118_h2=Version 1.3.169 (2012-09-09)
changelog_1119_li=The default jar file is now compiled for Java 6.
changelog_1120_li=The new jar file will probably not end up in the central Maven repository in the next few weeks because Sonatype has disabled automatic synchronization from SourceForge (which they call 'legacy sync' now). It will probably take some time until this is sorted out. The H2 jar files are deployed to http\://h2database.com/m2-repo/com/h2database/h2/maven-metadata.xml and http\://hsql.sourceforge.net/m2-repo/com/h2database/h2/maven-metadata.xml as usual.
changelog_1121_li=A part of the documentation and the H2 Console has been changed to support the Apple retina display.
changelog_1122_li=The CreateCluster tool could not be used if the source database contained a CLOB or BLOB. The root cause was that the TCP server did not synchronize on the session, which caused a problem when using the exclusive mode.
changelog_1123_li=Statement.getQueryTimeout()\: only the first call to this method will query the database. If the query timeout was changed in another way than calling setQueryTimeout, this method will always return the last value. This was changed because Hibernate calls getQueryTimeout() a lot.
changelog_1124_li=Issue 416\: PreparedStatement.setNString throws AbstractMethodError. All implemented JDBC 4 methods that don't break compatibility with Java 5 are now included in the default jar file.
changelog_1125_li=Issue 414\: for some functions, the parameters were evaluated twice (for example "char(nextval(..))" ran "nextval(..)" twice).
changelog_1126_li=The ResultSetMetaData methods getSchemaName and getTableName could return null instead of "" (an empty string) as specified in the JDBC API.
changelog_1127_li=Added compatibility for "SET NAMES" query in MySQL compatibility mode.
changelog_1128_h2=Version 1.3.168 (2012-07-13)
changelog_1129_li=The message "Transaction log could not be truncated" was sometimes written to the .trace.db file even if there was no problem truncating the transaction log.
changelog_1130_li=New system property "h2.serializeJavaObject" (default\: true) that allows to disable serializing Java objects, so that the objects compareTo and toString methods can be used.
changelog_1131_li=Dylan has translated the H2 Console tool to Korean. Thanks a lot\!
changelog_1132_li=Executing the statement CREATE INDEX IF ALREADY EXISTS if the index already exists no longer fails for a read only database.
changelog_1133_li=MVCC\: concurrently updating a row could result in the row to appear deleted in the second connection, if there are multiple unique indexes (or a primary key and at least one unique index). Thanks a lot to Teruo for the patch\!
changelog_1134_li=Fulltext search\: in-memory Lucene indexes are now supported.
changelog_1135_li=Fulltext search\: UUID primary keys are now supported.
changelog_1136_li=Apache Tomcat 7.x will now longer log a warning when unloading the web application, if using a connection pool.
changelog_1137_li=H2 Console\: support the Midori browser (for Debian / Raspberry Pi)
changelog_1138_li=When opening a remote session, don't open a temporary file if the trace level is set to zero
changelog_1139_li=Use HMAC for authenticating remote LOB id's, removing the need for maintaining a cache, and removing the limit on the number of LOBs per result set.
changelog_1140_li=H2 Console\: HTML and XML documents can now be edited in an updatable result set. There is (limited) support for editing multi-line documents.
changelog_1141_h2=Version 1.3.167 (2012-05-23)
changelog_1142_li=H2 Console\: when editing a row, an empty varchar column was replaced with a single space.
changelog_1143_li=Lukas Eder has updated the jOOQ documentation.
changelog_1144_li=Some nested joins could not be executed, for example\: select * from (select * from (select * from a) a right join b b) c;
changelog_1145_li=MS SQL Server compatibility\: ISNULL is now an alias for IFNULL.
changelog_1146_li=Terrence Huang has completed the translation of the H2 Console tool to Chinese. Thanks a lot\!
changelog_1147_li=Server mode\: the number of CLOB / BLOB values that were cached on the server is now the maximum of\: 5 times the SERVER_RESULT_SET_FETCH_SIZE (which is 100 by default), and SysProperties.SERVER_CACHED_OBJECTS.
changelog_1148_li=In the trace file, the query execution time was incorrect in some cases, specially for the statement SET TRACE_LEVEL_FILE 2.
changelog_1149_li=The feature LOG_SIZE_LIMIT that was introduced in version 1.3.165 did not always work correctly (specially with regards to multithreading) and has been removed. The message "Transaction log could not be truncated" is still written to the .trace.db file if required.
changelog_1150_li=Then reading from a resource using the prefix "classpath\:", the ContextClassLoader is now used if the resource can't be read otherwise.
changelog_1151_li=DatabaseEventListener now calls setProgress whenever a statement starts and ends.
changelog_1152_li=DatabaseEventListener now calls setProgress periodically while a statement is running.
changelog_1153_li=The table INFORMATION_SCHEMA.FUNCTION_ALIASES now includes a column TYPE_NAME.
changelog_1154_li=Issue 378\: when using views, the wrong values were bound to a parameter in some cases.
changelog_1155_li=Terrence Huang has translated the error messages to Chinese. Thanks a lot\!
changelog_1156_li=TRUNC was added as an alias for TRUNCATE.
changelog_1157_li=Small optimisation for accessing result values by column name.
changelog_1158_li=Fix for bug in Statement.getMoreResults(int)
changelog_1159_li=The SCRIPT statements now supports filtering by schema and table. Thanks a lot to Jacob Qvortrup for providing the patch\!
changelog_1160_h2=Version 1.3.166 (2012-04-08)
changelog_1161_li=Indexes on column that are larger than half the page size (wide indexes) could sometimes get corrupt, resulting in an ArrayIndexOutOfBoundsException in PageBtree.getRow or "Row not found" in PageBtreeLeaf. Also, such indexes used too much disk space.
changelog_1162_li=Server mode\: when retrieving more than 64 rows each containing a CLOB or BLOB, the error message "The object is already closed" was thrown.
changelog_1163_li=ConvertTraceFile\: the time in the trace file is now parsed as a long.
changelog_1164_li=Invalid connection settings are now detected.
changelog_1165_li=Issue 387\: WHERE condition getting pushed into sub-query with LIMIT.
changelog_1166_h2=Version 1.3.165 (2012-03-18)
changelog_1167_li=Better string representation for decimal values (for example 0.00000000 instead of 0E-26).
changelog_1168_li=Prepared statements could only be re-used if the same data types were used the second time they were executed.
changelog_1169_li=In error messages about referential constraint violation, the values are now included.
changelog_1170_li=SCRIPT and RUNSCRIPT\: the password can now be set using a prepared statement. Previously, it was required to be a literal in the SQL statement.
changelog_1171_li=MySQL compatibility\: SUBSTR with a negative start index now works like MySQL.
changelog_1172_li=When enabling autocommit, the transaction is now committed (as required by the JDBC API).
changelog_1173_li=The shell script <code>h2.sh</code> did not work with spaces in the path. It also works now with quoted spaces in the argument list. Thanks a lot to Shimizu Fumiyuki for the patch\!
changelog_1174_li=If the transaction log could not be truncated because of an uncommitted transaction, now "Transaction log could not be truncated" is written to the .trace.db file. Before, the database file was growing and it was hard to find out what the root cause was. To avoid the database file from growing, a new feature to automatically rollback the oldest transaction is available now. To enable it, append ;LOG_SIZE_LIMIT\=32 to the database URL (in that case, the oldest session is rolled back if the transaction log is 32 MB).
changelog_1175_li=ALTER TABLE ADD can now add more than one column at a time.
changelog_1176_li=Issue 380\: ALTER TABLE ADD FOREIGN KEY with an explicit index didn't verify the index can be used, which would lead to a NullPointerException later on.
changelog_1177_li=Issue 384\: the wrong kind of exception (NullPointerException) was thrown in a UNION query with an incorrect ORDER BY expression.
changelog_1178_li=Issue 362\: support LIMIT in UPDATE statements.
changelog_1179_li=Browser\: if no default browser is set, Google Chrome is now used if available. If not available, then Konqueror, Netscape, or Opera is used if available (as before).
changelog_1180_li=CSV tool\: new feature to disable writing the column header (option writeColumnHeader).
changelog_1181_li=CSV tool\: new feature to preserve the case sensitivity of column names (option caseSensitiveColumnNames).
changelog_1182_li=PostgreSQL compatibility\: LOG(x) is base 10 in the PostgreSQL mode.
changelog_1183_h2=Version 1.3.164 (2012-02-03)
changelog_1184_li=New built-in function ARRAY_CONTAINS.
changelog_1185_li=Some DatabaseMetaData methods didn't work when using ALLOW_LITERALS NONE.
changelog_1186_li=Trying to convert a VARCHAR to UUID will now fail if the text contains a character that is not a hex digit, '-', or not a whitespace.
changelog_1187_li=TriggerAdapter\: in "before" triggers, values can be changed using the ResultSet.updateX methods.
changelog_1188_li=Creating a table with column data type NULL now works (even if not very useful).
changelog_1189_li=ALTER TABLE ALTER COLUMN no longer copies the data for widening conversions (for example if only the precision was increased) unless necessary.
changelog_1190_li=Multi-threaded kernel\: concurrently running an online backup and updating the database resulted in a broken (transactionally incorrect) backup file in some cases.
changelog_1191_li=The script created by SCRIPT DROP did not always work if multiple views existed that depend on each other.
changelog_1192_li=MathUtils.getSecureRandom could log a warning to System.err in case the /dev/random is very slow, and the System.getProperties().toString() returned a string larger than 64 KB.
changelog_1193_li=The database file locking mechanism "FS" (;FILE_LOCK\=FS) did not work on Linux since version 1.3.161.
changelog_1194_li=Sequences\: the functions NEXTVAL and CURRVAL did not work as expected when using quoted, mixed case sequence names.
changelog_1195_li=The constructor for Csv objects is now public, and Csv.getInstance() is now deprecated.
changelog_1196_li=SimpleResultSet\: updating a result set is now supported.
changelog_1197_li=Database URL\: extra semicolons are not supported.
changelog_1198_h2=Version 1.3.163 (2011-12-30)
changelog_1199_li=On out of disk space, the database could get corrupt sometimes, if later write operations succeeded. The same problem happened on other kinds of I/O exceptions (where one or some of the writes fail, but subsequent writes succeed). Now the file is closed on the first unsuccessful write operation, so that later requests fail consistently.
changelog_1200_li=DatabaseEventListener.diskSpaceIsLow() is no longer supported because it can't be guaranteed that it always works correctly.
changelog_1201_li=XMLTEXT now supports an optional parameter to escape newlines.
changelog_1202_li=XMLNODE now support an optional parameter to disable indentation.
changelog_1203_li=Csv.write now formats date, time, and timestamp values using java.sql.Date / Time / Timestamp.toString(). Previously, ResultSet.getString() was used, which didn't work well for Oracle.
changelog_1204_li=The shell script <code>h2.sh</code> can now be run from within a different directory. Thanks a lot to Daniel Serodio for the patch\!
changelog_1205_li=The page size of a persistent database can now be queries using\: select * from information_schema.settings where name \= 'info.PAGE_SIZE'
changelog_1206_li=In the server mode, BLOB and CLOB objects are no longer closed when the result set is closed (as required by the JDBC spec).
cheatSheet_1000_h1=H2 Database Engine Cheat Sheet
cheatSheet_1001_h2=Using H2
cheatSheet_1002_a=H2
......@@ -1254,7 +1266,7 @@ features_1346_a=Changing other settings
features_1347_td=\ jdbc\:h2\:&lt;url&gt;;&lt;setting&gt;\=&lt;value&gt;[;&lt;setting&gt;\=&lt;value&gt;...]
features_1348_td=\ jdbc\:h2\:file\:~/sample;TRACE_LEVEL_SYSTEM_OUT\=3
features_1349_h2=Connecting to an Embedded (Local) Database
features_1350_p=\ The database URL for connecting to a local database is <code>jdbc\:h2\:[file\:][&lt;path&gt;]&lt;databaseName&gt;</code>. The prefix <code>file\:</code> is optional. If no or only a relative path is used, then the current working directory is used as a starting point. The case sensitivity of the path and database name depend on the operating system, however it is recommended to use lowercase letters only. The database name must be at least three characters long (a limitation of <code>File.createTempFile</code>). To point to the user home directory, use <code>~/</code>, as in\: <code>jdbc\:h2\:~/test</code>.
features_1350_p=\ The database URL for connecting to a local database is <code>jdbc\:h2\:[file\:][&lt;path&gt;]&lt;databaseName&gt;</code>. The prefix <code>file\:</code> is optional. If no or only a relative path is used, then the current working directory is used as a starting point. The case sensitivity of the path and database name depend on the operating system, however it is recommended to use lowercase letters only. The database name must be at least three characters long (a limitation of <code>File.createTempFile</code>). The database name must not contain a semicolon. To point to the user home directory, use <code>~/</code>, as in\: <code>jdbc\:h2\:~/test</code>.
features_1351_h2=In-Memory Databases
features_1352_p=\ For certain use cases (for example\: rapid prototyping, testing, high performance operations, read-only databases), it may not be required to persist data, or persist changes to the data. This database supports the in-memory mode, where the data is not persisted.
features_1353_p=\ In some cases, only one connection to a in-memory database is required. This means the database to be opened is private. In this case, the database URL is <code>jdbc\:h2\:mem\:</code> Opening two connections within the same virtual machine means opening two different (private) databases.
......@@ -2385,22 +2397,21 @@ mvstore_1106_li=\ if a method was called that is not supported, for example tryi
mvstore_1107_code=ConcurrentModificationException
mvstore_1108_li=\ if the object is modified concurrently.
mvstore_1109_h3=Table Engine for H2
mvstore_1110_p=\ The plan is to use the MVStore as the default storage engine for the H2 database in the future (supporting SQL, JDBC, transactions, MVCC, and so on). This is work in progress. To try it out, append <code>;DEFAULT_TABLE_ENGINE\=org.h2.mvstore.db.MVTableEngine</code> to the database URL. In general, functionality and performance should be similar than the current default storage engine (the page store). There are a few features that have not been implemented yet or are not complete\:
mvstore_1111_li=Changing the cache size is currently not supported.
mvstore_1112_li=The database metadata is still stored in a <code>.h2.db</code> file, and the <code>.lock.db</code> file is still used to lock a database (long term, the plan is to no longer use those files).
mvstore_1113_li=The database file(s) sometimes do not shrink as expected.
mvstore_1114_h2=Similar Projects and Differences to Other Storage Engines
mvstore_1115_p=\ Unlike similar storage engines like LevelDB and Kyoto Cabinet, the MVStore is written in Java and can easily be embedded in a Java and Android application.
mvstore_1116_p=\ The MVStore is somewhat similar to the Berkeley DB Java Edition because it is also written in Java, and is also a log structured storage, but the H2 license is more liberal.
mvstore_1117_p=\ Like SQLite, the MVStore keeps all data in one file. Unlike SQLite, the MVStore uses is a log structured storage. The plan is to make the MVStore both easier to use as well as faster than SQLite. In a recent (very simple) test, the MVStore was about twice as fast as SQLite on Android.
mvstore_1118_p=\ The API of the MVStore is similar to MapDB (previously known as JDBM) from Jan Kotek, and some code is shared between MapDB and JDBM. However, unlike MapDB, the MVStore uses is a log structured storage. The MVStore does not have a record size limit.
mvstore_1119_h2=Current State
mvstore_1120_p=\ The code is still experimental at this stage. The API as well as the behavior may partially change. Features may be added and removed (even thought the main features will stay).
mvstore_1121_h2=Requirements
mvstore_1122_p=\ The MVStore is included in the latest H2 jar file.
mvstore_1123_p=\ There are no special requirements to use it. The MVStore should run on any JVM as well as on Android.
mvstore_1124_p=\ To build just the MVStore (without the database engine), run\:
mvstore_1125_p=\ This will create the file <code>bin/h2mvstore-1.3.172.jar</code> (about 130 KB).
mvstore_1110_p=\ The plan is to use the MVStore as the default storage engine for the H2 database in the future (supporting SQL, JDBC, transactions, MVCC, and so on). This is work in progress. To try it out, append <code>;MV_STORE\=TRUE</code> to the database URL. In general, functionality and performance should be similar than the current default storage engine (the page store). There are a few features that have not been implemented yet or are not complete\:
mvstore_1111_li=There is still a file <code>.h2.db</code>, and the <code>.lock.db</code> file is still used to lock a database (long term, the plan is to no longer use those files).
mvstore_1112_li=The database file(s) sometimes do not shrink as expected.
mvstore_1113_h2=Similar Projects and Differences to Other Storage Engines
mvstore_1114_p=\ Unlike similar storage engines like LevelDB and Kyoto Cabinet, the MVStore is written in Java and can easily be embedded in a Java and Android application.
mvstore_1115_p=\ The MVStore is somewhat similar to the Berkeley DB Java Edition because it is also written in Java, and is also a log structured storage, but the H2 license is more liberal.
mvstore_1116_p=\ Like SQLite, the MVStore keeps all data in one file. Unlike SQLite, the MVStore uses is a log structured storage. The plan is to make the MVStore both easier to use as well as faster than SQLite. In a recent (very simple) test, the MVStore was about twice as fast as SQLite on Android.
mvstore_1117_p=\ The API of the MVStore is similar to MapDB (previously known as JDBM) from Jan Kotek, and some code is shared between MapDB and JDBM. However, unlike MapDB, the MVStore uses is a log structured storage. The MVStore does not have a record size limit.
mvstore_1118_h2=Current State
mvstore_1119_p=\ The code is still experimental at this stage. The API as well as the behavior may partially change. Features may be added and removed (even thought the main features will stay).
mvstore_1120_h2=Requirements
mvstore_1121_p=\ The MVStore is included in the latest H2 jar file.
mvstore_1122_p=\ There are no special requirements to use it. The MVStore should run on any JVM as well as on Android.
mvstore_1123_p=\ To build just the MVStore (without the database engine), run\:
mvstore_1124_p=\ This will create the file <code>bin/h2mvstore-1.3.172.jar</code> (about 130 KB).
performance_1000_h1=Performance
performance_1001_a=\ Performance Comparison
performance_1002_a=\ PolePosition Benchmark
......
......@@ -28,7 +28,7 @@ public interface AggregateFunction {
* the input data. The method should check here if the number of parameters
* passed is correct, and if not it should throw an exception.
*
* @param inputTypes the SQL type of the parameters, {@link java.sql.Types}
* @param inputTypes the SQL type of the parameters, {@link java.sql.Types}
* @return the SQL type of the result
*/
int getType(int[] inputTypes) throws SQLException;
......
......@@ -47,7 +47,8 @@ public class AlterTableRenameColumn extends DefineCommand {
Database db = session.getDatabase();
session.getUser().checkRight(table, Right.ALL);
table.checkSupportAlter();
// we need to update CHECK constraint since it might reference the name of the column
// we need to update CHECK constraint
// since it might reference the name of the column
Expression newCheckExpr = column.getCheckConstraint(session, newName);
table.renameColumn(column, newName);
column.removeCheckConstraint();
......
......@@ -280,7 +280,7 @@ public class Database implements DataHandler {
public void exceptionThrown(Exception e) {
setBackgroundException(DbException.convert(e));
}
});
}
......@@ -1819,7 +1819,7 @@ public class Database implements DataHandler {
}
session.setAllCommitted();
}
private void throwLastBackgroundException() {
if (backgroundException != null) {
// we don't care too much about concurrency here,
......@@ -1832,7 +1832,7 @@ public class Database implements DataHandler {
}
}
}
public void setBackgroundException(DbException e) {
if (backgroundException == null) {
backgroundException = e;
......
......@@ -28,48 +28,48 @@ public class DataUtils {
* An error occurred while reading from the file.
*/
public static final int ERROR_READING_FAILED = 1;
/**
* An error occurred when trying to write to the file.
*/
public static final int ERROR_WRITING_FAILED = 2;
/**
* An internal error occurred. This could be a bug, or a memory corruption
* (for example caused by out of memory).
*/
public static final int ERROR_INTERNAL = 3;
/**
* The object is already closed.
*/
public static final int ERROR_CLOSED = 4;
/**
* The file format is not supported.
*/
public static final int ERROR_UNSUPPORTED_FORMAT = 5;
/**
* The file is corrupt or (for encrypted files) the encryption key is wrong.
*/
public static final int ERROR_FILE_CORRUPT = 6;
/**
* The file is locked.
*/
public static final int ERROR_FILE_LOCKED = 7;
/**
* An error occurred when serializing or de-serializing.
*/
public static final int ERROR_SERIALIZATION = 8;
/**
* The transaction store is corrupt.
*/
public static final int ERROR_TRANSACTION_CORRUPT = 100;
/**
* A lock timeout occurred.
*/
......@@ -687,6 +687,7 @@ public class DataUtils {
/**
* Create a new IllegalStateException.
*
* @param errorCode the error code
* @param message the message
* @param arguments the arguments
* @return the exception
......@@ -708,7 +709,7 @@ public class DataUtils {
}
return e;
}
private static String formatMessage(int errorCode, String message, Object... arguments) {
// convert arguments to strings, to avoid locale specific formatting
for (int i = 0; i < arguments.length; i++) {
......@@ -717,15 +718,15 @@ public class DataUtils {
arguments[i] = a == null ? "null" : a.toString();
}
}
return MessageFormat.format(message, arguments) +
return MessageFormat.format(message, arguments) +
" [" + Constants.VERSION_MAJOR + "." +
Constants.VERSION_MINOR + "." + Constants.BUILD_ID +
"/" + errorCode + "]";
Constants.VERSION_MINOR + "." + Constants.BUILD_ID +
"/" + errorCode + "]";
}
/**
* Get the error code from an exception message.
*
*
* @param m the message
* @return the error code, or 0 if none
*/
......
......@@ -19,20 +19,20 @@ public class FreeSpaceBitSet {
* The first usable block.
*/
private final int firstFreeBlock;
/**
* The block size in bytes.
*/
private final int blockSize;
/**
* The bit set.
*/
private final BitSet set = new BitSet();
/**
* Create a new free space map.
*
*
* @param firstFreeBlock the first free block
* @param blockSize the block size
*/
......@@ -41,7 +41,7 @@ public class FreeSpaceBitSet {
this.blockSize = blockSize;
clear();
}
/**
* Reset the list.
*/
......@@ -49,10 +49,10 @@ public class FreeSpaceBitSet {
set.clear();
set.set(0, firstFreeBlock);
}
/**
* Check whether one of the blocks is in use.
*
*
* @param pos the position in bytes
* @param length the number of bytes
* @return true if a block is in use
......@@ -67,10 +67,10 @@ public class FreeSpaceBitSet {
}
return true;
}
/**
* Check whether one of the blocks is free.
*
*
* @param pos the position in bytes
* @param length the number of bytes
* @return true if a block is free
......@@ -99,48 +99,48 @@ public class FreeSpaceBitSet {
int end = set.nextSetBit(start + 1);
if (end < 0 || end - start >= blocks) {
set.set(start, start + blocks);
return getPos(start);
return getPos(start);
}
i = end;
}
}
/**
* Mark the space as in use.
*
*
* @param pos the position in bytes
* @param length the number of bytes
*/
public synchronized void markUsed(long pos, int length) {
int start = getBlock(pos);
int blocks = getBlockCount(length);
int blocks = getBlockCount(length);
set.set(start, start + blocks);
}
/**
* Mark the space as free.
*
*
* @param pos the position in bytes
* @param length the number of bytes
*/
public synchronized void free(long pos, int length) {
int start = getBlock(pos);
int blocks = getBlockCount(length);
int blocks = getBlockCount(length);
set.clear(start, start + blocks);
}
private long getPos(int block) {
return (long) block * (long) blockSize;
}
private int getBlock(long pos) {
return (int) (pos / blockSize);
}
private int getBlockCount(int length) {
return MathUtils.roundUpInt(length, blockSize) / blockSize;
}
@Override
public String toString() {
StringBuilder buff = new StringBuilder("[");
......
......@@ -161,7 +161,7 @@ public class MVStore {
*/
private final ConcurrentHashMap<Integer, Chunk> chunks =
new ConcurrentHashMap<Integer, Chunk>();
/**
* The free spaces between the chunks. The first block to use is block 2
* (the first two blocks are the file header).
......@@ -235,7 +235,7 @@ public class MVStore {
* The delay in milliseconds to automatically store changes.
*/
private int writeDelay = 1000;
private ExceptionListener backgroundExceptionListener;
MVStore(HashMap<String, Object> config) {
......@@ -441,7 +441,7 @@ public class MVStore {
/**
* Open the store.
*
*
* @throws IllegalStateException if the file is corrupt, or an exception
* occurred while opening
* @throws IllegalArgumentException if the directory does not exist
......@@ -932,7 +932,7 @@ public class MVStore {
int chunkLength = buff.position();
// round to the next block,
// round to the next block,
// and one additional block for the file header
int length = MathUtils.roundUpInt(chunkLength, BLOCK_SIZE) + BLOCK_SIZE;
if (length > buff.capacity()) {
......@@ -972,7 +972,7 @@ public class MVStore {
buff.position(0);
fileWriteCount++;
DataUtils.writeFully(file, filePos, buff);
fileSize = Math.max(fileSize, filePos + buff.position());
if (buff.capacity() <= 4 * 1024 * 1024) {
writeBuffer = buff;
......@@ -1457,10 +1457,11 @@ public class MVStore {
}
return v;
}
/**
* Set the listener to be used for exceptions that occur in the background thread.
*
* Set the listener to be used for exceptions that occur in the background
* thread.
*
* @param backgroundExceptionListener the listener
*/
public void setBackgroundExceptionListener(
......@@ -1804,7 +1805,7 @@ public class MVStore {
/**
* Set the read cache size in MB.
*
*
* @param mb the cache size in MB.
*/
public void setCacheSize(long mb) {
......
......@@ -31,10 +31,10 @@ import org.h2.util.New;
* A table engine that internally uses the MVStore.
*/
public class MVTableEngine implements TableEngine {
/**
* Initialize the MVStore.
*
*
* @param db the database
* @return the store
*/
......@@ -197,7 +197,7 @@ public class MVTableEngine implements TableEngine {
public void initTransactions() {
List<Transaction> list = transactionStore.getOpenTransactions();
for (Transaction t : list) {
if (t.getStatus() == Transaction.STATUS_COMITTING) {
if (t.getStatus() == Transaction.STATUS_COMMITTING) {
t.commit();
} else if (t.getStatus() != Transaction.STATUS_PREPARED) {
t.rollback();
......
......@@ -45,7 +45,7 @@ public class TransactionStore {
/**
* The undo log.
* If the first entry for a transaction doesn't have a logId of 0, then
* the transaction is committing (partially committed).
* the transaction is committing (partially committed).
* Key: [ transactionId, logId ], value: [ opType, mapId, key, oldValue ].
*/
final MVMap<long[], Object[]> undoLog;
......@@ -147,7 +147,7 @@ public class TransactionStore {
if (undoLog.containsKey(key)) {
status = Transaction.STATUS_OPEN;
} else {
status = Transaction.STATUS_COMITTING;
status = Transaction.STATUS_COMMITTING;
}
name = null;
} else {
......@@ -239,7 +239,7 @@ public class TransactionStore {
return;
}
synchronized (undoLog) {
t.setStatus(Transaction.STATUS_COMITTING);
t.setStatus(Transaction.STATUS_COMMITTING);
for (long logId = 0; logId < maxLogId; logId++) {
commitIfNeeded();
long[] undoKey = new long[] { t.getId(), logId };
......@@ -504,7 +504,7 @@ public class TransactionStore {
* closed while the transaction is committing. When opening a store,
* such transactions should be committed.
*/
public static final int STATUS_COMITTING = 3;
public static final int STATUS_COMMITTING = 3;
/**
* The operation type for changes in a map.
......
......@@ -8,6 +8,7 @@ package org.h2.mvstore.rtree;
import java.util.ArrayList;
import java.util.Iterator;
import org.h2.mvstore.CursorPos;
import org.h2.mvstore.DataUtils;
import org.h2.mvstore.MVMap;
......@@ -61,7 +62,7 @@ public class MVRTreeMap<V> extends MVMap<SpatialKey, V> {
* @param x the rectangle
* @return the iterator
*/
public Iterator<SpatialKey> findIntersectingKeys(SpatialKey x) {
public RTreeCursor findIntersectingKeys(SpatialKey x) {
checkOpen();
return new RTreeCursor(root, x) {
@Override
......@@ -77,7 +78,7 @@ public class MVRTreeMap<V> extends MVMap<SpatialKey, V> {
* @param x the rectangle
* @return the iterator
*/
public Iterator<SpatialKey> findContainedKeys(SpatialKey x) {
public RTreeCursor findContainedKeys(SpatialKey x) {
checkOpen();
return new RTreeCursor(root, x) {
@Override
......@@ -483,7 +484,7 @@ public class MVRTreeMap<V> extends MVMap<SpatialKey, V> {
* A cursor to iterate over a subset of the keys.
*/
static class RTreeCursor implements Iterator<SpatialKey> {
private final SpatialKey filter;
private CursorPos pos;
private SpatialKey current;
......@@ -494,7 +495,7 @@ public class MVRTreeMap<V> extends MVMap<SpatialKey, V> {
this.root = root;
this.filter = filter;
}
@Override
public boolean hasNext() {
if (!initialized) {
......@@ -505,7 +506,13 @@ public class MVRTreeMap<V> extends MVMap<SpatialKey, V> {
}
return current != null;
}
/**
* Skip over that many entries. This method is relatively fast (for this map
* implementation) even if many entries need to be skipped.
*
* @param n the number of entries to skip
*/
public void skip(long n) {
while (hasNext() && n-- > 0) {
fetchNext();
......@@ -521,13 +528,13 @@ public class MVRTreeMap<V> extends MVMap<SpatialKey, V> {
fetchNext();
return c;
}
@Override
public void remove() {
throw DataUtils.newUnsupportedOperationException(
"Removing is not supported");
}
/**
* Fetch the next entry if there is one.
*/
......@@ -563,7 +570,7 @@ public class MVRTreeMap<V> extends MVMap<SpatialKey, V> {
}
current = null;
}
// if(pos==null || pos.page != p) {
// pos = new CursorPos(p, i + 1, pos);
// } else {
......@@ -574,8 +581,8 @@ public class MVRTreeMap<V> extends MVMap<SpatialKey, V> {
// break;
// }
// }
//
//
// if (pos.index < pos.page.getKeyCount()) {
// pos.index++;
// }
......@@ -645,13 +652,13 @@ public class MVRTreeMap<V> extends MVMap<SpatialKey, V> {
// }
// }
// }
// }
//
// }
//
// @Override
// protected void min(Page p, SpatialKey x) {
// // x
// }
//
//
// protected void min3(Page p, SpatialKey x) {
// while (true) {
// if (p.isLeaf()) {
......@@ -698,7 +705,7 @@ public class MVRTreeMap<V> extends MVMap<SpatialKey, V> {
// }
// current = null;
// }
}
@Override
......
......@@ -153,7 +153,8 @@ public class ResultTempTable implements ResultExternal {
}
try {
Database database = session.getDatabase();
// Need to lock because not all of the code-paths that reach here have already taken this lock,
// Need to lock because not all of the code-paths
// that reach here have already taken this lock,
// notably via the close() paths.
synchronized (session) {
synchronized (database) {
......
......@@ -597,7 +597,7 @@ public class PgServerThread implements Runnable {
}
}
}
private static void checkParamLength(int expected, int got) {
if (expected != got) {
throw DbException.getInvalidValueException("paramLen", got);
......
......@@ -61,7 +61,7 @@ public class LobStorageBackend implements LobStorageInterface {
JdbcConnection conn;
final Database database;
private final HashMap<String, PreparedStatement> prepared = New.hashMap();
private long nextBlock;
private final CompressTool compress = CompressTool.getInstance();
......@@ -156,7 +156,7 @@ public class LobStorageBackend implements LobStorageInterface {
/**
* Remove all LOBs for this table.
*
*
* @param tableId the table id
*/
public void removeAllForTable(int tableId) {
......@@ -185,7 +185,7 @@ public class LobStorageBackend implements LobStorageInterface {
/**
* Read a block of data from the given LOB.
*
*
* @param block the block number
* @return the block (expanded if stored compressed)
*/
......@@ -217,7 +217,7 @@ public class LobStorageBackend implements LobStorageInterface {
* Retrieve the sequence id and position that is smaller than the requested
* position. Those values can be used to quickly skip to a given position
* without having to read all data.
*
*
* @param lob the lob
* @param pos the required position
* @return null if the data is not available, or an array of two elements:
......@@ -244,6 +244,12 @@ public class LobStorageBackend implements LobStorageInterface {
}
}
/**
* Create a prepared statement, or re-use an existing one.
*
* @param sql the SQL statement
* @return the prepared statement
*/
PreparedStatement prepare(String sql) throws SQLException {
if (SysProperties.CHECK2) {
if (!Thread.holdsLock(database)) {
......@@ -257,6 +263,12 @@ public class LobStorageBackend implements LobStorageInterface {
return prep;
}
/**
* Allow to re-use the prepared statement.
*
* @param sql the SQL statement
* @param prep the prepared statement
*/
void reuse(String sql, PreparedStatement prep) {
if (SysProperties.CHECK2) {
if (!Thread.holdsLock(database)) {
......@@ -465,7 +477,7 @@ public class LobStorageBackend implements LobStorageInterface {
/**
* Store a block in the LOB storage.
*
*
* @param lobId the lob id
* @param seq the sequence number
* @param pos the position within the lob
......@@ -572,12 +584,12 @@ public class LobStorageBackend implements LobStorageInterface {
* to the table that contains the LOB column from changing the data under us.
*/
private final long[] lobMapBlocks;
/**
* index into the lobMapBlocks array.
*/
private int lobMapIndex;
/**
* The remaining bytes in the lob.
*/
......@@ -612,7 +624,7 @@ public class LobStorageBackend implements LobStorageInterface {
reuse(sql, prep);
}
this.remainingBytes = byteCount;
String sql = "SELECT COUNT(*) FROM " + LOB_MAP + " WHERE LOB = ?";
PreparedStatement prep = prepare(sql);
prep.setLong(1, lobId);
......
......@@ -563,11 +563,14 @@ public class Column {
checkConstraintSQL = getCheckConstraintSQL(session, name);
}
/**
* Remove the check constraint if there is one.
*/
public void removeCheckConstraint() {
checkConstraint = null;
checkConstraintSQL = null;
}
/**
* Get the check constraint expression for this column if set.
*
......
......@@ -28,7 +28,7 @@ public abstract class TableBase extends Table {
private final String tableEngine;
/** Provided table parameters */
private List<String> tableEngineParams = new ArrayList<String>();
private final boolean globalTemporary;
public TableBase(CreateTableData data) {
......
......@@ -211,12 +211,13 @@ public class SourceCompiler {
ByteArrayOutputStream buff = new ByteArrayOutputStream();
try {
ProcessBuilder builder = new ProcessBuilder();
// The javac executable allows some of it's flags to be smuggled in via environment variables.
// But if it sees those flags, it will write out a message to stderr, which messes up our
// parsing of the output.
// The javac executable allows some of it's flags
// to be smuggled in via environment variables.
// But if it sees those flags, it will write out a message
// to stderr, which messes up our parsing of the output.
builder.environment().remove("JAVA_TOOL_OPTIONS");
builder.command(args);
Process p = builder.start();
copyInThread(p.getInputStream(), buff);
copyInThread(p.getErrorStream(), buff);
......
......@@ -40,20 +40,20 @@ import org.h2.util.Utils;
* and can convert between Java objects and Values.
*/
public class DataType {
/**
* This constant is used to represent the type of a ResultSet. There is no
* equivalent java.sql.Types value, but Oracle uses it to represent a
* ResultSet (OracleTypes.CURSOR = -10).
*/
public static final int TYPE_RESULT_SET = -10;
/**
* The Geometry class. This object is null if the jts jar file is not in the
* classpath.
*/
public static final Class<?> GEOMETRY_CLASS;
private static final String GEOMETRY_CLASS_NAME = "com.vividsolutions.jts.geom.Geometry";
/**
......@@ -169,7 +169,7 @@ public class DataType {
* The number of bytes required for an object.
*/
public int memory;
static {
Class<?> g;
try {
......@@ -960,7 +960,7 @@ public class DataType {
return ValueJavaObject.getNoCopy(x, null);
}
}
private static boolean isGeometry(Object x) {
if (x == null || GEOMETRY_CLASS == null) {
return false;
......
......@@ -41,7 +41,7 @@ public class ValueGeometry extends Value {
public static ValueGeometry getFromGeometry(Object o) {
return get((Geometry) o);
}
private static ValueGeometry get(Geometry g) {
return (ValueGeometry) Value.cache(new ValueGeometry(g));
}
......
......@@ -128,7 +128,7 @@ public class TestAlter extends TestBase {
execute("insert into test values(3)");
stat.execute("drop table test");
}
private void testAlterTableDropIdentityColumn() throws SQLException {
stat.execute("create table test(id int auto_increment, name varchar)");
stat.execute("alter table test drop column id");
......
......@@ -101,7 +101,7 @@ public class TestCases extends TestBase {
testBinaryCollation();
deleteDb("cases");
}
private void testEmptyStatements() throws SQLException {
Connection conn = getConnection("cases");
Statement stat = conn.createStatement();
......
......@@ -272,7 +272,7 @@ public class TestCompatibility extends TestBase {
// this maps to SET REFERENTIAL_INTEGRITY TRUE/FALSE
stat.execute("SET foreign_key_checks = 0");
stat.execute("SET foreign_key_checks = 1");
// Check if mysql comments are supported, ensure clean connection
conn.close();
conn = getConnection("compatibility;MODE=MYSQL");
......
......@@ -1473,5 +1473,5 @@ public class TestLob extends TestBase {
r.close();
conn.close();
}
}
}
......@@ -83,7 +83,7 @@ public class TestTableEngines extends TestBase {
assertEquals("param2", EndlessTableEngine.createTableData.tableEngineParams.get(1));
conn.close();
if (!config.memory) {
// Test serialisation of table parameters
// Test serialization of table parameters
EndlessTableEngine.createTableData.tableEngineParams.clear();
conn = getConnection("tableEngine");
assertEquals(2, EndlessTableEngine.createTableData.tableEngineParams.size());
......
......@@ -16,12 +16,12 @@ import org.h2.util.MathUtils;
* A list that maintains ranges of free space (in blocks).
*/
public class FreeSpaceList {
/**
* The first usable block.
*/
private final int firstFreeBlock;
/**
* The block size in bytes.
*/
......@@ -43,10 +43,10 @@ public class FreeSpaceList {
*/
public synchronized void clear() {
freeSpaceList.clear();
freeSpaceList.add(new BlockRange(firstFreeBlock,
freeSpaceList.add(new BlockRange(firstFreeBlock,
Integer.MAX_VALUE - firstFreeBlock));
}
/**
* Allocate a number of blocks and mark them as used.
*
......@@ -67,6 +67,12 @@ public class FreeSpaceList {
"Could not find a free page to allocate");
}
/**
* Mark the space as in use.
*
* @param pos the position in bytes
* @param length the number of bytes
*/
public synchronized void markUsed(long pos, int length) {
int start = (int) (pos / blockSize);
int required = getBlockCount(length);
......@@ -112,6 +118,12 @@ public class FreeSpaceList {
}
}
/**
* Mark the space as free.
*
* @param pos the position in bytes
* @param length the number of bytes
*/
public synchronized void free(long pos, int length) {
int start = (int) (pos / blockSize);
int required = getBlockCount(length);
......@@ -158,7 +170,7 @@ public class FreeSpaceList {
BlockRange newRange = new BlockRange(start, required);
freeSpaceList.add(i, newRange);
}
private int getBlockCount(int length) {
if (length <= 0) {
throw DataUtils.newIllegalStateException(
......@@ -199,7 +211,7 @@ public class FreeSpaceList {
}
return start + "-" + (start + length - 1);
}
}
}
......@@ -15,12 +15,12 @@ import org.h2.util.MathUtils;
* A list that maintains ranges of free space (in blocks) in a file.
*/
public class FreeSpaceTree {
/**
* The first usable block.
*/
private final int firstFreeBlock;
/**
* The block size in bytes.
*/
......@@ -45,7 +45,7 @@ public class FreeSpaceTree {
*/
public synchronized void clear() {
freeSpace.clear();
freeSpace.add(new BlockRange(firstFreeBlock,
freeSpace.add(new BlockRange(firstFreeBlock,
Integer.MAX_VALUE - firstFreeBlock));
}
......@@ -73,7 +73,13 @@ public class FreeSpaceTree {
}
return pos;
}
/**
* Mark the space as in use.
*
* @param pos the position in bytes
* @param length the number of bytes
*/
public synchronized void markUsed(long pos, int length) {
int start = getBlock(pos);
int blocks = getBlockCount(length);
......@@ -103,7 +109,13 @@ public class FreeSpaceTree {
prev.blocks = start - prev.start;
}
}
/**
* Mark the space as free.
*
* @param pos the position in bytes
* @param length the number of bytes
*/
public synchronized void free(long pos, int length) {
int start = getBlock(pos);
int blocks = getBlockCount(length);
......@@ -134,15 +146,15 @@ public class FreeSpaceTree {
}
freeSpace.add(x);
}
private long getPos(int block) {
return (long) block * (long) blockSize;
}
private int getBlock(long pos) {
return (int) (pos / blockSize);
}
private int getBlockCount(int length) {
if (length <= 0) {
throw DataUtils.newIllegalStateException(
......@@ -175,7 +187,7 @@ public class FreeSpaceTree {
this.start = start;
this.blocks = blocks;
}
@Override
public int compareTo(BlockRange o) {
return start < o.start ? -1 : start > o.start ? 1 : 0;
......
......@@ -81,7 +81,7 @@ public class TestDataUtils extends TestBase {
assertEquals("1,2", m.get("c"));
assertEquals("\"test\"", m.get("d"));
}
private void testMapRandomized() {
Random r = new Random(1);
String chars = "a_1,\\\":";
......
......@@ -26,20 +26,20 @@ public class TestFreeSpace extends TestBase {
testMemoryUsage();
testPerformance();
}
@Override
public void test() throws Exception {
testSimple();
testRandomized();
}
private static void testPerformance() {
for (int i = 0; i < 10; i++) {
long t = System.currentTimeMillis();
FreeSpaceBitSet f = new FreeSpaceBitSet(0, 4096);
// 75 ms
// FreeSpaceList f = new FreeSpaceList(0, 4096);
// 13868 ms
......@@ -58,18 +58,18 @@ public class TestFreeSpace extends TestBase {
System.out.println(System.currentTimeMillis() - t);
}
}
private static void testMemoryUsage() {
// 16 GB file size
long size = 16L * 1024 * 1024 * 1024;
System.gc();
System.gc();
long first = Utils.getMemoryUsed();
long first = Utils.getMemoryUsed();
FreeSpaceBitSet f = new FreeSpaceBitSet(0, 4096);
// 512 KB
// FreeSpaceTree f = new FreeSpaceTree(0, 4096);
// 64 MB
......@@ -105,7 +105,7 @@ public class TestFreeSpace extends TestBase {
assertEquals(f1.toString(), f2.toString());
assertEquals(f1.toString(), f3.toString());
}
private void testRandomized() {
FreeSpaceBitSet f1 = new FreeSpaceBitSet(2, 8);
FreeSpaceList f2 = new FreeSpaceList(2, 8);
......
......@@ -273,7 +273,7 @@ public class TestMVRTree extends TestMVStore {
testRandom(true);
testRandom(false);
}
private void testRandomFind() {
MVStore s = openStore(null);
MVRTreeMap<Integer> m = s.openMap("data",
......@@ -284,7 +284,7 @@ public class TestMVRTree extends TestMVStore {
int id = x * max + y;
SpatialKey k = new SpatialKey(id, x, x, y, y);
m.put(k, id);
}
}
}
Random rand = new Random(1);
int operationCount = 1000;
......@@ -316,7 +316,7 @@ public class TestMVRTree extends TestMVStore {
count++;
}
assertEquals(intersecting, count);
}
}
}
private void testRandom(boolean quadraticSplit) {
......
......@@ -266,7 +266,7 @@ public class TestMVStore extends TestBase {
encryptionKey(passwordChars).open();
fail();
} catch (IllegalStateException e) {
assertEquals(DataUtils.ERROR_FILE_CORRUPT,
assertEquals(DataUtils.ERROR_FILE_CORRUPT,
DataUtils.getErrorCode(e.getMessage()));
}
assertEquals(0, passwordChars[0]);
......
......@@ -88,7 +88,7 @@ public class TestMVTableEngine extends TestBase {
}
}
}
private void testTwoPhaseCommit() throws Exception {
FileUtils.deleteRecursive(getBaseDir(), true);
Connection conn;
......@@ -204,7 +204,7 @@ public class TestMVTableEngine extends TestBase {
stat.execute("insert into test values(1)");
stat.execute("shutdown immediately");
JdbcUtils.closeSilently(conn);
conn = getConnection(url);
stat = conn.createStatement();
ResultSet rs = stat.executeQuery("select row_count_estimate " +
......
......@@ -55,7 +55,7 @@ public class TestTransactionStore extends TestBase {
testSingleConnection();
testCompareWithPostgreSQL();
}
private void testStopWhileCommitting() throws Exception {
String fileName = getBaseDir() + "/testStopWhileCommitting.h3";
FileUtils.delete(fileName);
......@@ -106,7 +106,7 @@ public class TestTransactionStore extends TestBase {
List<Transaction> list = ts.getOpenTransactions();
if (list.size() != 0) {
tx = list.get(0);
if (tx.getStatus() == Transaction.STATUS_COMITTING) {
if (tx.getStatus() == Transaction.STATUS_COMMITTING) {
i++;
}
}
......@@ -116,7 +116,7 @@ public class TestTransactionStore extends TestBase {
FileUtils.delete(fileName);
assertFalse(FileUtils.exists(fileName));
s.close();
FileUtils.delete(fileName);
FileUtils.delete(fileName);
}
}
......
......@@ -566,7 +566,7 @@ public class TestFileLockSerialized extends TestBase {
stat.execute("insert into test values(" + i + ", " + i + ")");
}
importFinishedLatch.countDown();
select1FinishedLatch.await();
stat.execute("update test set id2=999 where id=500");
......@@ -601,7 +601,7 @@ public class TestFileLockSerialized extends TestBase {
}
};
selectTask.execute();
importUpdateTask.get();
selectTask.get();
deleteDb("fileLockSerialized");
......
......@@ -46,7 +46,7 @@ public class TestPgServer extends TestBase {
testCancelQuery();
testBinaryTypes();
}
private boolean getPgJdbcDriver() {
try {
Class.forName("org.postgresql.Driver");
......@@ -146,7 +146,7 @@ public class TestPgServer extends TestBase {
prep.setNull(1, Types.VARCHAR);
rs = prep.executeQuery();
assertFalse(rs.next());
prep = conn.prepareStatement("insert into test values(?, ?)");
ParameterMetaData meta = prep.getParameterMetaData();
assertEquals(2, meta.getParameterCount());
......@@ -314,7 +314,7 @@ public class TestPgServer extends TestBase {
if (!getPgJdbcDriver()) {
return;
}
Server server = Server.createPgServer("-pgPort", "5535", "-pgDaemon", "-key", "test", "mem:test");
server.start();
try {
......
......@@ -524,8 +524,8 @@ public class Build extends BuildBase {
mkdir("docs/javadoc");
javadoc("-sourcepath", "src/main", "org.h2.jdbc", "org.h2.jdbcx",
"org.h2.tools", "org.h2.api", "org.h2.constant", "org.h2.fulltext",
"-classpath",
"ext/" + getLuceneJar() +
"-classpath",
"ext/" + getLuceneJar() +
File.pathSeparator + "ext/jts-1.13.jar",
"-docletpath", "bin" + File.pathSeparator + "temp",
"-doclet", "org.h2.build.doclet.Doclet");
......
......@@ -730,7 +730,6 @@ customizers retains scalability assuming gili cancelled departments juerg
franklin indicated offending unimplemented executors dumping variants
presence spiess azeckoski aaron cowwoc decompiles canceling vividsolutions
quadtree envelope geometry polygon typname intersects wkt intersects wkb
coordinate geometric rates cope attempting sphere hyde clinton
computation varies
coordinate geometric rates cope attempting sphere hyde clinton taskkill
mgcodeact cumer reach notably computation varies smuggled stderr sees messes
nico devel
......@@ -19,7 +19,7 @@ public class JavaProcessKiller {
/**
* Kill a certain Java process. The JDK (jps) needs to be in the path.
*
*
* @param args the Java process name as listed by jps -l. If not set the
* Java processes are listed
*/
......@@ -27,7 +27,7 @@ public class JavaProcessKiller {
public static void main(String... args) {
new JavaProcessKiller().run(args);
}
private void run(String... args) {
TreeMap<Integer, String> map = getProcesses();
System.out.println("Processes:");
......@@ -67,7 +67,7 @@ public class JavaProcessKiller {
System.out.println("Processes now:");
System.out.println(map);
}
private static TreeMap<Integer, String> getProcesses() {
String processList = exec("jps", "-l");
String[] processes = processList.split("\n");
......@@ -83,7 +83,7 @@ public class JavaProcessKiller {
}
return map;
}
private static String exec(String... args) {
ByteArrayOutputStream err = new ByteArrayOutputStream();
ByteArrayOutputStream out = new ByteArrayOutputStream();
......@@ -122,5 +122,5 @@ public class JavaProcessKiller {
}
}.run();
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论