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

javadocs

上级 1865ce3d
无相关合并请求
......@@ -17,7 +17,11 @@ Change Log
<h2>Next Version (unreleased)</h2>
<ul>
<li>Linked tables: To view the statements that are executed against the target table, set the trace level to 3.
<li>
</li><li>Improved compatibility. New compatibility modes for Oracle and Derby.
New compatibility flag uniqueIndexNullDistinct to only allow one row with 'NULL' in a unique
index. This flag is enabled for Derby, Oracle, MSSQLServer, and HSQLDB.
</li><li>Linked tables: To view the statements that are executed against the target table, set the trace level to 3.
</li><li>RunScript tool: new options to show and check the results of queries.
</li><li>Deadlocks are now detected. One transaction is rolled back automatically.
</li><li>The Lucene fulltext index was always re-created when opening a
......@@ -100,7 +104,7 @@ Change Log
<li>H2 is now dual-licensed under the Eclipse Public License (EPL) and the
old 'H2 License' (which is basically MPL).
</li><li>Sometimes an exception 'File ID mismatch' or 'try to add a record twice'
occured after large records (8 KB or larger) are updated or deleted.
occurred after large records (8 KB or larger) are updated or deleted.
See also http://code.google.com/p/h2database/issues/detail?id=22
</li><li>H2 Console: The tools can now be translated
(it didn't work in the last release).
......@@ -194,10 +198,10 @@ Change Log
</li><li>For years below 1, the YEAR method didn't return the correct value,
and the conversion from date and timestamp to varchar was incorrect.
</li><li>CSVWRITE caused a NullPointerException when not specifying a nullString.
</li><li>When a log file switch occured just after a truncate table or drop table
</li><li>When a log file switch occurred just after a truncate table or drop table
statement, the database could not be started normally (RECOVER=1
was required). Fixed.
</li><li>When a log file switch occured in the middle of a sequence flush
</li><li>When a log file switch occurred in the middle of a sequence flush
(sequences are only flushed every 32 values by default), the sequence
value was lost. Fixed.
</li><li>Altering a sequence didn't unlock the system table
......
......@@ -99,7 +99,6 @@ via PayPal:
</p>
<ul>
<li>Florent Ramiere, France
</li><li>Pete Haidinyak, USA
</li><li>Jun Iyama, Japan
</li><li>Antonio Casqueiro, Portugal
</li><li>Oliver Computing LLC, USA
......@@ -109,6 +108,7 @@ via PayPal:
</li><li>Antonio Dieguez, Chile
</li><li><a href="http://ontologyworks.com/">Ontology Works, USA</a>
</li><li>lumber-mill.co.jp, Japan
</li><li>Pete Haidinyak, USA
</li></ul>
</div></td></tr></table><!-- analytics --></body></html>
......@@ -272,11 +272,27 @@ PolePosition</a><br />
Open source database benchmark.
</p>
<p><a href="http://poormans.sourceforge.net/index.html">
Poormans</a><br />
Very basic CMS running as a SWT application and generating static html pages.
</p>
<p><a href="http://www.railo-technologies.com">
Railo</a><br />
Railo is an alternative engine for the Cold Fusion Markup Language, that compiles code
programmed in CFML into Java bytecode and executes it on a servlet engine.
</p>
<p><a href="http://patir.rubyforge.org/rutema/index.html">
Rutema</a><br />
Rutema is a test execution and management tool for heterogeneous development environments written in Ruby.
</p>
<p><a href="http://scriptella.javaforge.com">
Sava</a><br />
Open-source web-based content management system.
</p>
<p><a href="http://scriptella.javaforge.com">
Scriptella</a><br />
ETL (Extract-Transform-Load) and script execution tool.
......
......@@ -79,7 +79,7 @@ Roadmap
</li><li>Test performance again with SQL Server, Oracle, DB2
</li><li>Test with dbmonster (http://dbmonster.kernelpanic.pl/)
</li><li>Test with dbcopy (http://dbcopyplugin.sourceforge.net)
</li><li>Find a tool to view a text file >100 MB, with find, page up and down (like less)
</li><li>Find a tool to view large text file >100 MB, with find, page up and down (like less), truncate before / after
</li><li>Implement, test, document XAConnection and so on
</li><li>Web site: get rid of frame set
</li><li>Pluggable data type (for compression, validation, conversion, encryption)
......
......@@ -1049,963 +1049,966 @@ Change Log
Next Version (unreleased)
@changelog_1002_li
Linked tables: To view the statements that are executed against the target table, set the trace level to 3.
Improved compatibility. New compatibility modes for Oracle and Derby. New compatibility flag uniqueIndexNullDistinct to only allow one row with 'NULL' in a unique index. This flag is enabled for Derby, Oracle, MSSQLServer, and HSQLDB.
@changelog_1003_li
RunScript tool: new options to show and check the results of queries.
Linked tables: To view the statements that are executed against the target table, set the trace level to 3.
@changelog_1004_li
Deadlocks are now detected. One transaction is rolled back automatically.
RunScript tool: new options to show and check the results of queries.
@changelog_1005_li
The Lucene fulltext index was always re-created when opening a database with fulltext index enabled.
Deadlocks are now detected. One transaction is rolled back automatically.
@changelog_1006_li
The Lucene fulltext index was always re-created when opening a database with fulltext index enabled.
@changelog_1007_li
Support for overloaded Java methods. A user defined function can now be bound to multiple Java methods, if the Java methods have the same name but a different number of parameters. Thanks to Gary Tong for providing a patch!
@changelog_1007_h2
@changelog_1008_h2
Version 1.0.73 (2008-05-31)
@changelog_1008_li
@changelog_1009_li
ParameterMetaData now returns the right data type for most conditions, as in WHERE ID=?.
@changelog_1009_li
@changelog_1010_li
The table SYSTEM_RANGE now supports expressions and parameters.
@changelog_1010_li
@changelog_1011_li
New column INFORMATION_SCHEMA.CONSTRAINTS.UNIQUE_INDEX_NAME that contains the name of the unique index used to enforce this constraint, if there is such an index.
@changelog_1011_li
@changelog_1012_li
SET QUERY_TIMEOUT and Statement.setQueryTimeout no longer commits a transaction. The same applies to SET @VARIABLE, SET LOCK_TIMEOUT, SET TRACE_LEVEL_*, SET THROTTLE, and SET PATH.
@changelog_1012_li
@changelog_1013_li
The SCRIPT command does now emit IF NOT EXISTS for CREATE ROLE.
@changelog_1013_li
@changelog_1014_li
MySQL compatibility: auto_increment column are no longer automatically converted to primary key columns.
@changelog_1014_li
@changelog_1015_li
PostgreSQL compatibility: support for BOOL_OR and BOOL_AND aggregate functions.
@changelog_1015_li
@changelog_1016_li
Negative scale values for DECIMAL or NUMBER columns are now supported in regular tables and in linked tables.
@changelog_1016_li
@changelog_1017_li
A role or right can now be granted or revoked multiple times without getting an exception.
@changelog_1017_li
@changelog_1018_li
Infinite numbers in SQL scripts are listed as POWER(0, -1)), negative infinite as (-POWER(0, -1)), and NaN (not a number) as SQRT(-1).
@changelog_1018_li
@changelog_1019_li
The special double and float values 'NaN' (not a number) did not work correctly when sorting or comparing.
@changelog_1019_li
@changelog_1020_li
The fulltext search did not support CLOB data types.
@changelog_1020_li
@changelog_1021_li
If the drive with the database files was disconnected or unmounted while writing, sometimes a stack overflow exception was thrown instead of a IO exception.
@changelog_1021_li
@changelog_1022_li
The H2 Console could not be shut down from within the tool if the browser supports keepAlive (most browsers do).
@changelog_1022_li
@changelog_1023_li
If the password was passed as a char array, it was kept in an internal buffer longer than required. Theoretically the password could have been stolen if the main memory was swapped to disk before the garbage collection was run.
@changelog_1023_h2
@changelog_1024_h2
Version 1.0.72 (2008-05-10)
@changelog_1024_li
@changelog_1025_li
Some databases could not be opened when appending ;RECOVER=1 to the database URL.
@changelog_1025_li
@changelog_1026_li
The Japanese translation of the error messages and the H2 Console has been completed by Masahiro Ikemoto (Arizona Design Inc.)
@changelog_1026_li
@changelog_1027_li
Updates made to updatable rows are now visible within the same result set. DatabaseMetaData.ownUpdatesAreVisible now returns true.
@changelog_1027_li
@changelog_1028_li
ParameterMetaData now returns the correct data for INSERT and UPDATE statements.
@changelog_1028_li
@changelog_1029_li
H2 Shell: DESCRIBE now supports an schema name.
@changelog_1029_li
@changelog_1030_li
A subset of the PostgreSQL 'dollar quoting' feature is now supported.
@changelog_1030_li
@changelog_1031_li
SLF4J is now supported by using adding TRACE_LEVEL_FILE=4 to the database URL.
@changelog_1031_li
@changelog_1032_li
The recovery tool did not work if the table name contained spaces or if there was a comment on the table.
@changelog_1032_li
@changelog_1033_li
Triggers are no longer executed when changing the table structure (ALTER TABLE).
@changelog_1033_li
@changelog_1034_li
When setting BLOB or CLOB values larger than 65 KB using a remote connection, temporary files were kept on the client longer than required (until the connection was closed or the object is garbage collected). Now they are removed as soon as the PreparedStatement is closed, or when the value is overwritten.
@changelog_1034_li
@changelog_1035_li
Statements can now be cancelled remotely (when using remote connections).
@changelog_1035_li
@changelog_1036_li
The Shell tool now uses java.io.Console to read the password when using JDK 1.6
@changelog_1036_li
@changelog_1037_li
When using read-only databases and setting LOG=2, an exception was written to the trace file when closing the database. Fixed.
@changelog_1037_h2
@changelog_1038_h2
Version 1.0.71 (2008-04-25)
@changelog_1038_li
H2 is now dual-licensed under the Eclipse Public License (EPL) and the old 'H2 License' (which is basically MPL).
@changelog_1039_li
Sometimes an exception 'File ID mismatch' or 'try to add a record twice' occured after large records (8 KB or larger) are updated or deleted. See also http://code.google.com/p/h2database/issues/detail?id=22
H2 is now dual-licensed under the Eclipse Public License (EPL) and the old 'H2 License' (which is basically MPL).
@changelog_1040_li
H2 Console: The tools can now be translated (it didn't work in the last release).
Sometimes an exception 'File ID mismatch' or 'try to add a record twice' occurred after large records (8 KB or larger) are updated or deleted. See also http://code.google.com/p/h2database/issues/detail?id=22
@changelog_1041_li
New traditional Chinese translation. Thanks a lot to Derek Chao!
H2 Console: The tools can now be translated (it didn't work in the last release).
@changelog_1042_li
New traditional Chinese translation. Thanks a lot to Derek Chao!
@changelog_1043_li
Indexes were not used when enabling the optimization for IN(SELECT...) (system property h2.optimizeInJoin).
@changelog_1043_h2
@changelog_1044_h2
Version 1.0.70 (2008-04-20)
@changelog_1044_li
@changelog_1045_li
The plan is to dual-license H2. The additional license is EPL (Eclipse Public License). The current license (MPL, Mozilla Public License) will stay. Current users are not affected because they can keep MPL. EPL is very similar to MPL, the only bigger difference is related to patents (EPL is a bit more business friendly in this regard). See also http://opensource.org/licenses/eclipse-1.0.php, http://www.eclipse.org/legal/eplfaq.php (FAQ), http://blogs.zdnet.com/Burnette/?p=131
@changelog_1045_li
@changelog_1046_li
Multi version concurrency (MVCC): when a row was updated, and the updated column was not indexed, this update was visible sometimes for other sessions even if it was not committed.
@changelog_1046_li
@changelog_1047_li
Calling SHUTDOWN on one connection and starting a query on another connection concurrently could result in a Java level deadlock.
@changelog_1047_li
@changelog_1048_li
New system property h2.enableAnonymousSSL (default: true) to enable anonymous SSL connections.
@changelog_1048_li
@changelog_1049_li
The precision if SUBSTR is now calculated if possible.
@changelog_1049_li
@changelog_1050_li
The autocomplete in the H2 Console has been improved a bit.
@changelog_1050_li
@changelog_1051_li
The tools in the H2 Console are now translatable.
@changelog_1051_li
@changelog_1052_li
The servlet and lucene jar files are now automatically downloaded when building.
@changelog_1052_li
@changelog_1053_li
The code switch tool has been replaced by a simpler tool called SwitchSource that just uses find and replace.
@changelog_1053_li
@changelog_1054_li
Started to write a Ant replacement ('JAnt') that uses pure Java build definitions. Advantages: ability to debug the build, extensible, flexible, no XML, a bit faster. Future plan: support creating custom h2 distributions (for embedded use). Maybe create a new project 'Jant' or 'Javen' if other people are interested.
@changelog_1054_li
@changelog_1055_li
The jar file is now about 10% smaller because the variable debugging info is no longer included. The source file and line number debugging info is still included. If required, the jar file size of the full version can be further reduced to about 720 KB using 'build jarSmall' or even more by removing unneeded components.
@changelog_1055_li
@changelog_1056_li
Added shell scripts run.sh and build.sh. chmod +x is required, but otherwise it should work. Feedback or improvements are welcome!
@changelog_1056_li
@changelog_1057_li
Databases in zip files: large queries are now supported. Temp files are created in the temp directory if required. The documentation how to create the zip file has been corrected.
@changelog_1057_li
@changelog_1058_li
Invalid inline views threw confusing SQL exceptions.
@changelog_1058_li
@changelog_1059_li
The Japanese translation of the error messages and the H2 Console has been improved. Thanks a lot to Masahiro IKEMOTO.
@changelog_1059_li
@changelog_1060_li
Optimization for MIN() and MAX() when using MVCC.
@changelog_1060_li
@changelog_1061_li
To protect against remote brute force password attacks, the delay after each unsuccessful login now gets double as long. New system properties h2.delayWrongPasswordMin and h2.delayWrongPasswordMax.
@changelog_1061_li
@changelog_1062_li
After setting the query timeout and then resetting it, the next query would still timeout. Fixed.
@changelog_1062_li
@changelog_1063_li
Adding a IDENTITY column to a table with data threw a lock timeout.
@changelog_1063_li
@changelog_1064_li
OutOfMemoryError could occur when using EXISTS or IN(SELECT ..).
@changelog_1064_li
@changelog_1065_li
The built-in connection pool is not called JdbcConnectionPool. The API and documentation has been changed.
@changelog_1065_li
@changelog_1066_li
The ConvertTraceFile tool now generates SQL statement statistics at the end of the SQL script file (similar to the profiling data generated when using java -Xrunhprof).
@changelog_1066_li
@changelog_1067_li
Nested joins are now supported (A JOIN B JOIN C ON .. ON ..)
@changelog_1067_h2
@changelog_1068_h2
Version 1.0.69 (2008-03-29)
@changelog_1068_li
Most command line tools can now be called from within the H2 Console.
@changelog_1069_li
A new Shell tools is now included (org.h2.tools.Shell) to query a database from the command line.
Most command line tools can now be called from within the H2 Console.
@changelog_1070_li
The command line options in the tools have changed: instead of '-log true' now '-trace' is used. Also, '-ifExists', '-tcpSSL' and '-tcpAllowOthers' and so on have changed: now the 'true' is no longer needed. The old behavior is still supported.
A new Shell tools is now included (org.h2.tools.Shell) to query a database from the command line.
@changelog_1071_li
New system property h2.sortNullsHigh to invert the default sorting behavior for NULL. The default didn't change.
The command line options in the tools have changed: instead of '-log true' now '-trace' is used. Also, '-ifExists', '-tcpSSL' and '-tcpAllowOthers' and so on have changed: now the 'true' is no longer needed. The old behavior is still supported.
@changelog_1072_li
Performance was very slow when using LOG=2 and deleting or updating all rows of a table in a loop. Fixed.
New system property h2.sortNullsHigh to invert the default sorting behavior for NULL. The default didn't change.
@changelog_1073_li
ALTER TABLE or CREATE TABLE now support parameters for the password field.
Performance was very slow when using LOG=2 and deleting or updating all rows of a table in a loop. Fixed.
@changelog_1074_li
The linear hash has been removed. It was always slower than the b-tree index, and there were some bugs that would be hard to fix.
ALTER TABLE or CREATE TABLE now support parameters for the password field.
@changelog_1075_li
TRACE_LEVEL_ settings are no longer persistent. This was a problem when database initialization code caused a lot of trace output.
The linear hash has been removed. It was always slower than the b-tree index, and there were some bugs that would be hard to fix.
@changelog_1076_li
Fulltext search (native implementation): The words table is no longer an in-memory table because this caused memory problems in some cases.
TRACE_LEVEL_ settings are no longer persistent. This was a problem when database initialization code caused a lot of trace output.
@changelog_1077_li
It was possible to create a role with the name as an existing user (but not vice versa). This is not allowed any more.
Fulltext search (native implementation): The words table is no longer an in-memory table because this caused memory problems in some cases.
@changelog_1078_li
The recovery tool didn't work correctly for tables without rows.
It was possible to create a role with the name as an existing user (but not vice versa). This is not allowed any more.
@changelog_1079_li
For years below 1, the YEAR method didn't return the correct value, and the conversion from date and timestamp to varchar was incorrect.
The recovery tool didn't work correctly for tables without rows.
@changelog_1080_li
CSVWRITE caused a NullPointerException when not specifying a nullString.
For years below 1, the YEAR method didn't return the correct value, and the conversion from date and timestamp to varchar was incorrect.
@changelog_1081_li
When a log file switch occured just after a truncate table or drop table statement, the database could not be started normally (RECOVER=1 was required). Fixed.
CSVWRITE caused a NullPointerException when not specifying a nullString.
@changelog_1082_li
When a log file switch occured in the middle of a sequence flush (sequences are only flushed every 32 values by default), the sequence value was lost. Fixed.
When a log file switch occurred just after a truncate table or drop table statement, the database could not be started normally (RECOVER=1 was required). Fixed.
@changelog_1083_li
When a log file switch occurred in the middle of a sequence flush (sequences are only flushed every 32 values by default), the sequence value was lost. Fixed.
@changelog_1084_li
Altering a sequence didn't unlock the system table when autocommit switched off.
@changelog_1084_h2
@changelog_1085_h2
Version 1.0.68 (2008-03-18)
@changelog_1085_li
@changelog_1086_li
Very large SELECT DISTINCT and UNION EXCEPT queries are now supported, however this feature is disabled by default. To enable it, set the system property h2.maxMemoryRowsDistinct to a lower value, for example 10000.
@changelog_1086_li
@changelog_1087_li
A error is now thrown when trying to call a method inside a trigger that implicitly commits the current transaction, if an object is locked.
@changelog_1087_li
@changelog_1088_li
Unused LOB files were deleted much too late. Now they are deleted if no longer referenced in memory.
@changelog_1088_li
@changelog_1089_li
ALTER SEQUENCE and ALTER TABLE ALTER COLUMN RESTART can now be used inside a transaction.
@changelog_1089_li
@changelog_1090_li
New system property h2.aliasColumnName. When enabled, aliased columns (as in SELECT ID AS I FROM TEST) return the real table and column name in ResultSetMetaData.getTableName() and getColumnName(). This is disabled by default for compatibility with other databases (HSQLDB, Apache Derby, PostgreSQL, some version of MySQL). In version 1.1 this setting will be enabled.
@changelog_1090_li
@changelog_1091_li
When using encrypted databases, and using the wrong file password, the log file was renamed if the database was not already open. Fixed.
@changelog_1091_li
@changelog_1092_li
Improved performance when using lob files in directories (however this is still disabled by default)
@changelog_1092_li
@changelog_1093_li
H2 Console: autocomplete didn't work with very large scripts. Fixed.
@changelog_1093_li
@changelog_1094_li
Fulltext search: new method SEARCH_DATA that returns the column names and primary keys as arrays.
@changelog_1094_li
@changelog_1095_li
New experimental optimization for GROUP BY queries if an index can be used that matches the group by columns. To enable this optimization, set the system property h2.optimizeGroupSorted to true.
@changelog_1095_li
@changelog_1096_li
When using multi-version concurrency (MVCC=TRUE), duplicate rows could appear in the result set when running queries with uncommitted changes in the same session.
@changelog_1096_li
@changelog_1097_li
H2 Console: remote connections were very slow because getHostName/getRemoteHost was used. Fixed (now using getHostAddress/getRemoteAddr.
@changelog_1097_li
@changelog_1098_li
H2 Console: on Linux, Firefox, Konqueror, or Opera (in this order) are now started if available. This has been tested on Ubuntu.
@changelog_1098_li
@changelog_1099_li
H2 Console: the start window works better with IKVM
@changelog_1099_li
@changelog_1100_li
H2 Console: improved compatibility with Safari (Safari requires keep-alive)
@changelog_1100_li
@changelog_1101_li
Random: the process didn't stop if generating the random seed using the standard way (SecureRandom.generateSeed) was very slow. Now using a daemon thread to avoid this problem.
@changelog_1101_li
@changelog_1102_li
SELECT UNION with a different number of ORDER BY columns did throw an ArrayIndexOutOfBoundsException.
@changelog_1102_li
@changelog_1103_li
When using a view, the column precision was changed to the default scale for some data types.
@changelog_1103_li
@changelog_1104_li
CSVWRITE now supports a 'null string' that is used for parsing and writing NULL.
@changelog_1104_li
@changelog_1105_li
Some long running queries could not be cancelled.
@changelog_1105_li
@changelog_1106_li
Queries with many outer join tables were very slow. Fixed.
@changelog_1106_li
@changelog_1107_li
The performance of text comparison has been improved when using locale sensitive string comparison (SET COLLATOR). Now CollationKey is used with a LRU cache. The default cache size is 10000, and can be changed using the system property h2.collatorCacheSize. Use 0 to disable the cache.
@changelog_1107_li
@changelog_1108_li
UPDATE SET column=DEFAULT is now supported.
@changelog_1108_h2
@changelog_1109_h2
Version 1.0.67 (2008-02-22)
@changelog_1109_li
@changelog_1110_li
New function FILE_READ to read a file or from an URL. Both binary and text data is supported.
@changelog_1110_li
@changelog_1111_li
CREATE TABLE AS SELECT now supports specifying the column list and data types.
@changelog_1111_li
@changelog_1112_li
Connecting to a TCP server and at shutting it down at the same time could cause a Java level deadlock.
@changelog_1112_li
@changelog_1113_li
A user now has all rights on his own local temporary tables.
@changelog_1113_li
@changelog_1114_li
The CSV tool now supports a custom lineSeparator.
@changelog_1114_li
@changelog_1115_li
When using multiple connections, empty space was reused too early sometimes. This could corrupt the database when recovering.
@changelog_1115_li
@changelog_1116_li
The H2 Console has been translated to Dutch. Thanks a lot to Remco Schoen!
@changelog_1116_li
@changelog_1117_li
Databases can now be opened even if trigger classes are not in the classpath. The exception is thrown when trying to fire the trigger.
@changelog_1117_li
@changelog_1118_li
Opening databases with ACCESS_MODE_DATA=r is now supported. In this case the database is read-only, but the files don't not need to be read-only.
@changelog_1118_li
@changelog_1119_li
Security: The database now waits 200 ms before throwing an exception if the user name or password don't match, to slow down dictionary attacks.
@changelog_1119_li
@changelog_1120_li
The value cache is now a soft reference cache. This should help save memory.
@changelog_1120_li
@changelog_1121_li
CREATE INDEX on a table with many rows could run out of memory. Fixed.
@changelog_1121_li
@changelog_1122_li
Large result sets are now a bit faster.
@changelog_1122_li
@changelog_1123_li
ALTER TABLE ALTER COLUMN RESTART and ALTER SEQUENCE now support parameters (any expressions).
@changelog_1123_li
@changelog_1124_li
When setting the base directory on the command line, the user directory prefix ('~') was ignored.
@changelog_1124_li
@changelog_1125_li
The DbStarter servlet didn't start the TCP listener even if configured.
@changelog_1125_li
@changelog_1126_li
Statement.setQueryTimeout() is now supported.
@changelog_1126_li
@changelog_1127_li
New session setting QUERY_TIMEOUT, and new system property h2.maxQueryTimeout.
@changelog_1127_li
@changelog_1128_li
Changing the transaction log level (SET LOG) is now written to the trace file by default.
@changelog_1128_li
@changelog_1129_li
In a SQL script, primary key constraints are now ordered before foreign key constraints.
@changelog_1129_li
@changelog_1130_li
It was not possible to create a referential constraint to a table in a different schema in some situations.
@changelog_1130_li
@changelog_1131_li
The H2 Console was slow when the database contains many tables. Now the column names are not shown in this case.
@changelog_1131_h2
@changelog_1132_h2
Version 1.0.66 (2008-02-02)
@changelog_1132_li
@changelog_1133_li
There is a new online error analyzer tool.
@changelog_1133_li
@changelog_1134_li
H2 Console: stack traces are now links to the source code in the source repository (H2 database only).
@changelog_1134_li
@changelog_1135_li
CHAR data type equals comparison was case insensitive instead of case sensitive.
@changelog_1135_li
@changelog_1136_li
The exception 'Value too long for column' now includes the data.
@changelog_1136_li
@changelog_1137_li
The table name was missing in the documentation of CREATE INDEX.
@changelog_1137_li
@changelog_1138_li
Better support for IKVM (www.ikvm.net): the H2 Console now opens a browser window.
@changelog_1138_li
@changelog_1139_li
The cache size was not correctly calculated for tables with large objects (specially if compression is used). This could lead to out-of-memory exceptions.
@changelog_1139_li
@changelog_1140_li
The exception "Hexadecimal string contains non-hex character" was not always thrown when it should have been. Fixed.
@changelog_1140_li
@changelog_1141_li
The H2 Console now provides a link to the documentation when an error occurs (H2 databases only so far).
@changelog_1141_li
@changelog_1142_li
The acting as PostgreSQL server, when a base directory was set, and the H2 Console was started as well, the base directory was applied twice.
@changelog_1142_li
@changelog_1143_li
Calling EXTRACT(HOUR FROM ...) or EXTRACT(HH FROM ...) returned the wrong values (0 to 11 instead of 0 to 23). All other tested databases return values from 0 to 23. Please check if your application relies on the old behavior before upgrading.
@changelog_1143_li
@changelog_1144_li
For compatibility with other databases the column default (COLUMN_DEF) for columns without default is now null (it was an empty string).
@changelog_1144_li
@changelog_1145_li
Statements that contain very large subqueries (where the subquery result does not fit in memory) are now faster.
@changelog_1145_li
@changelog_1146_li
Variables: large objects (CLOB and BLOB) that don't fit in memory did not work correctly when used as variables.
@changelog_1146_li
@changelog_1147_li
Fulltext search is now supported in named in-memory databases.
@changelog_1147_li
@changelog_1148_li
H2 Console: multiple consecutive spaces in the setting name did not work. Fixed.
@changelog_1148_h2
@changelog_1149_h2
Version 1.0.65 (2008-01-18)
@changelog_1149_li
@changelog_1150_li
The build (ant) now automatically switches the source code to the correct version (JDK 1.4/1.5 or 1.6).
@changelog_1150_li
@changelog_1151_li
A recovery bug has been fixed. With older versions, it was necessary to add ;RECOVER=1 to the database URL in cases where it should not have been required.
@changelog_1151_li
@changelog_1152_li
The performance for DROP and DROP ALL OBJECTS has been improved.
@changelog_1152_li
@changelog_1153_li
The ChangePassword API has been improved.
@changelog_1153_li
@changelog_1154_li
User defined variables are now supported. Examples: SET @VAR=10;CALL @VAR. This can be used for running totals as in: select x, set(@t, ifnull(@t, 0) + x) from system_range(1, 10)
@changelog_1154_li
@changelog_1155_li
The Ukrainian translation has been improved.
@changelog_1155_li
@changelog_1156_li
CALL statements can now be used in batch updates and called using Statement.executeUpdate.
@changelog_1156_li
@changelog_1157_li
New read-only setting CREATE_BUILD (the build number of the database engine that created the database).
@changelog_1157_li
@changelog_1158_li
The optimizer did not use multi column indexes for range queries in some cases. Fixed.
@changelog_1158_li
@changelog_1159_li
The H2 Console now calls DataSource.getConnection() instead of DataSource.getConnection(user, password) when user name and password are not specified.
@changelog_1159_li
@changelog_1160_li
The bind IP address can now be set when using multi-homed host (if multiple network adapters are available) using the system property h2.bindAddress.
@changelog_1160_li
@changelog_1161_li
Batch update: Calling BatchUpdateException.printStackTrace() could result in out of memory. Fixed.
@changelog_1161_li
@changelog_1162_li
Indexes of unique or foreign constraints where not dropped when the constraint was dropped after altering the table (for example dropping a column). Fixed.
@changelog_1162_li
@changelog_1163_li
The performance for large result sets in the server mode has been improved.
@changelog_1163_li
@changelog_1164_li
The setting h2.serverSmallResultSetSize has been renamed to h2.serverResultSetFetchSize.
@changelog_1164_li
@changelog_1165_li
The SCRIPT command now uses multi-row insert statements to save space except if the option SIMPLE is used.
@changelog_1165_li
@changelog_1166_li
The SCRIPT command did not split up CLOB data correctly. Fixed.
@changelog_1166_li
@changelog_1167_li
Optimization for single column distinct queries with an index: select distinct name from test. Can be disabled by setting the system property h2.optimizeDistinct to false.
@changelog_1167_li
@changelog_1168_li
DROP ALL OBJECTS did not drop user defined aggregate functions and domains.
@changelog_1168_li
@changelog_1169_li
PostgreSQL compatibility: COUNT(T.*) is now supported.
@changelog_1169_li
@changelog_1170_li
LIKE comparisons are now faster.
@changelog_1170_li
@changelog_1171_li
Encrypted databases are now faster.
@changelog_1171_h2
@changelog_1172_h2
Version 1.0.64 (2007-12-27)
@changelog_1172_li
@changelog_1173_li
3-way union queries with prepared statement or views could return the wrong results. Fixed.
@changelog_1173_li
@changelog_1174_li
The PostgreSQL ODBC driver did not work in the last release due to a parser regression. Fixed.
@changelog_1174_li
@changelog_1175_li
CSV tool: some escape/separator character combinations did not work. Fixed.
@changelog_1175_li
@changelog_1176_li
CSV tool: the character # could not be used as a separator when reading.
@changelog_1176_li
@changelog_1177_li
Recovery: when the index file is corrupt, now the database deletes it and re-creates it automatically.
@changelog_1177_li
@changelog_1178_li
The MVCC mode did not work well with in-memory databases. Fixed.
@changelog_1178_li
@changelog_1179_li
The FTP server now supports a event listener. Thanks Fulvio Biondi for the help!
@changelog_1179_li
@changelog_1180_li
New system function CANCEL_SESSION to cancel the currently executing statement of another session.
@changelog_1180_li
@changelog_1181_li
The database now supports an exclusive mode. In exclusive mode, new connections are rejected.
@changelog_1181_li
@changelog_1182_li
H2 Console: when editing result sets, columns can now be set to null. The text 'null' must be escaped using '=null'.
@changelog_1182_li
@changelog_1183_li
New built-in functions RPAD and LPAD.
@changelog_1183_li
@changelog_1184_li
New meta data table INFORMATION_SCHEMA.SESSIONS and LOCKS to get information about active connections and locks. Admins will see all connections, non-admins only their own session.
@changelog_1184_li
@changelog_1185_li
The Ukrainian translation was not working in the last release. Fixed.
@changelog_1185_li
@changelog_1186_li
Creating many tables (many hundreds) was slow. Fixed.
@changelog_1186_li
@changelog_1187_li
Opening a database with many indexes (thousands) was slow. Fixed.
@changelog_1187_li
@changelog_1188_li
H2 Console / autocomplete: Ctrl+Space now shows the list in all modes.
@changelog_1188_li
@changelog_1189_li
The method Trigger.init has been changed: the parameters 'before' and 'type', have been added to the init method.
@changelog_1189_li
@changelog_1190_li
The performance has been improved for ResultSet methods with column name.
@changelog_1190_li
@changelog_1191_li
A stack trace was thrown if the system did not provide a quick secure random source and if there is no network or the network settings are not configured. Fixed.
@changelog_1191_li
@changelog_1192_li
The H2 Console has been translated to Turkish. Thanks a lot to Ridvan Agar!
@changelog_1192_li
@changelog_1193_li
Improved debugging support: toString methods of most object now return a meaningful text.
@changelog_1193_li
@changelog_1194_li
The classes DbStarter and WebServlet have been moved to src/main.
@changelog_1194_li
@changelog_1195_li
The column INFORMATION_SCHEMA.TRIGGERS.SQL now contains the CREATE TRIGGER statement.
@changelog_1195_li
@changelog_1196_li
Loading classes and calling methods can be restricted using the new system property h2.allowedClasses.
@changelog_1196_li
@changelog_1197_li
The database could not be used in Java applets due to security exceptions. Fixed.
@changelog_1197_h2
@changelog_1198_h2
Version 1.0.63 (2007-12-02)
@changelog_1198_li
@changelog_1199_li
The SecurePassword example has been improved.
@changelog_1199_li
@changelog_1200_li
In time zones where the summer time saving limit is at midnight, some dates do not work in some virtual machines, for example 2007-10-14 in Chile, using the Sun JVM 1.6.0_03-b05. Fixed.
@changelog_1200_li
@changelog_1201_li
The native fulltext search was not working properly after re-connecting.
@changelog_1201_li
@changelog_1202_li
Improved FTP server: now the PORT command is supported.
@changelog_1202_li
@changelog_1203_li
Temporary views (FROM(...)) with UNION didn't work if nested. Fixed.
@changelog_1203_li
@changelog_1204_li
Performance optimization for IN(...) and IN(SELECT...), currently disabled by default. To enable, use java -Dh2.optimizeInJoin=true
@changelog_1204_li
@changelog_1205_li
The H2 Console has been translated to Ukrainian by Igor Dobrovolskyi. Thanks a lot!
@changelog_1205_li
@changelog_1206_li
New function TABLE_DISTINCT.
@changelog_1206_li
@changelog_1207_li
Using LIMIT with values close to Integer.MAX_VALUE didn't work correctly.
@changelog_1207_li
@changelog_1208_li
Certain setting in the Server didn't work (http://code.google.com/p/h2database/issues/detail?id=7).
@changelog_1208_h2
@changelog_1209_h2
Version 1.0.62 (2007-11-25)
@changelog_1209_li
@changelog_1210_li
Large updates and deletes are now supported by buffering data to disk if required. The threshold is currently set to 100'000 bytes and can be changed using SET MAX_OPERATION_MEMORY or using by appending ;MAX_OPERATION_MEMORY=.. to the database URL. See also the docs.
@changelog_1210_li
@changelog_1211_li
MVCC: now an exception is thrown when an application tries to change the MVCC setting while the database is already open.
@changelog_1211_li
@changelog_1212_li
Referential integrity checks didn't lock the referenced table, and thus could read uncommitted rows of other connections. In that way the referential constraints could get violated (except when using MVCC).
@changelog_1212_li
@changelog_1213_li
Renaming or dropping a user with a schema, or removing the admin property of that user made the schema inaccessible after re-opening the database. Fixed.
@changelog_1213_li
@changelog_1214_li
The H2 Console now also support the command line option -ifExists when started from the Server tool, but only when connecting to H2 databases.
@changelog_1214_li
@changelog_1215_li
Duplicate column names were not detected when renaming columns. Fixed.
@changelog_1215_li
@changelog_1216_li
The console did not display multiple embedded spaces in text correctly. Fixed.
@changelog_1216_li
@changelog_1217_li
Google Android support: use 'ant codeswitchAndroid' to switch the source code to Android.
@changelog_1217_li
@changelog_1218_li
Values of type ARRAY are now sorted as in PostgreSQL.
@changelog_1218_li
@changelog_1219_li
In the cluster mode, could not connect if only one server was running (last release only). Fixed.
@changelog_1219_li
@changelog_1220_li
The performance of large CSV operations has been improved.
@changelog_1220_li
@changelog_1221_li
Now using custom toString() for most JDBC objects and commands.
@changelog_1221_li
@changelog_1222_li
Nested temporary views (SELECT * FROM (SELECT ...)) with parameters didn't work in some cases. Fixed.
@changelog_1222_li
@changelog_1223_li
CSV: Using an empty field delimiter didn't work (a workaround was using char(0)). Fixed.
@changelog_1223_li
@changelog_1224_li
A patch for Apache DDL Utils is available at https://issues.apache.org/jira/browse/DDLUTILS-185
@changelog_1224_li
@changelog_1225_li
The default value for h2.emergencySpaceInitial is now 256 KB (to speed up creating encrypted databases)
@changelog_1225_li
@changelog_1226_li
Eduardo Velasques has translated the H2 Console and the error messages to Brazilian Portuguese. Thanks a lot!
@changelog_1226_li
@changelog_1227_li
Creating a table from GROUP_CONCAT didn't work if the data was longer than 255 characters
@changelog_1227_h2
@changelog_1228_h2
Version 1.0.61 (2007-11-10)
@changelog_1228_li
The Lucene Fulltext implementation is now compiled and included in the h2.jar. Requires Lucene 2.2.
@changelog_1229_li
Added more tests. The code coverage is now at 83%.
The Lucene Fulltext implementation is now compiled and included in the h2.jar. Requires Lucene 2.2.
@changelog_1230_li
ResultSetMetaData.getColumnDisplaySize was calculated as the longest display size for the given result set, but should be the maximum size that fits in the column. Fixed.
Added more tests. The code coverage is now at 83%.
@changelog_1231_li
The MODE used to be a global setting, now it is a database level setting.
ResultSetMetaData.getColumnDisplaySize was calculated as the longest display size for the given result set, but should be the maximum size that fits in the column. Fixed.
@changelog_1232_li
The database does now always round to the nearest number when converting a floating point to a integer: CAST(1.5 AS INT) will now result in 2, like in PostgreSQL and MySQL.
The MODE used to be a global setting, now it is a database level setting.
@changelog_1233_li
Math operations using unknown data types (for example -? and ?+?) are now interpreted as decimal.
The database does now always round to the nearest number when converting a floating point to a integer: CAST(1.5 AS INT) will now result in 2, like in PostgreSQL and MySQL.
@changelog_1234_li
INSTR, LOCATE: backward searching is not supported by using a negative start position.
Math operations using unknown data types (for example -? and ?+?) are now interpreted as decimal.
@changelog_1235_li
Can now open a database stored in a jar or zip file (for example, jdbc:h2:zip:c:/temp/h2.zip!/test).
INSTR, LOCATE: backward searching is not supported by using a negative start position.
@changelog_1236_li
Files access now uses an API (FileSystem, FileObject), this will simplify adding other file systems and features (for example replication).
Can now open a database stored in a jar or zip file (for example, jdbc:h2:zip:c:/temp/h2.zip!/test).
@changelog_1237_li
Vlad Alexahin has translated H2 Console to Russian. Thanks a lot!
Files access now uses an API (FileSystem, FileObject), this will simplify adding other file systems and features (for example replication).
@changelog_1238_li
Descending indexes are now supported. This is useful when sorting columns descending, for example by creation date.
Vlad Alexahin has translated H2 Console to Russian. Thanks a lot!
@changelog_1239_li
Solved a Java level deadlock in the DatabaseCloser.
Descending indexes are now supported. This is useful when sorting columns descending, for example by creation date.
@changelog_1240_li
CREATE SEQUENCE: New option CACHE (number of pre-allocated numbers). New column CACHE in the sequence meta data table. The default cache size is still 32.
Solved a Java level deadlock in the DatabaseCloser.
@changelog_1241_li
CREATE SEQUENCE: New option CACHE (number of pre-allocated numbers). New column CACHE in the sequence meta data table. The default cache size is still 32.
@changelog_1242_li
MVCC: The system property h2.mvcc has been removed. A few bugs have been fixed, and new tests have been added.
@changelog_1242_h2
@changelog_1243_h2
Version 1.0.60 (2007-10-20)
@changelog_1243_li
@changelog_1244_li
JdbcXAConnection: starting a transaction before getting the connection didn't switch off autocommit.
@changelog_1244_li
@changelog_1245_li
User defined aggregate functions are not supported.
@changelog_1245_li
@changelog_1246_li
Server.shutdownTcpServer was blocked when first called with force=false and then force=true. Now documentation is improved, and it is no longer blocked.
@changelog_1246_li
@changelog_1247_li
Stack traces did not include the SQL statement in all cases where they could have. Also, stack traces with SQL statement are now shorter.
@changelog_1247_li
@changelog_1248_li
Linked tables: now tables in non-default schemas are supported as well
@changelog_1248_li
@changelog_1249_li
New Italian translation from PierPaolo Ucchino. Thanks a lot!
@changelog_1249_li
@changelog_1250_li
CSV: New methods to set the escape character and field delimiter in the Csv tool and the CSVWRITE and CSVREAD methods.
@changelog_1250_li
@changelog_1251_li
Prepared statements could not be used after data definition statements (creating tables and so on). Fixed.
@changelog_1251_li
@changelog_1252_li
PreparedStatement.setMaxRows could not be changed to a higher value after the statement was executed.
@changelog_1252_li
@changelog_1253_li
The H2 Console could not connect twice to the same H2 embedded database at the same time. Fixed.
@changelog_1253_li
@changelog_1254_li
CSVREAD, RUNSCRIPT and so on now support URLs as well, using URL.openStream(). Example: select * from csvread('jar:file:///c:/temp/test.jar!/test.csv');
@changelog_1254_h2
@changelog_1255_h2
Version 1.0.59 (2007-10-03)
@changelog_1255_li
@changelog_1256_li
When the data type was unknown in a subquery, sometimes the wrong exception (ArrayIndexOutOfBounds) was thrown. Fixed.
@changelog_1256_li
@changelog_1257_li
If the process was killed while the database was running, sometimes the database could not be opened ('double allocation') except when the system property h2.check was set to false. Fixed.
@changelog_1257_li
@changelog_1258_li
Multi-threaded kernel (MULTI_THREADED=1): A synchronization problem has been fixed.
@changelog_1258_li
@changelog_1259_li
A PreparedStatement that was cancelled could not be reused. Fixed.
@changelog_1259_li
@changelog_1260_li
H2 Console: Progress information when logging into a H2 embedded database (useful when opening a database is slow).
@changelog_1260_li
@changelog_1261_li
When the database was closed while logging was disabled (LOG 0), re-opening the database was slow. Fixed.
@changelog_1261_li
@changelog_1262_li
Fulltext search is now documented (in the Tutorial).
@changelog_1262_li
@changelog_1263_li
The Console did not refresh the table list if the CREATE TABLE statement started with a comment. Fixed.
@changelog_1263_li
@changelog_1264_li
When creating a table using CREATE TABLE .. AS SELECT, the precision for some data types (for example VARCHAR) was set to the default precision. Fixed.
@changelog_1264_li
@changelog_1265_li
When using the (undocumented) in-memory file system (jdbc:h2:memFS:x or jdbc:h2:memLZF:x), and using multiple connections, a ConcurrentModificationException could occur. Fixed.
@changelog_1265_li
@changelog_1266_li
REGEXP compatibility: So far String.matches was used, but for compatibility with MySQL, now Matcher.find is used.
@changelog_1266_li
@changelog_1267_li
SCRIPT: the SQL statements in the result set now include the terminating semicolon as well. Simplifies copy and paste.
@changelog_1267_li
@changelog_1268_li
When using a subquery with group by as a table, some columns could not be used in the where condition in the outer query. Example: SELECT * FROM (SELECT ID, COUNT(*) C FROM TEST) WHERE C > 100. Fixed.
@changelog_1268_li
@changelog_1269_li
Views with subqueries as tables and queries with nested subqueries as tables did not always work. Fixed.
@changelog_1269_li
@changelog_1270_li
Compatibility: comparing columns with constants that are out of range does not throw an exception.
@changelog_1270_h2
@changelog_1271_h2
Version 1.0.58 (2007-09-15)
@changelog_1271_li
@changelog_1272_li
System.exit is no longer called by the WebServer, the Console and the Server tool (except to set the exit code if required). This is important when using OSGi.
@changelog_1272_li
@changelog_1273_li
Optimization for independent subqueries. For example, this query can now an index: SELECT * FROM TEST WHERE ID = (SELECT MAX(ID) FROM TEST) This can be disabled by setting the system property h2.optimizeSubqueryCache to false.
@changelog_1273_li
@changelog_1274_li
The explain plan now says: /* direct lookup query */ if the query can be processed directly without reading rows, for example when using MIN(indexed column), MAX(indexed column), or COUNT(*).
@changelog_1274_li
@changelog_1275_li
When using IFNULL, NULLIF, COALESCE, LEAST, or GREATEST, and the first parameter was ?, an exception was thrown. Now the highest data type of all parameters is used.
@changelog_1275_li
@changelog_1276_li
When comparing TINYINT or SMALLINT columns against constants, the index was not used. Fixed.
@changelog_1276_li
@changelog_1277_li
Maven 2: new version are now automatically synced with the central repositories.
@changelog_1277_li
@changelog_1278_li
The default value for MAX_MEMORY_UNDO is now 100000.
@changelog_1278_li
@changelog_1279_li
The documentation indexer does no longer index Japanese pages. If somebody knows how to split Japanese into words please post it.
@changelog_1279_li
@changelog_1280_li
Oracle compatibility: SYSDATE now returns a timestamp. CHR(..) is now an alias for CHAR(..).
@changelog_1280_li
@changelog_1281_li
After deleting data, empty space in the database files was not efficiently reused (but it was reused when opening the database). This has been fixed.
@changelog_1281_li
@changelog_1282_li
About 230 bytes per database was leaked. This is a problem for applications opening and closing many thousand databases. The main problem: a shutdown hook was added but never removed. Fixed. In JDK 1.4, there is <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4197876">an additionally problem</a> . A workaround has been implemented.
@changelog_1282_li
@changelog_1283_li
Optimization for COLUMN IN(.., NULL) if the column does not allow NULL values.
@changelog_1283_li
@changelog_1284_li
Using spaces in column and table aliases was not supported when used inside a view or temporary view.
@changelog_1284_li
@changelog_1285_li
The version (build) number is now included in the manifest file.
@changelog_1285_li
@changelog_1286_li
In some systems, SecureRandom.generateSeed is very slow (taking one minute or more). For those cases, an alternative method is used that takes less than one second.
@changelog_1286_li
@changelog_1287_li
The database file sizes are now increased at most 32 MB at any time.
@changelog_1287_li
@changelog_1288_li
New method DatabaseEventListener.opened that is called just after opening a database.
@changelog_1288_li
@changelog_1289_li
When using the Console with Internet Explorer 6.0 or 7.0, a Javascript error was thrown after clearing the query.
@changelog_1289_li
@changelog_1290_li
A database can now be opened even if class of a user defined function is not in the classpath. Trying to call the function will throws an exception.
@changelog_1290_li
@changelog_1291_li
User defined functions and constants may not overload built-in functions and constants. This didn't work before, but now trying to create such an object will fail.
@changelog_1291_li
@changelog_1292_li
Improved MultiDimension tool (for spatial queries): in the last few releases the tool was actually slower than using a regular query (because index lookup got faster, and because the tool didn't support prepared statements) Now the tool generates prepared statements, and the performance is better again (about 5 times faster for a reasonable amount of data).
@changelog_1292_li
@changelog_1293_li
Adding a foreign key or when re-enabling referential integrity for a table failed when checking was enabled and the reference contained NULL.
@changelog_1293_li
@changelog_1294_li
For PgServer, character encoding other than UTF-8 did not work correctly. Fixed.
@changelog_1294_li
@changelog_1295_li
Using a function in a GROUP BY expression that is used in a view as a condition did not always work.
@changelog_1295_h2
@changelog_1296_h2
Version 1.0.57 (2007-08-25)
@changelog_1296_li
@changelog_1297_li
New experimental feature MVCC (multi version concurrency control). Can be set as a option when opening the database (jdbc:h2:~/test;MVCC=TRUE) or as a system property (-Dh2.mvcc=true). This is work-in-progress, use it at your own risk. Feedback is welcome.
@changelog_1297_li
@changelog_1298_li
The version number is now major.minor.micro where micro is the build number. Not all version are public, so there may be gaps in the micro. The minor changes when there is a file format change.
@changelog_1298_li
@changelog_1299_li
The backup tool (org.h2.tools.Backup) did not work. The restore tool did not work when the -db parameter was used. Fixed. The documentation of the backup tool has been changed: only one database may be backed up at any time.
@changelog_1299_li
@changelog_1300_li
Opening large read-only databases was very slow. Fixed.
@changelog_1300_li
@changelog_1301_li
New Japanese translation of the error messages thanks to Ikemoto Masahiro. Thanks a lot!
@changelog_1301_li
@changelog_1302_li
Disabling / enabling referential integrity for a table can now be used inside a transaction.
@changelog_1302_li
@changelog_1303_li
Rights checking for dynamic tables (SELECT * FROM (SELECT ...)) did not work. Fixed.
@changelog_1303_li
@changelog_1304_li
Creating more than 10 views that depend on each other was very slow. Reconnecting was slow as well. Fixed.
@changelog_1304_li
@changelog_1305_li
When used as as Servlet, the H2 Console did not work with SSL (using Tomcat). Fixed.
@changelog_1305_li
@changelog_1306_li
When altering a table with foreign key constraint, if there was no manual index created for the referenced columns, the automatically created index was dropped while still being used. Fixed.
@changelog_1306_li
@changelog_1307_li
Check and foreign key constraints now checks if the existing data is consistent (this can be disabled by appending NOCHECK). It is also possible to check existing data when re-enabling referential integrity for a table.
@changelog_1307_li
@changelog_1308_li
Some unit tests failed on Linux because the file system works differently. The unit tests are fixed and should work now.
@changelog_1308_li
@changelog_1309_li
Can now incrementally translate the documentation. See also FAQ.
@changelog_1309_li
@changelog_1310_li
Improved error messages: some tools can't show the root cause of an exception. Adding the message of the root cause to the message of the thrown exception now where it makes sense.
@changelog_1310_li
@changelog_1311_li
The H2 Console can now connect to databases using JNDI. The driver class name must be a javax.naming.Context, (for example javax.naming.InitialContext), and the URL the resource name (for example java:comp/env/jdbc/Test). This should also work for linked tables.
@changelog_1311_li
@changelog_1312_li
Google translate did not work for the H2 homepage. It should be fixed now.
@changelog_1312_li
@changelog_1313_li
The CONVERT function did not work with views when using UNION.
@changelog_1313_li
@changelog_1314_li
The build now issues a warning if the source code is switched to the wrong version.
@changelog_1314_li
@changelog_1315_li
The default lock mode is now read committed instead of serialized.
@changelog_1315_li
@changelog_1316_li
PG server: data was truncated when reading large VARCHAR columns and decimal columns.
@changelog_1316_li
@changelog_1317_li
PG server: when the same database was accessed multiple times using the PostgreSQL ODBC driver, the pg_catalog schema update failed, and connecting to the database was not possible. Fixed.
@changelog_1317_li
@changelog_1318_li
Some file operations didn't work for files in the root directory. Fixed.
@changelog_1318_li
@changelog_1319_li
In the Restore tool, the parameter -file did not work. Fixed.
@changelog_1319_li
@changelog_1320_li
Two-phase commit: commit with transaction name was only supported in the recovery scan. Now it is always supported.
@changelog_1320_li
@changelog_1321_li
The column name C_CURRENT_TIMESTAMP did not work in the last release.
@changelog_1321_li
@changelog_1322_li
OpenOffice compatibility: support database name in column names.
@download_1000_h1
......@@ -3878,35 +3881,35 @@ Many thanks for those who helped by finding and reporting bugs, gave valuable fe
Florent Ramiere, France
@history_1026_li
Pete Haidinyak, USA
@history_1027_li
Jun Iyama, Japan
@history_1028_li
@history_1027_li
Antonio Casqueiro, Portugal
@history_1029_li
@history_1028_li
Oliver Computing LLC, USA
@history_1030_li
@history_1029_li
Harpal Grover Consulting Inc., USA
@history_1031_li
@history_1030_li
Elisabetta Berlini, Italy
@history_1032_li
@history_1031_li
William Gilbert, USA
@history_1033_li
@history_1032_li
Antonio Dieguez, Chile
@history_1034_a
@history_1033_a
Ontology Works, USA
@history_1035_li
@history_1034_li
lumber-mill.co.jp, Japan
@history_1035_li
Pete Haidinyak, USA
@installation_1000_h1
Installation
......@@ -4796,111 +4799,129 @@ PolePosition
Open source database benchmark.
@links_1101_a
Rutema
Poormans
@links_1102_p
Rutema is a test execution and management tool for heterogeneous development environments written in Ruby.
Very basic CMS running as a SWT application and generating static html pages.
@links_1103_a
Scriptella
Railo
@links_1104_p
ETL (Extract-Transform-Load) and script execution tool.
Railo is an alternative engine for the Cold Fusion Markup Language, that compiles code programmed in CFML into Java bytecode and executes it on a servlet engine.
@links_1105_a
Sesar
Rutema
@links_1106_p
Dependency Injection Container with Aspect Oriented Programming.
Rutema is a test execution and management tool for heterogeneous development environments written in Ruby.
@links_1107_a
SemmleCode
Sava
@links_1108_p
Eclipse plugin to help you improve software quality.
Open-source web-based content management system.
@links_1109_a
Shellbook
Scriptella
@links_1110_p
Desktop publishing application.
ETL (Extract-Transform-Load) and script execution tool.
@links_1111_a
Signsoft intelliBO
Sesar
@links_1112_p
Persistence middleware supporting the JDO specification.
Dependency Injection Container with Aspect Oriented Programming.
@links_1113_a
SmartFoxServer
SemmleCode
@links_1114_p
Platform for developing multiuser applications and games with Macromedia Flash.
Eclipse plugin to help you improve software quality.
@links_1115_a
SQL Developer
Shellbook
@links_1116_p
Universal Database Frontend.
Desktop publishing application.
@links_1117_a
SQL Workbench/J
Signsoft intelliBO
@links_1118_p
Free DBMS-independent SQL tool.
Persistence middleware supporting the JDO specification.
@links_1119_a
SQuirreL SQL Client
SmartFoxServer
@links_1120_p
Graphical tool to view the structure of a database, browse the data, issue SQL commands etc.
Platform for developing multiuser applications and games with Macromedia Flash.
@links_1121_a
SQuirreL DB Copy Plugin
SQL Developer
@links_1122_p
Tool to copy data from one database to another.
Universal Database Frontend.
@links_1123_a
StorYBook
SQL Workbench/J
@links_1124_p
A summary-based tool for novelist and script writers. It helps to keep the overview over the various traces a story has.
Free DBMS-independent SQL tool.
@links_1125_a
StreamCruncher
SQuirreL SQL Client
@links_1126_p
Event (stream) processing kernel.
Graphical tool to view the structure of a database, browse the data, issue SQL commands etc.
@links_1127_a
Tamava
SQuirreL DB Copy Plugin
@links_1128_p
Newsgroups Reader.
Tool to copy data from one database to another.
@links_1129_a
Tune Backup
StorYBook
@links_1130_p
Easy-to-use backup solution for your iTunes library.
A summary-based tool for novelist and script writers. It helps to keep the overview over the various traces a story has.
@links_1131_a
Web of Web
StreamCruncher
@links_1132_p
Collaborative and realtime interactive media platform for the web.
Event (stream) processing kernel.
@links_1133_a
Werkzeugkasten
Tamava
@links_1134_p
Minimum Java Toolset.
Newsgroups Reader.
@links_1135_a
Volunteer database
Tune Backup
@links_1136_p
Easy-to-use backup solution for your iTunes library.
@links_1137_a
Web of Web
@links_1138_p
Collaborative and realtime interactive media platform for the web.
@links_1139_a
Werkzeugkasten
@links_1140_p
Minimum Java Toolset.
@links_1141_a
Volunteer database
@links_1142_p
A database front end to register volunteers, partnership and donation for a Non Profit organization.
@mainWeb_1000_h1
......@@ -6488,7 +6509,7 @@ Test with dbmonster (http://dbmonster.kernelpanic.pl/)
Test with dbcopy (http://dbcopyplugin.sourceforge.net)
@roadmap_1055_li
Find a tool to view a text file >100 MB, with find, page up and down (like less)
Find a tool to view large text file >100 MB, with find, page up and down (like less), truncate before / after
@roadmap_1056_li
Implement, test, document XAConnection and so on
......
......@@ -1051,963 +1051,966 @@ Centralリポジトリの利用
#Next Version (unreleased)
@changelog_1002_li
#Linked tables: To view the statements that are executed against the target table, set the trace level to 3.
#Improved compatibility. New compatibility modes for Oracle and Derby. New compatibility flag uniqueIndexNullDistinct to only allow one row with 'NULL' in a unique index. This flag is enabled for Derby, Oracle, MSSQLServer, and HSQLDB.
@changelog_1003_li
#RunScript tool: new options to show and check the results of queries.
#Linked tables: To view the statements that are executed against the target table, set the trace level to 3.
@changelog_1004_li
#Deadlocks are now detected. One transaction is rolled back automatically.
#RunScript tool: new options to show and check the results of queries.
@changelog_1005_li
#The Lucene fulltext index was always re-created when opening a database with fulltext index enabled.
#Deadlocks are now detected. One transaction is rolled back automatically.
@changelog_1006_li
#The Lucene fulltext index was always re-created when opening a database with fulltext index enabled.
@changelog_1007_li
#Support for overloaded Java methods. A user defined function can now be bound to multiple Java methods, if the Java methods have the same name but a different number of parameters. Thanks to Gary Tong for providing a patch!
@changelog_1007_h2
@changelog_1008_h2
#Version 1.0.73 (2008-05-31)
@changelog_1008_li
@changelog_1009_li
#ParameterMetaData now returns the right data type for most conditions, as in WHERE ID=?.
@changelog_1009_li
@changelog_1010_li
#The table SYSTEM_RANGE now supports expressions and parameters.
@changelog_1010_li
@changelog_1011_li
#New column INFORMATION_SCHEMA.CONSTRAINTS.UNIQUE_INDEX_NAME that contains the name of the unique index used to enforce this constraint, if there is such an index.
@changelog_1011_li
@changelog_1012_li
#SET QUERY_TIMEOUT and Statement.setQueryTimeout no longer commits a transaction. The same applies to SET @VARIABLE, SET LOCK_TIMEOUT, SET TRACE_LEVEL_*, SET THROTTLE, and SET PATH.
@changelog_1012_li
@changelog_1013_li
#The SCRIPT command does now emit IF NOT EXISTS for CREATE ROLE.
@changelog_1013_li
@changelog_1014_li
#MySQL compatibility: auto_increment column are no longer automatically converted to primary key columns.
@changelog_1014_li
@changelog_1015_li
#PostgreSQL compatibility: support for BOOL_OR and BOOL_AND aggregate functions.
@changelog_1015_li
@changelog_1016_li
#Negative scale values for DECIMAL or NUMBER columns are now supported in regular tables and in linked tables.
@changelog_1016_li
@changelog_1017_li
#A role or right can now be granted or revoked multiple times without getting an exception.
@changelog_1017_li
@changelog_1018_li
#Infinite numbers in SQL scripts are listed as POWER(0, -1)), negative infinite as (-POWER(0, -1)), and NaN (not a number) as SQRT(-1).
@changelog_1018_li
@changelog_1019_li
#The special double and float values 'NaN' (not a number) did not work correctly when sorting or comparing.
@changelog_1019_li
@changelog_1020_li
#The fulltext search did not support CLOB data types.
@changelog_1020_li
@changelog_1021_li
#If the drive with the database files was disconnected or unmounted while writing, sometimes a stack overflow exception was thrown instead of a IO exception.
@changelog_1021_li
@changelog_1022_li
#The H2 Console could not be shut down from within the tool if the browser supports keepAlive (most browsers do).
@changelog_1022_li
@changelog_1023_li
#If the password was passed as a char array, it was kept in an internal buffer longer than required. Theoretically the password could have been stolen if the main memory was swapped to disk before the garbage collection was run.
@changelog_1023_h2
@changelog_1024_h2
#Version 1.0.72 (2008-05-10)
@changelog_1024_li
@changelog_1025_li
#Some databases could not be opened when appending ;RECOVER=1 to the database URL.
@changelog_1025_li
@changelog_1026_li
#The Japanese translation of the error messages and the H2 Console has been completed by Masahiro Ikemoto (Arizona Design Inc.)
@changelog_1026_li
@changelog_1027_li
#Updates made to updatable rows are now visible within the same result set. DatabaseMetaData.ownUpdatesAreVisible now returns true.
@changelog_1027_li
@changelog_1028_li
#ParameterMetaData now returns the correct data for INSERT and UPDATE statements.
@changelog_1028_li
@changelog_1029_li
#H2 Shell: DESCRIBE now supports an schema name.
@changelog_1029_li
@changelog_1030_li
#A subset of the PostgreSQL 'dollar quoting' feature is now supported.
@changelog_1030_li
@changelog_1031_li
#SLF4J is now supported by using adding TRACE_LEVEL_FILE=4 to the database URL.
@changelog_1031_li
@changelog_1032_li
#The recovery tool did not work if the table name contained spaces or if there was a comment on the table.
@changelog_1032_li
@changelog_1033_li
#Triggers are no longer executed when changing the table structure (ALTER TABLE).
@changelog_1033_li
@changelog_1034_li
#When setting BLOB or CLOB values larger than 65 KB using a remote connection, temporary files were kept on the client longer than required (until the connection was closed or the object is garbage collected). Now they are removed as soon as the PreparedStatement is closed, or when the value is overwritten.
@changelog_1034_li
@changelog_1035_li
#Statements can now be cancelled remotely (when using remote connections).
@changelog_1035_li
@changelog_1036_li
#The Shell tool now uses java.io.Console to read the password when using JDK 1.6
@changelog_1036_li
@changelog_1037_li
#When using read-only databases and setting LOG=2, an exception was written to the trace file when closing the database. Fixed.
@changelog_1037_h2
@changelog_1038_h2
#Version 1.0.71 (2008-04-25)
@changelog_1038_li
#H2 is now dual-licensed under the Eclipse Public License (EPL) and the old 'H2 License' (which is basically MPL).
@changelog_1039_li
#Sometimes an exception 'File ID mismatch' or 'try to add a record twice' occured after large records (8 KB or larger) are updated or deleted. See also http://code.google.com/p/h2database/issues/detail?id=22
#H2 is now dual-licensed under the Eclipse Public License (EPL) and the old 'H2 License' (which is basically MPL).
@changelog_1040_li
#H2 Console: The tools can now be translated (it didn't work in the last release).
#Sometimes an exception 'File ID mismatch' or 'try to add a record twice' occurred after large records (8 KB or larger) are updated or deleted. See also http://code.google.com/p/h2database/issues/detail?id=22
@changelog_1041_li
#New traditional Chinese translation. Thanks a lot to Derek Chao!
#H2 Console: The tools can now be translated (it didn't work in the last release).
@changelog_1042_li
#New traditional Chinese translation. Thanks a lot to Derek Chao!
@changelog_1043_li
#Indexes were not used when enabling the optimization for IN(SELECT...) (system property h2.optimizeInJoin).
@changelog_1043_h2
@changelog_1044_h2
#Version 1.0.70 (2008-04-20)
@changelog_1044_li
@changelog_1045_li
#The plan is to dual-license H2. The additional license is EPL (Eclipse Public License). The current license (MPL, Mozilla Public License) will stay. Current users are not affected because they can keep MPL. EPL is very similar to MPL, the only bigger difference is related to patents (EPL is a bit more business friendly in this regard). See also http://opensource.org/licenses/eclipse-1.0.php, http://www.eclipse.org/legal/eplfaq.php (FAQ), http://blogs.zdnet.com/Burnette/?p=131
@changelog_1045_li
@changelog_1046_li
#Multi version concurrency (MVCC): when a row was updated, and the updated column was not indexed, this update was visible sometimes for other sessions even if it was not committed.
@changelog_1046_li
@changelog_1047_li
#Calling SHUTDOWN on one connection and starting a query on another connection concurrently could result in a Java level deadlock.
@changelog_1047_li
@changelog_1048_li
#New system property h2.enableAnonymousSSL (default: true) to enable anonymous SSL connections.
@changelog_1048_li
@changelog_1049_li
#The precision if SUBSTR is now calculated if possible.
@changelog_1049_li
@changelog_1050_li
#The autocomplete in the H2 Console has been improved a bit.
@changelog_1050_li
@changelog_1051_li
#The tools in the H2 Console are now translatable.
@changelog_1051_li
@changelog_1052_li
#The servlet and lucene jar files are now automatically downloaded when building.
@changelog_1052_li
@changelog_1053_li
#The code switch tool has been replaced by a simpler tool called SwitchSource that just uses find and replace.
@changelog_1053_li
@changelog_1054_li
#Started to write a Ant replacement ('JAnt') that uses pure Java build definitions. Advantages: ability to debug the build, extensible, flexible, no XML, a bit faster. Future plan: support creating custom h2 distributions (for embedded use). Maybe create a new project 'Jant' or 'Javen' if other people are interested.
@changelog_1054_li
@changelog_1055_li
#The jar file is now about 10% smaller because the variable debugging info is no longer included. The source file and line number debugging info is still included. If required, the jar file size of the full version can be further reduced to about 720 KB using 'build jarSmall' or even more by removing unneeded components.
@changelog_1055_li
@changelog_1056_li
#Added shell scripts run.sh and build.sh. chmod +x is required, but otherwise it should work. Feedback or improvements are welcome!
@changelog_1056_li
@changelog_1057_li
#Databases in zip files: large queries are now supported. Temp files are created in the temp directory if required. The documentation how to create the zip file has been corrected.
@changelog_1057_li
@changelog_1058_li
#Invalid inline views threw confusing SQL exceptions.
@changelog_1058_li
@changelog_1059_li
#The Japanese translation of the error messages and the H2 Console has been improved. Thanks a lot to Masahiro IKEMOTO.
@changelog_1059_li
@changelog_1060_li
#Optimization for MIN() and MAX() when using MVCC.
@changelog_1060_li
@changelog_1061_li
#To protect against remote brute force password attacks, the delay after each unsuccessful login now gets double as long. New system properties h2.delayWrongPasswordMin and h2.delayWrongPasswordMax.
@changelog_1061_li
@changelog_1062_li
#After setting the query timeout and then resetting it, the next query would still timeout. Fixed.
@changelog_1062_li
@changelog_1063_li
#Adding a IDENTITY column to a table with data threw a lock timeout.
@changelog_1063_li
@changelog_1064_li
#OutOfMemoryError could occur when using EXISTS or IN(SELECT ..).
@changelog_1064_li
@changelog_1065_li
#The built-in connection pool is not called JdbcConnectionPool. The API and documentation has been changed.
@changelog_1065_li
@changelog_1066_li
#The ConvertTraceFile tool now generates SQL statement statistics at the end of the SQL script file (similar to the profiling data generated when using java -Xrunhprof).
@changelog_1066_li
@changelog_1067_li
#Nested joins are now supported (A JOIN B JOIN C ON .. ON ..)
@changelog_1067_h2
@changelog_1068_h2
#Version 1.0.69 (2008-03-29)
@changelog_1068_li
#Most command line tools can now be called from within the H2 Console.
@changelog_1069_li
#A new Shell tools is now included (org.h2.tools.Shell) to query a database from the command line.
#Most command line tools can now be called from within the H2 Console.
@changelog_1070_li
#The command line options in the tools have changed: instead of '-log true' now '-trace' is used. Also, '-ifExists', '-tcpSSL' and '-tcpAllowOthers' and so on have changed: now the 'true' is no longer needed. The old behavior is still supported.
#A new Shell tools is now included (org.h2.tools.Shell) to query a database from the command line.
@changelog_1071_li
#New system property h2.sortNullsHigh to invert the default sorting behavior for NULL. The default didn't change.
#The command line options in the tools have changed: instead of '-log true' now '-trace' is used. Also, '-ifExists', '-tcpSSL' and '-tcpAllowOthers' and so on have changed: now the 'true' is no longer needed. The old behavior is still supported.
@changelog_1072_li
#Performance was very slow when using LOG=2 and deleting or updating all rows of a table in a loop. Fixed.
#New system property h2.sortNullsHigh to invert the default sorting behavior for NULL. The default didn't change.
@changelog_1073_li
#ALTER TABLE or CREATE TABLE now support parameters for the password field.
#Performance was very slow when using LOG=2 and deleting or updating all rows of a table in a loop. Fixed.
@changelog_1074_li
#The linear hash has been removed. It was always slower than the b-tree index, and there were some bugs that would be hard to fix.
#ALTER TABLE or CREATE TABLE now support parameters for the password field.
@changelog_1075_li
#TRACE_LEVEL_ settings are no longer persistent. This was a problem when database initialization code caused a lot of trace output.
#The linear hash has been removed. It was always slower than the b-tree index, and there were some bugs that would be hard to fix.
@changelog_1076_li
#Fulltext search (native implementation): The words table is no longer an in-memory table because this caused memory problems in some cases.
#TRACE_LEVEL_ settings are no longer persistent. This was a problem when database initialization code caused a lot of trace output.
@changelog_1077_li
#It was possible to create a role with the name as an existing user (but not vice versa). This is not allowed any more.
#Fulltext search (native implementation): The words table is no longer an in-memory table because this caused memory problems in some cases.
@changelog_1078_li
#The recovery tool didn't work correctly for tables without rows.
#It was possible to create a role with the name as an existing user (but not vice versa). This is not allowed any more.
@changelog_1079_li
#For years below 1, the YEAR method didn't return the correct value, and the conversion from date and timestamp to varchar was incorrect.
#The recovery tool didn't work correctly for tables without rows.
@changelog_1080_li
#CSVWRITE caused a NullPointerException when not specifying a nullString.
#For years below 1, the YEAR method didn't return the correct value, and the conversion from date and timestamp to varchar was incorrect.
@changelog_1081_li
#When a log file switch occured just after a truncate table or drop table statement, the database could not be started normally (RECOVER=1 was required). Fixed.
#CSVWRITE caused a NullPointerException when not specifying a nullString.
@changelog_1082_li
#When a log file switch occured in the middle of a sequence flush (sequences are only flushed every 32 values by default), the sequence value was lost. Fixed.
#When a log file switch occurred just after a truncate table or drop table statement, the database could not be started normally (RECOVER=1 was required). Fixed.
@changelog_1083_li
#When a log file switch occurred in the middle of a sequence flush (sequences are only flushed every 32 values by default), the sequence value was lost. Fixed.
@changelog_1084_li
#Altering a sequence didn't unlock the system table when autocommit switched off.
@changelog_1084_h2
@changelog_1085_h2
#Version 1.0.68 (2008-03-18)
@changelog_1085_li
@changelog_1086_li
#Very large SELECT DISTINCT and UNION EXCEPT queries are now supported, however this feature is disabled by default. To enable it, set the system property h2.maxMemoryRowsDistinct to a lower value, for example 10000.
@changelog_1086_li
@changelog_1087_li
#A error is now thrown when trying to call a method inside a trigger that implicitly commits the current transaction, if an object is locked.
@changelog_1087_li
@changelog_1088_li
#Unused LOB files were deleted much too late. Now they are deleted if no longer referenced in memory.
@changelog_1088_li
@changelog_1089_li
#ALTER SEQUENCE and ALTER TABLE ALTER COLUMN RESTART can now be used inside a transaction.
@changelog_1089_li
@changelog_1090_li
#New system property h2.aliasColumnName. When enabled, aliased columns (as in SELECT ID AS I FROM TEST) return the real table and column name in ResultSetMetaData.getTableName() and getColumnName(). This is disabled by default for compatibility with other databases (HSQLDB, Apache Derby, PostgreSQL, some version of MySQL). In version 1.1 this setting will be enabled.
@changelog_1090_li
@changelog_1091_li
#When using encrypted databases, and using the wrong file password, the log file was renamed if the database was not already open. Fixed.
@changelog_1091_li
@changelog_1092_li
#Improved performance when using lob files in directories (however this is still disabled by default)
@changelog_1092_li
@changelog_1093_li
#H2 Console: autocomplete didn't work with very large scripts. Fixed.
@changelog_1093_li
@changelog_1094_li
#Fulltext search: new method SEARCH_DATA that returns the column names and primary keys as arrays.
@changelog_1094_li
@changelog_1095_li
#New experimental optimization for GROUP BY queries if an index can be used that matches the group by columns. To enable this optimization, set the system property h2.optimizeGroupSorted to true.
@changelog_1095_li
@changelog_1096_li
#When using multi-version concurrency (MVCC=TRUE), duplicate rows could appear in the result set when running queries with uncommitted changes in the same session.
@changelog_1096_li
@changelog_1097_li
#H2 Console: remote connections were very slow because getHostName/getRemoteHost was used. Fixed (now using getHostAddress/getRemoteAddr.
@changelog_1097_li
@changelog_1098_li
#H2 Console: on Linux, Firefox, Konqueror, or Opera (in this order) are now started if available. This has been tested on Ubuntu.
@changelog_1098_li
@changelog_1099_li
#H2 Console: the start window works better with IKVM
@changelog_1099_li
@changelog_1100_li
#H2 Console: improved compatibility with Safari (Safari requires keep-alive)
@changelog_1100_li
@changelog_1101_li
#Random: the process didn't stop if generating the random seed using the standard way (SecureRandom.generateSeed) was very slow. Now using a daemon thread to avoid this problem.
@changelog_1101_li
@changelog_1102_li
#SELECT UNION with a different number of ORDER BY columns did throw an ArrayIndexOutOfBoundsException.
@changelog_1102_li
@changelog_1103_li
#When using a view, the column precision was changed to the default scale for some data types.
@changelog_1103_li
@changelog_1104_li
#CSVWRITE now supports a 'null string' that is used for parsing and writing NULL.
@changelog_1104_li
@changelog_1105_li
#Some long running queries could not be cancelled.
@changelog_1105_li
@changelog_1106_li
#Queries with many outer join tables were very slow. Fixed.
@changelog_1106_li
@changelog_1107_li
#The performance of text comparison has been improved when using locale sensitive string comparison (SET COLLATOR). Now CollationKey is used with a LRU cache. The default cache size is 10000, and can be changed using the system property h2.collatorCacheSize. Use 0 to disable the cache.
@changelog_1107_li
@changelog_1108_li
#UPDATE SET column=DEFAULT is now supported.
@changelog_1108_h2
@changelog_1109_h2
#Version 1.0.67 (2008-02-22)
@changelog_1109_li
@changelog_1110_li
#New function FILE_READ to read a file or from an URL. Both binary and text data is supported.
@changelog_1110_li
@changelog_1111_li
#CREATE TABLE AS SELECT now supports specifying the column list and data types.
@changelog_1111_li
@changelog_1112_li
#Connecting to a TCP server and at shutting it down at the same time could cause a Java level deadlock.
@changelog_1112_li
@changelog_1113_li
#A user now has all rights on his own local temporary tables.
@changelog_1113_li
@changelog_1114_li
#The CSV tool now supports a custom lineSeparator.
@changelog_1114_li
@changelog_1115_li
#When using multiple connections, empty space was reused too early sometimes. This could corrupt the database when recovering.
@changelog_1115_li
@changelog_1116_li
#The H2 Console has been translated to Dutch. Thanks a lot to Remco Schoen!
@changelog_1116_li
@changelog_1117_li
#Databases can now be opened even if trigger classes are not in the classpath. The exception is thrown when trying to fire the trigger.
@changelog_1117_li
@changelog_1118_li
#Opening databases with ACCESS_MODE_DATA=r is now supported. In this case the database is read-only, but the files don't not need to be read-only.
@changelog_1118_li
@changelog_1119_li
#Security: The database now waits 200 ms before throwing an exception if the user name or password don't match, to slow down dictionary attacks.
@changelog_1119_li
@changelog_1120_li
#The value cache is now a soft reference cache. This should help save memory.
@changelog_1120_li
@changelog_1121_li
#CREATE INDEX on a table with many rows could run out of memory. Fixed.
@changelog_1121_li
@changelog_1122_li
#Large result sets are now a bit faster.
@changelog_1122_li
@changelog_1123_li
#ALTER TABLE ALTER COLUMN RESTART and ALTER SEQUENCE now support parameters (any expressions).
@changelog_1123_li
@changelog_1124_li
#When setting the base directory on the command line, the user directory prefix ('~') was ignored.
@changelog_1124_li
@changelog_1125_li
#The DbStarter servlet didn't start the TCP listener even if configured.
@changelog_1125_li
@changelog_1126_li
#Statement.setQueryTimeout() is now supported.
@changelog_1126_li
@changelog_1127_li
#New session setting QUERY_TIMEOUT, and new system property h2.maxQueryTimeout.
@changelog_1127_li
@changelog_1128_li
#Changing the transaction log level (SET LOG) is now written to the trace file by default.
@changelog_1128_li
@changelog_1129_li
#In a SQL script, primary key constraints are now ordered before foreign key constraints.
@changelog_1129_li
@changelog_1130_li
#It was not possible to create a referential constraint to a table in a different schema in some situations.
@changelog_1130_li
@changelog_1131_li
#The H2 Console was slow when the database contains many tables. Now the column names are not shown in this case.
@changelog_1131_h2
@changelog_1132_h2
#Version 1.0.66 (2008-02-02)
@changelog_1132_li
@changelog_1133_li
#There is a new online error analyzer tool.
@changelog_1133_li
@changelog_1134_li
#H2 Console: stack traces are now links to the source code in the source repository (H2 database only).
@changelog_1134_li
@changelog_1135_li
#CHAR data type equals comparison was case insensitive instead of case sensitive.
@changelog_1135_li
@changelog_1136_li
#The exception 'Value too long for column' now includes the data.
@changelog_1136_li
@changelog_1137_li
#The table name was missing in the documentation of CREATE INDEX.
@changelog_1137_li
@changelog_1138_li
#Better support for IKVM (www.ikvm.net): the H2 Console now opens a browser window.
@changelog_1138_li
@changelog_1139_li
#The cache size was not correctly calculated for tables with large objects (specially if compression is used). This could lead to out-of-memory exceptions.
@changelog_1139_li
@changelog_1140_li
#The exception "Hexadecimal string contains non-hex character" was not always thrown when it should have been. Fixed.
@changelog_1140_li
@changelog_1141_li
#The H2 Console now provides a link to the documentation when an error occurs (H2 databases only so far).
@changelog_1141_li
@changelog_1142_li
#The acting as PostgreSQL server, when a base directory was set, and the H2 Console was started as well, the base directory was applied twice.
@changelog_1142_li
@changelog_1143_li
#Calling EXTRACT(HOUR FROM ...) or EXTRACT(HH FROM ...) returned the wrong values (0 to 11 instead of 0 to 23). All other tested databases return values from 0 to 23. Please check if your application relies on the old behavior before upgrading.
@changelog_1143_li
@changelog_1144_li
#For compatibility with other databases the column default (COLUMN_DEF) for columns without default is now null (it was an empty string).
@changelog_1144_li
@changelog_1145_li
#Statements that contain very large subqueries (where the subquery result does not fit in memory) are now faster.
@changelog_1145_li
@changelog_1146_li
#Variables: large objects (CLOB and BLOB) that don't fit in memory did not work correctly when used as variables.
@changelog_1146_li
@changelog_1147_li
#Fulltext search is now supported in named in-memory databases.
@changelog_1147_li
@changelog_1148_li
#H2 Console: multiple consecutive spaces in the setting name did not work. Fixed.
@changelog_1148_h2
@changelog_1149_h2
#Version 1.0.65 (2008-01-18)
@changelog_1149_li
@changelog_1150_li
#The build (ant) now automatically switches the source code to the correct version (JDK 1.4/1.5 or 1.6).
@changelog_1150_li
@changelog_1151_li
#A recovery bug has been fixed. With older versions, it was necessary to add ;RECOVER=1 to the database URL in cases where it should not have been required.
@changelog_1151_li
@changelog_1152_li
#The performance for DROP and DROP ALL OBJECTS has been improved.
@changelog_1152_li
@changelog_1153_li
#The ChangePassword API has been improved.
@changelog_1153_li
@changelog_1154_li
#User defined variables are now supported. Examples: SET @VAR=10;CALL @VAR. This can be used for running totals as in: select x, set(@t, ifnull(@t, 0) + x) from system_range(1, 10)
@changelog_1154_li
@changelog_1155_li
#The Ukrainian translation has been improved.
@changelog_1155_li
@changelog_1156_li
#CALL statements can now be used in batch updates and called using Statement.executeUpdate.
@changelog_1156_li
@changelog_1157_li
#New read-only setting CREATE_BUILD (the build number of the database engine that created the database).
@changelog_1157_li
@changelog_1158_li
#The optimizer did not use multi column indexes for range queries in some cases. Fixed.
@changelog_1158_li
@changelog_1159_li
#The H2 Console now calls DataSource.getConnection() instead of DataSource.getConnection(user, password) when user name and password are not specified.
@changelog_1159_li
@changelog_1160_li
#The bind IP address can now be set when using multi-homed host (if multiple network adapters are available) using the system property h2.bindAddress.
@changelog_1160_li
@changelog_1161_li
#Batch update: Calling BatchUpdateException.printStackTrace() could result in out of memory. Fixed.
@changelog_1161_li
@changelog_1162_li
#Indexes of unique or foreign constraints where not dropped when the constraint was dropped after altering the table (for example dropping a column). Fixed.
@changelog_1162_li
@changelog_1163_li
#The performance for large result sets in the server mode has been improved.
@changelog_1163_li
@changelog_1164_li
#The setting h2.serverSmallResultSetSize has been renamed to h2.serverResultSetFetchSize.
@changelog_1164_li
@changelog_1165_li
#The SCRIPT command now uses multi-row insert statements to save space except if the option SIMPLE is used.
@changelog_1165_li
@changelog_1166_li
#The SCRIPT command did not split up CLOB data correctly. Fixed.
@changelog_1166_li
@changelog_1167_li
#Optimization for single column distinct queries with an index: select distinct name from test. Can be disabled by setting the system property h2.optimizeDistinct to false.
@changelog_1167_li
@changelog_1168_li
#DROP ALL OBJECTS did not drop user defined aggregate functions and domains.
@changelog_1168_li
@changelog_1169_li
#PostgreSQL compatibility: COUNT(T.*) is now supported.
@changelog_1169_li
@changelog_1170_li
#LIKE comparisons are now faster.
@changelog_1170_li
@changelog_1171_li
#Encrypted databases are now faster.
@changelog_1171_h2
@changelog_1172_h2
#Version 1.0.64 (2007-12-27)
@changelog_1172_li
@changelog_1173_li
#3-way union queries with prepared statement or views could return the wrong results. Fixed.
@changelog_1173_li
@changelog_1174_li
#The PostgreSQL ODBC driver did not work in the last release due to a parser regression. Fixed.
@changelog_1174_li
@changelog_1175_li
#CSV tool: some escape/separator character combinations did not work. Fixed.
@changelog_1175_li
@changelog_1176_li
#CSV tool: the character # could not be used as a separator when reading.
@changelog_1176_li
@changelog_1177_li
#Recovery: when the index file is corrupt, now the database deletes it and re-creates it automatically.
@changelog_1177_li
@changelog_1178_li
#The MVCC mode did not work well with in-memory databases. Fixed.
@changelog_1178_li
@changelog_1179_li
#The FTP server now supports a event listener. Thanks Fulvio Biondi for the help!
@changelog_1179_li
@changelog_1180_li
#New system function CANCEL_SESSION to cancel the currently executing statement of another session.
@changelog_1180_li
@changelog_1181_li
#The database now supports an exclusive mode. In exclusive mode, new connections are rejected.
@changelog_1181_li
@changelog_1182_li
#H2 Console: when editing result sets, columns can now be set to null. The text 'null' must be escaped using '=null'.
@changelog_1182_li
@changelog_1183_li
#New built-in functions RPAD and LPAD.
@changelog_1183_li
@changelog_1184_li
#New meta data table INFORMATION_SCHEMA.SESSIONS and LOCKS to get information about active connections and locks. Admins will see all connections, non-admins only their own session.
@changelog_1184_li
@changelog_1185_li
#The Ukrainian translation was not working in the last release. Fixed.
@changelog_1185_li
@changelog_1186_li
#Creating many tables (many hundreds) was slow. Fixed.
@changelog_1186_li
@changelog_1187_li
#Opening a database with many indexes (thousands) was slow. Fixed.
@changelog_1187_li
@changelog_1188_li
#H2 Console / autocomplete: Ctrl+Space now shows the list in all modes.
@changelog_1188_li
@changelog_1189_li
#The method Trigger.init has been changed: the parameters 'before' and 'type', have been added to the init method.
@changelog_1189_li
@changelog_1190_li
#The performance has been improved for ResultSet methods with column name.
@changelog_1190_li
@changelog_1191_li
#A stack trace was thrown if the system did not provide a quick secure random source and if there is no network or the network settings are not configured. Fixed.
@changelog_1191_li
@changelog_1192_li
#The H2 Console has been translated to Turkish. Thanks a lot to Ridvan Agar!
@changelog_1192_li
@changelog_1193_li
#Improved debugging support: toString methods of most object now return a meaningful text.
@changelog_1193_li
@changelog_1194_li
#The classes DbStarter and WebServlet have been moved to src/main.
@changelog_1194_li
@changelog_1195_li
#The column INFORMATION_SCHEMA.TRIGGERS.SQL now contains the CREATE TRIGGER statement.
@changelog_1195_li
@changelog_1196_li
#Loading classes and calling methods can be restricted using the new system property h2.allowedClasses.
@changelog_1196_li
@changelog_1197_li
#The database could not be used in Java applets due to security exceptions. Fixed.
@changelog_1197_h2
@changelog_1198_h2
#Version 1.0.63 (2007-12-02)
@changelog_1198_li
@changelog_1199_li
#The SecurePassword example has been improved.
@changelog_1199_li
@changelog_1200_li
#In time zones where the summer time saving limit is at midnight, some dates do not work in some virtual machines, for example 2007-10-14 in Chile, using the Sun JVM 1.6.0_03-b05. Fixed.
@changelog_1200_li
@changelog_1201_li
#The native fulltext search was not working properly after re-connecting.
@changelog_1201_li
@changelog_1202_li
#Improved FTP server: now the PORT command is supported.
@changelog_1202_li
@changelog_1203_li
#Temporary views (FROM(...)) with UNION didn't work if nested. Fixed.
@changelog_1203_li
@changelog_1204_li
#Performance optimization for IN(...) and IN(SELECT...), currently disabled by default. To enable, use java -Dh2.optimizeInJoin=true
@changelog_1204_li
@changelog_1205_li
#The H2 Console has been translated to Ukrainian by Igor Dobrovolskyi. Thanks a lot!
@changelog_1205_li
@changelog_1206_li
#New function TABLE_DISTINCT.
@changelog_1206_li
@changelog_1207_li
#Using LIMIT with values close to Integer.MAX_VALUE didn't work correctly.
@changelog_1207_li
@changelog_1208_li
#Certain setting in the Server didn't work (http://code.google.com/p/h2database/issues/detail?id=7).
@changelog_1208_h2
@changelog_1209_h2
#Version 1.0.62 (2007-11-25)
@changelog_1209_li
@changelog_1210_li
#Large updates and deletes are now supported by buffering data to disk if required. The threshold is currently set to 100'000 bytes and can be changed using SET MAX_OPERATION_MEMORY or using by appending ;MAX_OPERATION_MEMORY=.. to the database URL. See also the docs.
@changelog_1210_li
@changelog_1211_li
#MVCC: now an exception is thrown when an application tries to change the MVCC setting while the database is already open.
@changelog_1211_li
@changelog_1212_li
#Referential integrity checks didn't lock the referenced table, and thus could read uncommitted rows of other connections. In that way the referential constraints could get violated (except when using MVCC).
@changelog_1212_li
@changelog_1213_li
#Renaming or dropping a user with a schema, or removing the admin property of that user made the schema inaccessible after re-opening the database. Fixed.
@changelog_1213_li
@changelog_1214_li
#The H2 Console now also support the command line option -ifExists when started from the Server tool, but only when connecting to H2 databases.
@changelog_1214_li
@changelog_1215_li
#Duplicate column names were not detected when renaming columns. Fixed.
@changelog_1215_li
@changelog_1216_li
#The console did not display multiple embedded spaces in text correctly. Fixed.
@changelog_1216_li
@changelog_1217_li
#Google Android support: use 'ant codeswitchAndroid' to switch the source code to Android.
@changelog_1217_li
@changelog_1218_li
#Values of type ARRAY are now sorted as in PostgreSQL.
@changelog_1218_li
@changelog_1219_li
#In the cluster mode, could not connect if only one server was running (last release only). Fixed.
@changelog_1219_li
@changelog_1220_li
#The performance of large CSV operations has been improved.
@changelog_1220_li
@changelog_1221_li
#Now using custom toString() for most JDBC objects and commands.
@changelog_1221_li
@changelog_1222_li
#Nested temporary views (SELECT * FROM (SELECT ...)) with parameters didn't work in some cases. Fixed.
@changelog_1222_li
@changelog_1223_li
#CSV: Using an empty field delimiter didn't work (a workaround was using char(0)). Fixed.
@changelog_1223_li
@changelog_1224_li
#A patch for Apache DDL Utils is available at https://issues.apache.org/jira/browse/DDLUTILS-185
@changelog_1224_li
@changelog_1225_li
#The default value for h2.emergencySpaceInitial is now 256 KB (to speed up creating encrypted databases)
@changelog_1225_li
@changelog_1226_li
#Eduardo Velasques has translated the H2 Console and the error messages to Brazilian Portuguese. Thanks a lot!
@changelog_1226_li
@changelog_1227_li
#Creating a table from GROUP_CONCAT didn't work if the data was longer than 255 characters
@changelog_1227_h2
@changelog_1228_h2
#Version 1.0.61 (2007-11-10)
@changelog_1228_li
#The Lucene Fulltext implementation is now compiled and included in the h2.jar. Requires Lucene 2.2.
@changelog_1229_li
#Added more tests. The code coverage is now at 83%.
#The Lucene Fulltext implementation is now compiled and included in the h2.jar. Requires Lucene 2.2.
@changelog_1230_li
#ResultSetMetaData.getColumnDisplaySize was calculated as the longest display size for the given result set, but should be the maximum size that fits in the column. Fixed.
#Added more tests. The code coverage is now at 83%.
@changelog_1231_li
#The MODE used to be a global setting, now it is a database level setting.
#ResultSetMetaData.getColumnDisplaySize was calculated as the longest display size for the given result set, but should be the maximum size that fits in the column. Fixed.
@changelog_1232_li
#The database does now always round to the nearest number when converting a floating point to a integer: CAST(1.5 AS INT) will now result in 2, like in PostgreSQL and MySQL.
#The MODE used to be a global setting, now it is a database level setting.
@changelog_1233_li
#Math operations using unknown data types (for example -? and ?+?) are now interpreted as decimal.
#The database does now always round to the nearest number when converting a floating point to a integer: CAST(1.5 AS INT) will now result in 2, like in PostgreSQL and MySQL.
@changelog_1234_li
#INSTR, LOCATE: backward searching is not supported by using a negative start position.
#Math operations using unknown data types (for example -? and ?+?) are now interpreted as decimal.
@changelog_1235_li
#Can now open a database stored in a jar or zip file (for example, jdbc:h2:zip:c:/temp/h2.zip!/test).
#INSTR, LOCATE: backward searching is not supported by using a negative start position.
@changelog_1236_li
#Files access now uses an API (FileSystem, FileObject), this will simplify adding other file systems and features (for example replication).
#Can now open a database stored in a jar or zip file (for example, jdbc:h2:zip:c:/temp/h2.zip!/test).
@changelog_1237_li
#Vlad Alexahin has translated H2 Console to Russian. Thanks a lot!
#Files access now uses an API (FileSystem, FileObject), this will simplify adding other file systems and features (for example replication).
@changelog_1238_li
#Descending indexes are now supported. This is useful when sorting columns descending, for example by creation date.
#Vlad Alexahin has translated H2 Console to Russian. Thanks a lot!
@changelog_1239_li
#Solved a Java level deadlock in the DatabaseCloser.
#Descending indexes are now supported. This is useful when sorting columns descending, for example by creation date.
@changelog_1240_li
#CREATE SEQUENCE: New option CACHE (number of pre-allocated numbers). New column CACHE in the sequence meta data table. The default cache size is still 32.
#Solved a Java level deadlock in the DatabaseCloser.
@changelog_1241_li
#CREATE SEQUENCE: New option CACHE (number of pre-allocated numbers). New column CACHE in the sequence meta data table. The default cache size is still 32.
@changelog_1242_li
#MVCC: The system property h2.mvcc has been removed. A few bugs have been fixed, and new tests have been added.
@changelog_1242_h2
@changelog_1243_h2
#Version 1.0.60 (2007-10-20)
@changelog_1243_li
@changelog_1244_li
#JdbcXAConnection: starting a transaction before getting the connection didn't switch off autocommit.
@changelog_1244_li
@changelog_1245_li
#User defined aggregate functions are not supported.
@changelog_1245_li
@changelog_1246_li
#Server.shutdownTcpServer was blocked when first called with force=false and then force=true. Now documentation is improved, and it is no longer blocked.
@changelog_1246_li
@changelog_1247_li
#Stack traces did not include the SQL statement in all cases where they could have. Also, stack traces with SQL statement are now shorter.
@changelog_1247_li
@changelog_1248_li
#Linked tables: now tables in non-default schemas are supported as well
@changelog_1248_li
@changelog_1249_li
#New Italian translation from PierPaolo Ucchino. Thanks a lot!
@changelog_1249_li
@changelog_1250_li
#CSV: New methods to set the escape character and field delimiter in the Csv tool and the CSVWRITE and CSVREAD methods.
@changelog_1250_li
@changelog_1251_li
#Prepared statements could not be used after data definition statements (creating tables and so on). Fixed.
@changelog_1251_li
@changelog_1252_li
#PreparedStatement.setMaxRows could not be changed to a higher value after the statement was executed.
@changelog_1252_li
@changelog_1253_li
#The H2 Console could not connect twice to the same H2 embedded database at the same time. Fixed.
@changelog_1253_li
@changelog_1254_li
#CSVREAD, RUNSCRIPT and so on now support URLs as well, using URL.openStream(). Example: select * from csvread('jar:file:///c:/temp/test.jar!/test.csv');
@changelog_1254_h2
@changelog_1255_h2
#Version 1.0.59 (2007-10-03)
@changelog_1255_li
@changelog_1256_li
#When the data type was unknown in a subquery, sometimes the wrong exception (ArrayIndexOutOfBounds) was thrown. Fixed.
@changelog_1256_li
@changelog_1257_li
#If the process was killed while the database was running, sometimes the database could not be opened ('double allocation') except when the system property h2.check was set to false. Fixed.
@changelog_1257_li
@changelog_1258_li
#Multi-threaded kernel (MULTI_THREADED=1): A synchronization problem has been fixed.
@changelog_1258_li
@changelog_1259_li
#A PreparedStatement that was cancelled could not be reused. Fixed.
@changelog_1259_li
@changelog_1260_li
#H2 Console: Progress information when logging into a H2 embedded database (useful when opening a database is slow).
@changelog_1260_li
@changelog_1261_li
#When the database was closed while logging was disabled (LOG 0), re-opening the database was slow. Fixed.
@changelog_1261_li
@changelog_1262_li
#Fulltext search is now documented (in the Tutorial).
@changelog_1262_li
@changelog_1263_li
#The Console did not refresh the table list if the CREATE TABLE statement started with a comment. Fixed.
@changelog_1263_li
@changelog_1264_li
#When creating a table using CREATE TABLE .. AS SELECT, the precision for some data types (for example VARCHAR) was set to the default precision. Fixed.
@changelog_1264_li
@changelog_1265_li
#When using the (undocumented) in-memory file system (jdbc:h2:memFS:x or jdbc:h2:memLZF:x), and using multiple connections, a ConcurrentModificationException could occur. Fixed.
@changelog_1265_li
@changelog_1266_li
#REGEXP compatibility: So far String.matches was used, but for compatibility with MySQL, now Matcher.find is used.
@changelog_1266_li
@changelog_1267_li
#SCRIPT: the SQL statements in the result set now include the terminating semicolon as well. Simplifies copy and paste.
@changelog_1267_li
@changelog_1268_li
#When using a subquery with group by as a table, some columns could not be used in the where condition in the outer query. Example: SELECT * FROM (SELECT ID, COUNT(*) C FROM TEST) WHERE C > 100. Fixed.
@changelog_1268_li
@changelog_1269_li
#Views with subqueries as tables and queries with nested subqueries as tables did not always work. Fixed.
@changelog_1269_li
@changelog_1270_li
#Compatibility: comparing columns with constants that are out of range does not throw an exception.
@changelog_1270_h2
@changelog_1271_h2
#Version 1.0.58 (2007-09-15)
@changelog_1271_li
@changelog_1272_li
#System.exit is no longer called by the WebServer, the Console and the Server tool (except to set the exit code if required). This is important when using OSGi.
@changelog_1272_li
@changelog_1273_li
#Optimization for independent subqueries. For example, this query can now an index: SELECT * FROM TEST WHERE ID = (SELECT MAX(ID) FROM TEST) This can be disabled by setting the system property h2.optimizeSubqueryCache to false.
@changelog_1273_li
@changelog_1274_li
#The explain plan now says: /* direct lookup query */ if the query can be processed directly without reading rows, for example when using MIN(indexed column), MAX(indexed column), or COUNT(*).
@changelog_1274_li
@changelog_1275_li
#When using IFNULL, NULLIF, COALESCE, LEAST, or GREATEST, and the first parameter was ?, an exception was thrown. Now the highest data type of all parameters is used.
@changelog_1275_li
@changelog_1276_li
#When comparing TINYINT or SMALLINT columns against constants, the index was not used. Fixed.
@changelog_1276_li
@changelog_1277_li
#Maven 2: new version are now automatically synced with the central repositories.
@changelog_1277_li
@changelog_1278_li
#The default value for MAX_MEMORY_UNDO is now 100000.
@changelog_1278_li
@changelog_1279_li
#The documentation indexer does no longer index Japanese pages. If somebody knows how to split Japanese into words please post it.
@changelog_1279_li
@changelog_1280_li
#Oracle compatibility: SYSDATE now returns a timestamp. CHR(..) is now an alias for CHAR(..).
@changelog_1280_li
@changelog_1281_li
#After deleting data, empty space in the database files was not efficiently reused (but it was reused when opening the database). This has been fixed.
@changelog_1281_li
@changelog_1282_li
#About 230 bytes per database was leaked. This is a problem for applications opening and closing many thousand databases. The main problem: a shutdown hook was added but never removed. Fixed. In JDK 1.4, there is <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4197876">an additionally problem</a> . A workaround has been implemented.
@changelog_1282_li
@changelog_1283_li
#Optimization for COLUMN IN(.., NULL) if the column does not allow NULL values.
@changelog_1283_li
@changelog_1284_li
#Using spaces in column and table aliases was not supported when used inside a view or temporary view.
@changelog_1284_li
@changelog_1285_li
#The version (build) number is now included in the manifest file.
@changelog_1285_li
@changelog_1286_li
#In some systems, SecureRandom.generateSeed is very slow (taking one minute or more). For those cases, an alternative method is used that takes less than one second.
@changelog_1286_li
@changelog_1287_li
#The database file sizes are now increased at most 32 MB at any time.
@changelog_1287_li
@changelog_1288_li
#New method DatabaseEventListener.opened that is called just after opening a database.
@changelog_1288_li
@changelog_1289_li
#When using the Console with Internet Explorer 6.0 or 7.0, a Javascript error was thrown after clearing the query.
@changelog_1289_li
@changelog_1290_li
#A database can now be opened even if class of a user defined function is not in the classpath. Trying to call the function will throws an exception.
@changelog_1290_li
@changelog_1291_li
#User defined functions and constants may not overload built-in functions and constants. This didn't work before, but now trying to create such an object will fail.
@changelog_1291_li
@changelog_1292_li
#Improved MultiDimension tool (for spatial queries): in the last few releases the tool was actually slower than using a regular query (because index lookup got faster, and because the tool didn't support prepared statements) Now the tool generates prepared statements, and the performance is better again (about 5 times faster for a reasonable amount of data).
@changelog_1292_li
@changelog_1293_li
#Adding a foreign key or when re-enabling referential integrity for a table failed when checking was enabled and the reference contained NULL.
@changelog_1293_li
@changelog_1294_li
#For PgServer, character encoding other than UTF-8 did not work correctly. Fixed.
@changelog_1294_li
@changelog_1295_li
#Using a function in a GROUP BY expression that is used in a view as a condition did not always work.
@changelog_1295_h2
@changelog_1296_h2
#Version 1.0.57 (2007-08-25)
@changelog_1296_li
@changelog_1297_li
#New experimental feature MVCC (multi version concurrency control). Can be set as a option when opening the database (jdbc:h2:~/test;MVCC=TRUE) or as a system property (-Dh2.mvcc=true). This is work-in-progress, use it at your own risk. Feedback is welcome.
@changelog_1297_li
@changelog_1298_li
#The version number is now major.minor.micro where micro is the build number. Not all version are public, so there may be gaps in the micro. The minor changes when there is a file format change.
@changelog_1298_li
@changelog_1299_li
#The backup tool (org.h2.tools.Backup) did not work. The restore tool did not work when the -db parameter was used. Fixed. The documentation of the backup tool has been changed: only one database may be backed up at any time.
@changelog_1299_li
@changelog_1300_li
#Opening large read-only databases was very slow. Fixed.
@changelog_1300_li
@changelog_1301_li
#New Japanese translation of the error messages thanks to Ikemoto Masahiro. Thanks a lot!
@changelog_1301_li
@changelog_1302_li
#Disabling / enabling referential integrity for a table can now be used inside a transaction.
@changelog_1302_li
@changelog_1303_li
#Rights checking for dynamic tables (SELECT * FROM (SELECT ...)) did not work. Fixed.
@changelog_1303_li
@changelog_1304_li
#Creating more than 10 views that depend on each other was very slow. Reconnecting was slow as well. Fixed.
@changelog_1304_li
@changelog_1305_li
#When used as as Servlet, the H2 Console did not work with SSL (using Tomcat). Fixed.
@changelog_1305_li
@changelog_1306_li
#When altering a table with foreign key constraint, if there was no manual index created for the referenced columns, the automatically created index was dropped while still being used. Fixed.
@changelog_1306_li
@changelog_1307_li
#Check and foreign key constraints now checks if the existing data is consistent (this can be disabled by appending NOCHECK). It is also possible to check existing data when re-enabling referential integrity for a table.
@changelog_1307_li
@changelog_1308_li
#Some unit tests failed on Linux because the file system works differently. The unit tests are fixed and should work now.
@changelog_1308_li
@changelog_1309_li
#Can now incrementally translate the documentation. See also FAQ.
@changelog_1309_li
@changelog_1310_li
#Improved error messages: some tools can't show the root cause of an exception. Adding the message of the root cause to the message of the thrown exception now where it makes sense.
@changelog_1310_li
@changelog_1311_li
#The H2 Console can now connect to databases using JNDI. The driver class name must be a javax.naming.Context, (for example javax.naming.InitialContext), and the URL the resource name (for example java:comp/env/jdbc/Test). This should also work for linked tables.
@changelog_1311_li
@changelog_1312_li
#Google translate did not work for the H2 homepage. It should be fixed now.
@changelog_1312_li
@changelog_1313_li
#The CONVERT function did not work with views when using UNION.
@changelog_1313_li
@changelog_1314_li
#The build now issues a warning if the source code is switched to the wrong version.
@changelog_1314_li
@changelog_1315_li
#The default lock mode is now read committed instead of serialized.
@changelog_1315_li
@changelog_1316_li
#PG server: data was truncated when reading large VARCHAR columns and decimal columns.
@changelog_1316_li
@changelog_1317_li
#PG server: when the same database was accessed multiple times using the PostgreSQL ODBC driver, the pg_catalog schema update failed, and connecting to the database was not possible. Fixed.
@changelog_1317_li
@changelog_1318_li
#Some file operations didn't work for files in the root directory. Fixed.
@changelog_1318_li
@changelog_1319_li
#In the Restore tool, the parameter -file did not work. Fixed.
@changelog_1319_li
@changelog_1320_li
#Two-phase commit: commit with transaction name was only supported in the recovery scan. Now it is always supported.
@changelog_1320_li
@changelog_1321_li
#The column name C_CURRENT_TIMESTAMP did not work in the last release.
@changelog_1321_li
@changelog_1322_li
#OpenOffice compatibility: support database name in column names.
@download_1000_h1
......@@ -3880,35 +3883,35 @@ Javaは将来への証明でもあります: 多くの会社がJavaをサポー
#Florent Ramiere, France
@history_1026_li
#Pete Haidinyak, USA
@history_1027_li
#Jun Iyama, Japan
@history_1028_li
@history_1027_li
#Antonio Casqueiro, Portugal
@history_1029_li
@history_1028_li
#Oliver Computing LLC, USA
@history_1030_li
@history_1029_li
#Harpal Grover Consulting Inc., USA
@history_1031_li
@history_1030_li
#Elisabetta Berlini, Italy
@history_1032_li
@history_1031_li
#William Gilbert, USA
@history_1033_li
@history_1032_li
#Antonio Dieguez, Chile
@history_1034_a
@history_1033_a
#Ontology Works, USA
@history_1035_li
@history_1034_li
#lumber-mill.co.jp, Japan
@history_1035_li
#Pete Haidinyak, USA
@installation_1000_h1
インストール
......@@ -4798,111 +4801,129 @@ Sourceファイル
#Open source database benchmark.
@links_1101_a
#Rutema
#Poormans
@links_1102_p
#Rutema is a test execution and management tool for heterogeneous development environments written in Ruby.
#Very basic CMS running as a SWT application and generating static html pages.
@links_1103_a
#Scriptella
#Railo
@links_1104_p
#ETL (Extract-Transform-Load) and script execution tool.
#Railo is an alternative engine for the Cold Fusion Markup Language, that compiles code programmed in CFML into Java bytecode and executes it on a servlet engine.
@links_1105_a
#Sesar
#Rutema
@links_1106_p
#Dependency Injection Container with Aspect Oriented Programming.
#Rutema is a test execution and management tool for heterogeneous development environments written in Ruby.
@links_1107_a
#SemmleCode
#Sava
@links_1108_p
#Eclipse plugin to help you improve software quality.
#Open-source web-based content management system.
@links_1109_a
#Shellbook
#Scriptella
@links_1110_p
#Desktop publishing application.
#ETL (Extract-Transform-Load) and script execution tool.
@links_1111_a
#Signsoft intelliBO
#Sesar
@links_1112_p
#Persistence middleware supporting the JDO specification.
#Dependency Injection Container with Aspect Oriented Programming.
@links_1113_a
#SmartFoxServer
#SemmleCode
@links_1114_p
#Platform for developing multiuser applications and games with Macromedia Flash.
#Eclipse plugin to help you improve software quality.
@links_1115_a
#SQL Developer
#Shellbook
@links_1116_p
#Universal Database Frontend.
#Desktop publishing application.
@links_1117_a
#SQL Workbench/J
#Signsoft intelliBO
@links_1118_p
#Free DBMS-independent SQL tool.
#Persistence middleware supporting the JDO specification.
@links_1119_a
#SQuirreL SQL Client
#SmartFoxServer
@links_1120_p
#Graphical tool to view the structure of a database, browse the data, issue SQL commands etc.
#Platform for developing multiuser applications and games with Macromedia Flash.
@links_1121_a
#SQuirreL DB Copy Plugin
#SQL Developer
@links_1122_p
#Tool to copy data from one database to another.
#Universal Database Frontend.
@links_1123_a
#StorYBook
#SQL Workbench/J
@links_1124_p
#A summary-based tool for novelist and script writers. It helps to keep the overview over the various traces a story has.
#Free DBMS-independent SQL tool.
@links_1125_a
#StreamCruncher
#SQuirreL SQL Client
@links_1126_p
#Event (stream) processing kernel.
#Graphical tool to view the structure of a database, browse the data, issue SQL commands etc.
@links_1127_a
#Tamava
#SQuirreL DB Copy Plugin
@links_1128_p
#Newsgroups Reader.
#Tool to copy data from one database to another.
@links_1129_a
#Tune Backup
#StorYBook
@links_1130_p
#Easy-to-use backup solution for your iTunes library.
#A summary-based tool for novelist and script writers. It helps to keep the overview over the various traces a story has.
@links_1131_a
#Web of Web
#StreamCruncher
@links_1132_p
#Collaborative and realtime interactive media platform for the web.
#Event (stream) processing kernel.
@links_1133_a
#Werkzeugkasten
#Tamava
@links_1134_p
#Minimum Java Toolset.
#Newsgroups Reader.
@links_1135_a
#Volunteer database
#Tune Backup
@links_1136_p
#Easy-to-use backup solution for your iTunes library.
@links_1137_a
#Web of Web
@links_1138_p
#Collaborative and realtime interactive media platform for the web.
@links_1139_a
#Werkzeugkasten
@links_1140_p
#Minimum Java Toolset.
@links_1141_a
#Volunteer database
@links_1142_p
#A database front end to register volunteers, partnership and donation for a Non Profit organization.
@mainWeb_1000_h1
......@@ -6496,7 +6517,7 @@ SQLコマンドがコマンドエリアに表示されます。
#Test with dbcopy (http://dbcopyplugin.sourceforge.net)
@roadmap_1055_li
#Find a tool to view a text file >100 MB, with find, page up and down (like less)
#Find a tool to view large text file >100 MB, with find, page up and down (like less), truncate before / after
@roadmap_1056_li
#Implement, test, document XAConnection and so on
......
......@@ -348,326 +348,327 @@ build_1033_li=Web site\: src/docsrc/text/_docs_*.utf8.txt
build_1034_p=The conversion between UTF-8 and Java encoding (using the \\u syntax), as well as the HTML entities (&amp;\#..;) is automated by running the tool PropertiesToUTF8. The web site translation is automated as well, using <code>build docs</code> .
changelog_1000_h1=Change Log
changelog_1001_h2=Next Version (unreleased)
changelog_1002_li=Linked tables\: To view the statements that are executed against the target table, set the trace level to 3.
changelog_1003_li=RunScript tool\: new options to show and check the results of queries.
changelog_1004_li=Deadlocks are now detected. One transaction is rolled back automatically.
changelog_1005_li=The Lucene fulltext index was always re-created when opening a database with fulltext index enabled.
changelog_1006_li=Support for overloaded Java methods. A user defined function can now be bound to multiple Java methods, if the Java methods have the same name but a different number of parameters. Thanks to Gary Tong for providing a patch\!
changelog_1007_h2=Version 1.0.73 (2008-05-31)
changelog_1008_li=ParameterMetaData now returns the right data type for most conditions, as in WHERE ID\=?.
changelog_1009_li=The table SYSTEM_RANGE now supports expressions and parameters.
changelog_1010_li=New column INFORMATION_SCHEMA.CONSTRAINTS.UNIQUE_INDEX_NAME that contains the name of the unique index used to enforce this constraint, if there is such an index.
changelog_1011_li=SET QUERY_TIMEOUT and Statement.setQueryTimeout no longer commits a transaction. The same applies to SET @VARIABLE, SET LOCK_TIMEOUT, SET TRACE_LEVEL_*, SET THROTTLE, and SET PATH.
changelog_1012_li=The SCRIPT command does now emit IF NOT EXISTS for CREATE ROLE.
changelog_1013_li=MySQL compatibility\: auto_increment column are no longer automatically converted to primary key columns.
changelog_1014_li=PostgreSQL compatibility\: support for BOOL_OR and BOOL_AND aggregate functions.
changelog_1015_li=Negative scale values for DECIMAL or NUMBER columns are now supported in regular tables and in linked tables.
changelog_1016_li=A role or right can now be granted or revoked multiple times without getting an exception.
changelog_1017_li=Infinite numbers in SQL scripts are listed as POWER(0, -1)), negative infinite as (-POWER(0, -1)), and NaN (not a number) as SQRT(-1).
changelog_1018_li=The special double and float values 'NaN' (not a number) did not work correctly when sorting or comparing.
changelog_1019_li=The fulltext search did not support CLOB data types.
changelog_1020_li=If the drive with the database files was disconnected or unmounted while writing, sometimes a stack overflow exception was thrown instead of a IO exception.
changelog_1021_li=The H2 Console could not be shut down from within the tool if the browser supports keepAlive (most browsers do).
changelog_1022_li=If the password was passed as a char array, it was kept in an internal buffer longer than required. Theoretically the password could have been stolen if the main memory was swapped to disk before the garbage collection was run.
changelog_1023_h2=Version 1.0.72 (2008-05-10)
changelog_1024_li=Some databases could not be opened when appending ;RECOVER\=1 to the database URL.
changelog_1025_li=The Japanese translation of the error messages and the H2 Console has been completed by Masahiro Ikemoto (Arizona Design Inc.)
changelog_1026_li=Updates made to updatable rows are now visible within the same result set. DatabaseMetaData.ownUpdatesAreVisible now returns true.
changelog_1027_li=ParameterMetaData now returns the correct data for INSERT and UPDATE statements.
changelog_1028_li=H2 Shell\: DESCRIBE now supports an schema name.
changelog_1029_li=A subset of the PostgreSQL 'dollar quoting' feature is now supported.
changelog_1030_li=SLF4J is now supported by using adding TRACE_LEVEL_FILE\=4 to the database URL.
changelog_1031_li=The recovery tool did not work if the table name contained spaces or if there was a comment on the table.
changelog_1032_li=Triggers are no longer executed when changing the table structure (ALTER TABLE).
changelog_1033_li=When setting BLOB or CLOB values larger than 65 KB using a remote connection, temporary files were kept on the client longer than required (until the connection was closed or the object is garbage collected). Now they are removed as soon as the PreparedStatement is closed, or when the value is overwritten.
changelog_1034_li=Statements can now be cancelled remotely (when using remote connections).
changelog_1035_li=The Shell tool now uses java.io.Console to read the password when using JDK 1.6
changelog_1036_li=When using read-only databases and setting LOG\=2, an exception was written to the trace file when closing the database. Fixed.
changelog_1037_h2=Version 1.0.71 (2008-04-25)
changelog_1038_li=H2 is now dual-licensed under the Eclipse Public License (EPL) and the old 'H2 License' (which is basically MPL).
changelog_1039_li=Sometimes an exception 'File ID mismatch' or 'try to add a record twice' occured after large records (8 KB or larger) are updated or deleted. See also http\://code.google.com/p/h2database/issues/detail?id\=22
changelog_1040_li=H2 Console\: The tools can now be translated (it didn't work in the last release).
changelog_1041_li=New traditional Chinese translation. Thanks a lot to Derek Chao\!
changelog_1042_li=Indexes were not used when enabling the optimization for IN(SELECT...) (system property h2.optimizeInJoin).
changelog_1043_h2=Version 1.0.70 (2008-04-20)
changelog_1044_li=The plan is to dual-license H2. The additional license is EPL (Eclipse Public License). The current license (MPL, Mozilla Public License) will stay. Current users are not affected because they can keep MPL. EPL is very similar to MPL, the only bigger difference is related to patents (EPL is a bit more business friendly in this regard). See also http\://opensource.org/licenses/eclipse-1.0.php, http\://www.eclipse.org/legal/eplfaq.php (FAQ), http\://blogs.zdnet.com/Burnette/?p\=131
changelog_1045_li=Multi version concurrency (MVCC)\: when a row was updated, and the updated column was not indexed, this update was visible sometimes for other sessions even if it was not committed.
changelog_1046_li=Calling SHUTDOWN on one connection and starting a query on another connection concurrently could result in a Java level deadlock.
changelog_1047_li=New system property h2.enableAnonymousSSL (default\: true) to enable anonymous SSL connections.
changelog_1048_li=The precision if SUBSTR is now calculated if possible.
changelog_1049_li=The autocomplete in the H2 Console has been improved a bit.
changelog_1050_li=The tools in the H2 Console are now translatable.
changelog_1051_li=The servlet and lucene jar files are now automatically downloaded when building.
changelog_1052_li=The code switch tool has been replaced by a simpler tool called SwitchSource that just uses find and replace.
changelog_1053_li=Started to write a Ant replacement ('JAnt') that uses pure Java build definitions. Advantages\: ability to debug the build, extensible, flexible, no XML, a bit faster. Future plan\: support creating custom h2 distributions (for embedded use). Maybe create a new project 'Jant' or 'Javen' if other people are interested.
changelog_1054_li=The jar file is now about 10% smaller because the variable debugging info is no longer included. The source file and line number debugging info is still included. If required, the jar file size of the full version can be further reduced to about 720 KB using 'build jarSmall' or even more by removing unneeded components.
changelog_1055_li=Added shell scripts run.sh and build.sh. chmod +x is required, but otherwise it should work. Feedback or improvements are welcome\!
changelog_1056_li=Databases in zip files\: large queries are now supported. Temp files are created in the temp directory if required. The documentation how to create the zip file has been corrected.
changelog_1057_li=Invalid inline views threw confusing SQL exceptions.
changelog_1058_li=The Japanese translation of the error messages and the H2 Console has been improved. Thanks a lot to Masahiro IKEMOTO.
changelog_1059_li=Optimization for MIN() and MAX() when using MVCC.
changelog_1060_li=To protect against remote brute force password attacks, the delay after each unsuccessful login now gets double as long. New system properties h2.delayWrongPasswordMin and h2.delayWrongPasswordMax.
changelog_1061_li=After setting the query timeout and then resetting it, the next query would still timeout. Fixed.
changelog_1062_li=Adding a IDENTITY column to a table with data threw a lock timeout.
changelog_1063_li=OutOfMemoryError could occur when using EXISTS or IN(SELECT ..).
changelog_1064_li=The built-in connection pool is not called JdbcConnectionPool. The API and documentation has been changed.
changelog_1065_li=The ConvertTraceFile tool now generates SQL statement statistics at the end of the SQL script file (similar to the profiling data generated when using java -Xrunhprof).
changelog_1066_li=Nested joins are now supported (A JOIN B JOIN C ON .. ON ..)
changelog_1067_h2=Version 1.0.69 (2008-03-29)
changelog_1068_li=Most command line tools can now be called from within the H2 Console.
changelog_1069_li=A new Shell tools is now included (org.h2.tools.Shell) to query a database from the command line.
changelog_1070_li=The command line options in the tools have changed\: instead of '-log true' now '-trace' is used. Also, '-ifExists', '-tcpSSL' and '-tcpAllowOthers' and so on have changed\: now the 'true' is no longer needed. The old behavior is still supported.
changelog_1071_li=New system property h2.sortNullsHigh to invert the default sorting behavior for NULL. The default didn't change.
changelog_1072_li=Performance was very slow when using LOG\=2 and deleting or updating all rows of a table in a loop. Fixed.
changelog_1073_li=ALTER TABLE or CREATE TABLE now support parameters for the password field.
changelog_1074_li=The linear hash has been removed. It was always slower than the b-tree index, and there were some bugs that would be hard to fix.
changelog_1075_li=TRACE_LEVEL_ settings are no longer persistent. This was a problem when database initialization code caused a lot of trace output.
changelog_1076_li=Fulltext search (native implementation)\: The words table is no longer an in-memory table because this caused memory problems in some cases.
changelog_1077_li=It was possible to create a role with the name as an existing user (but not vice versa). This is not allowed any more.
changelog_1078_li=The recovery tool didn't work correctly for tables without rows.
changelog_1079_li=For years below 1, the YEAR method didn't return the correct value, and the conversion from date and timestamp to varchar was incorrect.
changelog_1080_li=CSVWRITE caused a NullPointerException when not specifying a nullString.
changelog_1081_li=When a log file switch occured just after a truncate table or drop table statement, the database could not be started normally (RECOVER\=1 was required). Fixed.
changelog_1082_li=When a log file switch occured in the middle of a sequence flush (sequences are only flushed every 32 values by default), the sequence value was lost. Fixed.
changelog_1083_li=Altering a sequence didn't unlock the system table when autocommit switched off.
changelog_1084_h2=Version 1.0.68 (2008-03-18)
changelog_1085_li=Very large SELECT DISTINCT and UNION EXCEPT queries are now supported, however this feature is disabled by default. To enable it, set the system property h2.maxMemoryRowsDistinct to a lower value, for example 10000.
changelog_1086_li=A error is now thrown when trying to call a method inside a trigger that implicitly commits the current transaction, if an object is locked.
changelog_1087_li=Unused LOB files were deleted much too late. Now they are deleted if no longer referenced in memory.
changelog_1088_li=ALTER SEQUENCE and ALTER TABLE ALTER COLUMN RESTART can now be used inside a transaction.
changelog_1089_li=New system property h2.aliasColumnName. When enabled, aliased columns (as in SELECT ID AS I FROM TEST) return the real table and column name in ResultSetMetaData.getTableName() and getColumnName(). This is disabled by default for compatibility with other databases (HSQLDB, Apache Derby, PostgreSQL, some version of MySQL). In version 1.1 this setting will be enabled.
changelog_1090_li=When using encrypted databases, and using the wrong file password, the log file was renamed if the database was not already open. Fixed.
changelog_1091_li=Improved performance when using lob files in directories (however this is still disabled by default)
changelog_1092_li=H2 Console\: autocomplete didn't work with very large scripts. Fixed.
changelog_1093_li=Fulltext search\: new method SEARCH_DATA that returns the column names and primary keys as arrays.
changelog_1094_li=New experimental optimization for GROUP BY queries if an index can be used that matches the group by columns. To enable this optimization, set the system property h2.optimizeGroupSorted to true.
changelog_1095_li=When using multi-version concurrency (MVCC\=TRUE), duplicate rows could appear in the result set when running queries with uncommitted changes in the same session.
changelog_1096_li=H2 Console\: remote connections were very slow because getHostName/getRemoteHost was used. Fixed (now using getHostAddress/getRemoteAddr.
changelog_1097_li=H2 Console\: on Linux, Firefox, Konqueror, or Opera (in this order) are now started if available. This has been tested on Ubuntu.
changelog_1098_li=H2 Console\: the start window works better with IKVM
changelog_1099_li=H2 Console\: improved compatibility with Safari (Safari requires keep-alive)
changelog_1100_li=Random\: the process didn't stop if generating the random seed using the standard way (SecureRandom.generateSeed) was very slow. Now using a daemon thread to avoid this problem.
changelog_1101_li=SELECT UNION with a different number of ORDER BY columns did throw an ArrayIndexOutOfBoundsException.
changelog_1102_li=When using a view, the column precision was changed to the default scale for some data types.
changelog_1103_li=CSVWRITE now supports a 'null string' that is used for parsing and writing NULL.
changelog_1104_li=Some long running queries could not be cancelled.
changelog_1105_li=Queries with many outer join tables were very slow. Fixed.
changelog_1106_li=The performance of text comparison has been improved when using locale sensitive string comparison (SET COLLATOR). Now CollationKey is used with a LRU cache. The default cache size is 10000, and can be changed using the system property h2.collatorCacheSize. Use 0 to disable the cache.
changelog_1107_li=UPDATE SET column\=DEFAULT is now supported.
changelog_1108_h2=Version 1.0.67 (2008-02-22)
changelog_1109_li=New function FILE_READ to read a file or from an URL. Both binary and text data is supported.
changelog_1110_li=CREATE TABLE AS SELECT now supports specifying the column list and data types.
changelog_1111_li=Connecting to a TCP server and at shutting it down at the same time could cause a Java level deadlock.
changelog_1112_li=A user now has all rights on his own local temporary tables.
changelog_1113_li=The CSV tool now supports a custom lineSeparator.
changelog_1114_li=When using multiple connections, empty space was reused too early sometimes. This could corrupt the database when recovering.
changelog_1115_li=The H2 Console has been translated to Dutch. Thanks a lot to Remco Schoen\!
changelog_1116_li=Databases can now be opened even if trigger classes are not in the classpath. The exception is thrown when trying to fire the trigger.
changelog_1117_li=Opening databases with ACCESS_MODE_DATA\=r is now supported. In this case the database is read-only, but the files don't not need to be read-only.
changelog_1118_li=Security\: The database now waits 200 ms before throwing an exception if the user name or password don't match, to slow down dictionary attacks.
changelog_1119_li=The value cache is now a soft reference cache. This should help save memory.
changelog_1120_li=CREATE INDEX on a table with many rows could run out of memory. Fixed.
changelog_1121_li=Large result sets are now a bit faster.
changelog_1122_li=ALTER TABLE ALTER COLUMN RESTART and ALTER SEQUENCE now support parameters (any expressions).
changelog_1123_li=When setting the base directory on the command line, the user directory prefix ('~') was ignored.
changelog_1124_li=The DbStarter servlet didn't start the TCP listener even if configured.
changelog_1125_li=Statement.setQueryTimeout() is now supported.
changelog_1126_li=New session setting QUERY_TIMEOUT, and new system property h2.maxQueryTimeout.
changelog_1127_li=Changing the transaction log level (SET LOG) is now written to the trace file by default.
changelog_1128_li=In a SQL script, primary key constraints are now ordered before foreign key constraints.
changelog_1129_li=It was not possible to create a referential constraint to a table in a different schema in some situations.
changelog_1130_li=The H2 Console was slow when the database contains many tables. Now the column names are not shown in this case.
changelog_1131_h2=Version 1.0.66 (2008-02-02)
changelog_1132_li=There is a new online error analyzer tool.
changelog_1133_li=H2 Console\: stack traces are now links to the source code in the source repository (H2 database only).
changelog_1134_li=CHAR data type equals comparison was case insensitive instead of case sensitive.
changelog_1135_li=The exception 'Value too long for column' now includes the data.
changelog_1136_li=The table name was missing in the documentation of CREATE INDEX.
changelog_1137_li=Better support for IKVM (www.ikvm.net)\: the H2 Console now opens a browser window.
changelog_1138_li=The cache size was not correctly calculated for tables with large objects (specially if compression is used). This could lead to out-of-memory exceptions.
changelog_1139_li=The exception "Hexadecimal string contains non-hex character" was not always thrown when it should have been. Fixed.
changelog_1140_li=The H2 Console now provides a link to the documentation when an error occurs (H2 databases only so far).
changelog_1141_li=The acting as PostgreSQL server, when a base directory was set, and the H2 Console was started as well, the base directory was applied twice.
changelog_1142_li=Calling EXTRACT(HOUR FROM ...) or EXTRACT(HH FROM ...) returned the wrong values (0 to 11 instead of 0 to 23). All other tested databases return values from 0 to 23. Please check if your application relies on the old behavior before upgrading.
changelog_1143_li=For compatibility with other databases the column default (COLUMN_DEF) for columns without default is now null (it was an empty string).
changelog_1144_li=Statements that contain very large subqueries (where the subquery result does not fit in memory) are now faster.
changelog_1145_li=Variables\: large objects (CLOB and BLOB) that don't fit in memory did not work correctly when used as variables.
changelog_1146_li=Fulltext search is now supported in named in-memory databases.
changelog_1147_li=H2 Console\: multiple consecutive spaces in the setting name did not work. Fixed.
changelog_1148_h2=Version 1.0.65 (2008-01-18)
changelog_1149_li=The build (ant) now automatically switches the source code to the correct version (JDK 1.4/1.5 or 1.6).
changelog_1150_li=A recovery bug has been fixed. With older versions, it was necessary to add ;RECOVER\=1 to the database URL in cases where it should not have been required.
changelog_1151_li=The performance for DROP and DROP ALL OBJECTS has been improved.
changelog_1152_li=The ChangePassword API has been improved.
changelog_1153_li=User defined variables are now supported. Examples\: SET @VAR\=10;CALL @VAR. This can be used for running totals as in\: select x, set(@t, ifnull(@t, 0) + x) from system_range(1, 10)
changelog_1154_li=The Ukrainian translation has been improved.
changelog_1155_li=CALL statements can now be used in batch updates and called using Statement.executeUpdate.
changelog_1156_li=New read-only setting CREATE_BUILD (the build number of the database engine that created the database).
changelog_1157_li=The optimizer did not use multi column indexes for range queries in some cases. Fixed.
changelog_1158_li=The H2 Console now calls DataSource.getConnection() instead of DataSource.getConnection(user, password) when user name and password are not specified.
changelog_1159_li=The bind IP address can now be set when using multi-homed host (if multiple network adapters are available) using the system property h2.bindAddress.
changelog_1160_li=Batch update\: Calling BatchUpdateException.printStackTrace() could result in out of memory. Fixed.
changelog_1161_li=Indexes of unique or foreign constraints where not dropped when the constraint was dropped after altering the table (for example dropping a column). Fixed.
changelog_1162_li=The performance for large result sets in the server mode has been improved.
changelog_1163_li=The setting h2.serverSmallResultSetSize has been renamed to h2.serverResultSetFetchSize.
changelog_1164_li=The SCRIPT command now uses multi-row insert statements to save space except if the option SIMPLE is used.
changelog_1165_li=The SCRIPT command did not split up CLOB data correctly. Fixed.
changelog_1166_li=Optimization for single column distinct queries with an index\: select distinct name from test. Can be disabled by setting the system property h2.optimizeDistinct to false.
changelog_1167_li=DROP ALL OBJECTS did not drop user defined aggregate functions and domains.
changelog_1168_li=PostgreSQL compatibility\: COUNT(T.*) is now supported.
changelog_1169_li=LIKE comparisons are now faster.
changelog_1170_li=Encrypted databases are now faster.
changelog_1171_h2=Version 1.0.64 (2007-12-27)
changelog_1172_li=3-way union queries with prepared statement or views could return the wrong results. Fixed.
changelog_1173_li=The PostgreSQL ODBC driver did not work in the last release due to a parser regression. Fixed.
changelog_1174_li=CSV tool\: some escape/separator character combinations did not work. Fixed.
changelog_1175_li=CSV tool\: the character \# could not be used as a separator when reading.
changelog_1176_li=Recovery\: when the index file is corrupt, now the database deletes it and re-creates it automatically.
changelog_1177_li=The MVCC mode did not work well with in-memory databases. Fixed.
changelog_1178_li=The FTP server now supports a event listener. Thanks Fulvio Biondi for the help\!
changelog_1179_li=New system function CANCEL_SESSION to cancel the currently executing statement of another session.
changelog_1180_li=The database now supports an exclusive mode. In exclusive mode, new connections are rejected.
changelog_1181_li=H2 Console\: when editing result sets, columns can now be set to null. The text 'null' must be escaped using '\=null'.
changelog_1182_li=New built-in functions RPAD and LPAD.
changelog_1183_li=New meta data table INFORMATION_SCHEMA.SESSIONS and LOCKS to get information about active connections and locks. Admins will see all connections, non-admins only their own session.
changelog_1184_li=The Ukrainian translation was not working in the last release. Fixed.
changelog_1185_li=Creating many tables (many hundreds) was slow. Fixed.
changelog_1186_li=Opening a database with many indexes (thousands) was slow. Fixed.
changelog_1187_li=H2 Console / autocomplete\: Ctrl+Space now shows the list in all modes.
changelog_1188_li=The method Trigger.init has been changed\: the parameters 'before' and 'type', have been added to the init method.
changelog_1189_li=The performance has been improved for ResultSet methods with column name.
changelog_1190_li=A stack trace was thrown if the system did not provide a quick secure random source and if there is no network or the network settings are not configured. Fixed.
changelog_1191_li=The H2 Console has been translated to Turkish. Thanks a lot to Ridvan Agar\!
changelog_1192_li=Improved debugging support\: toString methods of most object now return a meaningful text.
changelog_1193_li=The classes DbStarter and WebServlet have been moved to src/main.
changelog_1194_li=The column INFORMATION_SCHEMA.TRIGGERS.SQL now contains the CREATE TRIGGER statement.
changelog_1195_li=Loading classes and calling methods can be restricted using the new system property h2.allowedClasses.
changelog_1196_li=The database could not be used in Java applets due to security exceptions. Fixed.
changelog_1197_h2=Version 1.0.63 (2007-12-02)
changelog_1198_li=The SecurePassword example has been improved.
changelog_1199_li=In time zones where the summer time saving limit is at midnight, some dates do not work in some virtual machines, for example 2007-10-14 in Chile, using the Sun JVM 1.6.0_03-b05. Fixed.
changelog_1200_li=The native fulltext search was not working properly after re-connecting.
changelog_1201_li=Improved FTP server\: now the PORT command is supported.
changelog_1202_li=Temporary views (FROM(...)) with UNION didn't work if nested. Fixed.
changelog_1203_li=Performance optimization for IN(...) and IN(SELECT...), currently disabled by default. To enable, use java -Dh2.optimizeInJoin\=true
changelog_1204_li=The H2 Console has been translated to Ukrainian by Igor Dobrovolskyi. Thanks a lot\!
changelog_1205_li=New function TABLE_DISTINCT.
changelog_1206_li=Using LIMIT with values close to Integer.MAX_VALUE didn't work correctly.
changelog_1207_li=Certain setting in the Server didn't work (http\://code.google.com/p/h2database/issues/detail?id\=7).
changelog_1208_h2=Version 1.0.62 (2007-11-25)
changelog_1209_li=Large updates and deletes are now supported by buffering data to disk if required. The threshold is currently set to 100'000 bytes and can be changed using SET MAX_OPERATION_MEMORY or using by appending ;MAX_OPERATION_MEMORY\=.. to the database URL. See also the docs.
changelog_1210_li=MVCC\: now an exception is thrown when an application tries to change the MVCC setting while the database is already open.
changelog_1211_li=Referential integrity checks didn't lock the referenced table, and thus could read uncommitted rows of other connections. In that way the referential constraints could get violated (except when using MVCC).
changelog_1212_li=Renaming or dropping a user with a schema, or removing the admin property of that user made the schema inaccessible after re-opening the database. Fixed.
changelog_1213_li=The H2 Console now also support the command line option -ifExists when started from the Server tool, but only when connecting to H2 databases.
changelog_1214_li=Duplicate column names were not detected when renaming columns. Fixed.
changelog_1215_li=The console did not display multiple embedded spaces in text correctly. Fixed.
changelog_1216_li=Google Android support\: use 'ant codeswitchAndroid' to switch the source code to Android.
changelog_1217_li=Values of type ARRAY are now sorted as in PostgreSQL.
changelog_1218_li=In the cluster mode, could not connect if only one server was running (last release only). Fixed.
changelog_1219_li=The performance of large CSV operations has been improved.
changelog_1220_li=Now using custom toString() for most JDBC objects and commands.
changelog_1221_li=Nested temporary views (SELECT * FROM (SELECT ...)) with parameters didn't work in some cases. Fixed.
changelog_1222_li=CSV\: Using an empty field delimiter didn't work (a workaround was using char(0)). Fixed.
changelog_1223_li=A patch for Apache DDL Utils is available at https\://issues.apache.org/jira/browse/DDLUTILS-185
changelog_1224_li=The default value for h2.emergencySpaceInitial is now 256 KB (to speed up creating encrypted databases)
changelog_1225_li=Eduardo Velasques has translated the H2 Console and the error messages to Brazilian Portuguese. Thanks a lot\!
changelog_1226_li=Creating a table from GROUP_CONCAT didn't work if the data was longer than 255 characters
changelog_1227_h2=Version 1.0.61 (2007-11-10)
changelog_1228_li=The Lucene Fulltext implementation is now compiled and included in the h2.jar. Requires Lucene 2.2.
changelog_1229_li=Added more tests. The code coverage is now at 83%.
changelog_1230_li=ResultSetMetaData.getColumnDisplaySize was calculated as the longest display size for the given result set, but should be the maximum size that fits in the column. Fixed.
changelog_1231_li=The MODE used to be a global setting, now it is a database level setting.
changelog_1232_li=The database does now always round to the nearest number when converting a floating point to a integer\: CAST(1.5 AS INT) will now result in 2, like in PostgreSQL and MySQL.
changelog_1233_li=Math operations using unknown data types (for example -? and ?+?) are now interpreted as decimal.
changelog_1234_li=INSTR, LOCATE\: backward searching is not supported by using a negative start position.
changelog_1235_li=Can now open a database stored in a jar or zip file (for example, jdbc\:h2\:zip\:c\:/temp/h2.zip\!/test).
changelog_1236_li=Files access now uses an API (FileSystem, FileObject), this will simplify adding other file systems and features (for example replication).
changelog_1237_li=Vlad Alexahin has translated H2 Console to Russian. Thanks a lot\!
changelog_1238_li=Descending indexes are now supported. This is useful when sorting columns descending, for example by creation date.
changelog_1239_li=Solved a Java level deadlock in the DatabaseCloser.
changelog_1240_li=CREATE SEQUENCE\: New option CACHE (number of pre-allocated numbers). New column CACHE in the sequence meta data table. The default cache size is still 32.
changelog_1241_li=MVCC\: The system property h2.mvcc has been removed. A few bugs have been fixed, and new tests have been added.
changelog_1242_h2=Version 1.0.60 (2007-10-20)
changelog_1243_li=JdbcXAConnection\: starting a transaction before getting the connection didn't switch off autocommit.
changelog_1244_li=User defined aggregate functions are not supported.
changelog_1245_li=Server.shutdownTcpServer was blocked when first called with force\=false and then force\=true. Now documentation is improved, and it is no longer blocked.
changelog_1246_li=Stack traces did not include the SQL statement in all cases where they could have. Also, stack traces with SQL statement are now shorter.
changelog_1247_li=Linked tables\: now tables in non-default schemas are supported as well
changelog_1248_li=New Italian translation from PierPaolo Ucchino. Thanks a lot\!
changelog_1249_li=CSV\: New methods to set the escape character and field delimiter in the Csv tool and the CSVWRITE and CSVREAD methods.
changelog_1250_li=Prepared statements could not be used after data definition statements (creating tables and so on). Fixed.
changelog_1251_li=PreparedStatement.setMaxRows could not be changed to a higher value after the statement was executed.
changelog_1252_li=The H2 Console could not connect twice to the same H2 embedded database at the same time. Fixed.
changelog_1253_li=CSVREAD, RUNSCRIPT and so on now support URLs as well, using URL.openStream(). Example\: select * from csvread('jar\:file\:///c\:/temp/test.jar\!/test.csv');
changelog_1254_h2=Version 1.0.59 (2007-10-03)
changelog_1255_li=When the data type was unknown in a subquery, sometimes the wrong exception (ArrayIndexOutOfBounds) was thrown. Fixed.
changelog_1256_li=If the process was killed while the database was running, sometimes the database could not be opened ('double allocation') except when the system property h2.check was set to false. Fixed.
changelog_1257_li=Multi-threaded kernel (MULTI_THREADED\=1)\: A synchronization problem has been fixed.
changelog_1258_li=A PreparedStatement that was cancelled could not be reused. Fixed.
changelog_1259_li=H2 Console\: Progress information when logging into a H2 embedded database (useful when opening a database is slow).
changelog_1260_li=When the database was closed while logging was disabled (LOG 0), re-opening the database was slow. Fixed.
changelog_1261_li=Fulltext search is now documented (in the Tutorial).
changelog_1262_li=The Console did not refresh the table list if the CREATE TABLE statement started with a comment. Fixed.
changelog_1263_li=When creating a table using CREATE TABLE .. AS SELECT, the precision for some data types (for example VARCHAR) was set to the default precision. Fixed.
changelog_1264_li=When using the (undocumented) in-memory file system (jdbc\:h2\:memFS\:x or jdbc\:h2\:memLZF\:x), and using multiple connections, a ConcurrentModificationException could occur. Fixed.
changelog_1265_li=REGEXP compatibility\: So far String.matches was used, but for compatibility with MySQL, now Matcher.find is used.
changelog_1266_li=SCRIPT\: the SQL statements in the result set now include the terminating semicolon as well. Simplifies copy and paste.
changelog_1267_li=When using a subquery with group by as a table, some columns could not be used in the where condition in the outer query. Example\: SELECT * FROM (SELECT ID, COUNT(*) C FROM TEST) WHERE C > 100. Fixed.
changelog_1268_li=Views with subqueries as tables and queries with nested subqueries as tables did not always work. Fixed.
changelog_1269_li=Compatibility\: comparing columns with constants that are out of range does not throw an exception.
changelog_1270_h2=Version 1.0.58 (2007-09-15)
changelog_1271_li=System.exit is no longer called by the WebServer, the Console and the Server tool (except to set the exit code if required). This is important when using OSGi.
changelog_1272_li=Optimization for independent subqueries. For example, this query can now an index\: SELECT * FROM TEST WHERE ID \= (SELECT MAX(ID) FROM TEST) This can be disabled by setting the system property h2.optimizeSubqueryCache to false.
changelog_1273_li=The explain plan now says\: /* direct lookup query */ if the query can be processed directly without reading rows, for example when using MIN(indexed column), MAX(indexed column), or COUNT(*).
changelog_1274_li=When using IFNULL, NULLIF, COALESCE, LEAST, or GREATEST, and the first parameter was ?, an exception was thrown. Now the highest data type of all parameters is used.
changelog_1275_li=When comparing TINYINT or SMALLINT columns against constants, the index was not used. Fixed.
changelog_1276_li=Maven 2\: new version are now automatically synced with the central repositories.
changelog_1277_li=The default value for MAX_MEMORY_UNDO is now 100000.
changelog_1278_li=The documentation indexer does no longer index Japanese pages. If somebody knows how to split Japanese into words please post it.
changelog_1279_li=Oracle compatibility\: SYSDATE now returns a timestamp. CHR(..) is now an alias for CHAR(..).
changelog_1280_li=After deleting data, empty space in the database files was not efficiently reused (but it was reused when opening the database). This has been fixed.
changelog_1281_li=About 230 bytes per database was leaked. This is a problem for applications opening and closing many thousand databases. The main problem\: a shutdown hook was added but never removed. Fixed. In JDK 1.4, there is <a href\="http\://bugs.sun.com/bugdatabase/view_bug.do?bug_id\=4197876">an additionally problem</a> . A workaround has been implemented.
changelog_1282_li=Optimization for COLUMN IN(.., NULL) if the column does not allow NULL values.
changelog_1283_li=Using spaces in column and table aliases was not supported when used inside a view or temporary view.
changelog_1284_li=The version (build) number is now included in the manifest file.
changelog_1285_li=In some systems, SecureRandom.generateSeed is very slow (taking one minute or more). For those cases, an alternative method is used that takes less than one second.
changelog_1286_li=The database file sizes are now increased at most 32 MB at any time.
changelog_1287_li=New method DatabaseEventListener.opened that is called just after opening a database.
changelog_1288_li=When using the Console with Internet Explorer 6.0 or 7.0, a Javascript error was thrown after clearing the query.
changelog_1289_li=A database can now be opened even if class of a user defined function is not in the classpath. Trying to call the function will throws an exception.
changelog_1290_li=User defined functions and constants may not overload built-in functions and constants. This didn't work before, but now trying to create such an object will fail.
changelog_1291_li=Improved MultiDimension tool (for spatial queries)\: in the last few releases the tool was actually slower than using a regular query (because index lookup got faster, and because the tool didn't support prepared statements) Now the tool generates prepared statements, and the performance is better again (about 5 times faster for a reasonable amount of data).
changelog_1292_li=Adding a foreign key or when re-enabling referential integrity for a table failed when checking was enabled and the reference contained NULL.
changelog_1293_li=For PgServer, character encoding other than UTF-8 did not work correctly. Fixed.
changelog_1294_li=Using a function in a GROUP BY expression that is used in a view as a condition did not always work.
changelog_1295_h2=Version 1.0.57 (2007-08-25)
changelog_1296_li=New experimental feature MVCC (multi version concurrency control). Can be set as a option when opening the database (jdbc\:h2\:~/test;MVCC\=TRUE) or as a system property (-Dh2.mvcc\=true). This is work-in-progress, use it at your own risk. Feedback is welcome.
changelog_1297_li=The version number is now major.minor.micro where micro is the build number. Not all version are public, so there may be gaps in the micro. The minor changes when there is a file format change.
changelog_1298_li=The backup tool (org.h2.tools.Backup) did not work. The restore tool did not work when the -db parameter was used. Fixed. The documentation of the backup tool has been changed\: only one database may be backed up at any time.
changelog_1299_li=Opening large read-only databases was very slow. Fixed.
changelog_1300_li=New Japanese translation of the error messages thanks to Ikemoto Masahiro. Thanks a lot\!
changelog_1301_li=Disabling / enabling referential integrity for a table can now be used inside a transaction.
changelog_1302_li=Rights checking for dynamic tables (SELECT * FROM (SELECT ...)) did not work. Fixed.
changelog_1303_li=Creating more than 10 views that depend on each other was very slow. Reconnecting was slow as well. Fixed.
changelog_1304_li=When used as as Servlet, the H2 Console did not work with SSL (using Tomcat). Fixed.
changelog_1305_li=When altering a table with foreign key constraint, if there was no manual index created for the referenced columns, the automatically created index was dropped while still being used. Fixed.
changelog_1306_li=Check and foreign key constraints now checks if the existing data is consistent (this can be disabled by appending NOCHECK). It is also possible to check existing data when re-enabling referential integrity for a table.
changelog_1307_li=Some unit tests failed on Linux because the file system works differently. The unit tests are fixed and should work now.
changelog_1308_li=Can now incrementally translate the documentation. See also FAQ.
changelog_1309_li=Improved error messages\: some tools can't show the root cause of an exception. Adding the message of the root cause to the message of the thrown exception now where it makes sense.
changelog_1310_li=The H2 Console can now connect to databases using JNDI. The driver class name must be a javax.naming.Context, (for example javax.naming.InitialContext), and the URL the resource name (for example java\:comp/env/jdbc/Test). This should also work for linked tables.
changelog_1311_li=Google translate did not work for the H2 homepage. It should be fixed now.
changelog_1312_li=The CONVERT function did not work with views when using UNION.
changelog_1313_li=The build now issues a warning if the source code is switched to the wrong version.
changelog_1314_li=The default lock mode is now read committed instead of serialized.
changelog_1315_li=PG server\: data was truncated when reading large VARCHAR columns and decimal columns.
changelog_1316_li=PG server\: when the same database was accessed multiple times using the PostgreSQL ODBC driver, the pg_catalog schema update failed, and connecting to the database was not possible. Fixed.
changelog_1317_li=Some file operations didn't work for files in the root directory. Fixed.
changelog_1318_li=In the Restore tool, the parameter -file did not work. Fixed.
changelog_1319_li=Two-phase commit\: commit with transaction name was only supported in the recovery scan. Now it is always supported.
changelog_1320_li=The column name C_CURRENT_TIMESTAMP did not work in the last release.
changelog_1321_li=OpenOffice compatibility\: support database name in column names.
changelog_1002_li=Improved compatibility. New compatibility modes for Oracle and Derby. New compatibility flag uniqueIndexNullDistinct to only allow one row with 'NULL' in a unique index. This flag is enabled for Derby, Oracle, MSSQLServer, and HSQLDB.
changelog_1003_li=Linked tables\: To view the statements that are executed against the target table, set the trace level to 3.
changelog_1004_li=RunScript tool\: new options to show and check the results of queries.
changelog_1005_li=Deadlocks are now detected. One transaction is rolled back automatically.
changelog_1006_li=The Lucene fulltext index was always re-created when opening a database with fulltext index enabled.
changelog_1007_li=Support for overloaded Java methods. A user defined function can now be bound to multiple Java methods, if the Java methods have the same name but a different number of parameters. Thanks to Gary Tong for providing a patch\!
changelog_1008_h2=Version 1.0.73 (2008-05-31)
changelog_1009_li=ParameterMetaData now returns the right data type for most conditions, as in WHERE ID\=?.
changelog_1010_li=The table SYSTEM_RANGE now supports expressions and parameters.
changelog_1011_li=New column INFORMATION_SCHEMA.CONSTRAINTS.UNIQUE_INDEX_NAME that contains the name of the unique index used to enforce this constraint, if there is such an index.
changelog_1012_li=SET QUERY_TIMEOUT and Statement.setQueryTimeout no longer commits a transaction. The same applies to SET @VARIABLE, SET LOCK_TIMEOUT, SET TRACE_LEVEL_*, SET THROTTLE, and SET PATH.
changelog_1013_li=The SCRIPT command does now emit IF NOT EXISTS for CREATE ROLE.
changelog_1014_li=MySQL compatibility\: auto_increment column are no longer automatically converted to primary key columns.
changelog_1015_li=PostgreSQL compatibility\: support for BOOL_OR and BOOL_AND aggregate functions.
changelog_1016_li=Negative scale values for DECIMAL or NUMBER columns are now supported in regular tables and in linked tables.
changelog_1017_li=A role or right can now be granted or revoked multiple times without getting an exception.
changelog_1018_li=Infinite numbers in SQL scripts are listed as POWER(0, -1)), negative infinite as (-POWER(0, -1)), and NaN (not a number) as SQRT(-1).
changelog_1019_li=The special double and float values 'NaN' (not a number) did not work correctly when sorting or comparing.
changelog_1020_li=The fulltext search did not support CLOB data types.
changelog_1021_li=If the drive with the database files was disconnected or unmounted while writing, sometimes a stack overflow exception was thrown instead of a IO exception.
changelog_1022_li=The H2 Console could not be shut down from within the tool if the browser supports keepAlive (most browsers do).
changelog_1023_li=If the password was passed as a char array, it was kept in an internal buffer longer than required. Theoretically the password could have been stolen if the main memory was swapped to disk before the garbage collection was run.
changelog_1024_h2=Version 1.0.72 (2008-05-10)
changelog_1025_li=Some databases could not be opened when appending ;RECOVER\=1 to the database URL.
changelog_1026_li=The Japanese translation of the error messages and the H2 Console has been completed by Masahiro Ikemoto (Arizona Design Inc.)
changelog_1027_li=Updates made to updatable rows are now visible within the same result set. DatabaseMetaData.ownUpdatesAreVisible now returns true.
changelog_1028_li=ParameterMetaData now returns the correct data for INSERT and UPDATE statements.
changelog_1029_li=H2 Shell\: DESCRIBE now supports an schema name.
changelog_1030_li=A subset of the PostgreSQL 'dollar quoting' feature is now supported.
changelog_1031_li=SLF4J is now supported by using adding TRACE_LEVEL_FILE\=4 to the database URL.
changelog_1032_li=The recovery tool did not work if the table name contained spaces or if there was a comment on the table.
changelog_1033_li=Triggers are no longer executed when changing the table structure (ALTER TABLE).
changelog_1034_li=When setting BLOB or CLOB values larger than 65 KB using a remote connection, temporary files were kept on the client longer than required (until the connection was closed or the object is garbage collected). Now they are removed as soon as the PreparedStatement is closed, or when the value is overwritten.
changelog_1035_li=Statements can now be cancelled remotely (when using remote connections).
changelog_1036_li=The Shell tool now uses java.io.Console to read the password when using JDK 1.6
changelog_1037_li=When using read-only databases and setting LOG\=2, an exception was written to the trace file when closing the database. Fixed.
changelog_1038_h2=Version 1.0.71 (2008-04-25)
changelog_1039_li=H2 is now dual-licensed under the Eclipse Public License (EPL) and the old 'H2 License' (which is basically MPL).
changelog_1040_li=Sometimes an exception 'File ID mismatch' or 'try to add a record twice' occurred after large records (8 KB or larger) are updated or deleted. See also http\://code.google.com/p/h2database/issues/detail?id\=22
changelog_1041_li=H2 Console\: The tools can now be translated (it didn't work in the last release).
changelog_1042_li=New traditional Chinese translation. Thanks a lot to Derek Chao\!
changelog_1043_li=Indexes were not used when enabling the optimization for IN(SELECT...) (system property h2.optimizeInJoin).
changelog_1044_h2=Version 1.0.70 (2008-04-20)
changelog_1045_li=The plan is to dual-license H2. The additional license is EPL (Eclipse Public License). The current license (MPL, Mozilla Public License) will stay. Current users are not affected because they can keep MPL. EPL is very similar to MPL, the only bigger difference is related to patents (EPL is a bit more business friendly in this regard). See also http\://opensource.org/licenses/eclipse-1.0.php, http\://www.eclipse.org/legal/eplfaq.php (FAQ), http\://blogs.zdnet.com/Burnette/?p\=131
changelog_1046_li=Multi version concurrency (MVCC)\: when a row was updated, and the updated column was not indexed, this update was visible sometimes for other sessions even if it was not committed.
changelog_1047_li=Calling SHUTDOWN on one connection and starting a query on another connection concurrently could result in a Java level deadlock.
changelog_1048_li=New system property h2.enableAnonymousSSL (default\: true) to enable anonymous SSL connections.
changelog_1049_li=The precision if SUBSTR is now calculated if possible.
changelog_1050_li=The autocomplete in the H2 Console has been improved a bit.
changelog_1051_li=The tools in the H2 Console are now translatable.
changelog_1052_li=The servlet and lucene jar files are now automatically downloaded when building.
changelog_1053_li=The code switch tool has been replaced by a simpler tool called SwitchSource that just uses find and replace.
changelog_1054_li=Started to write a Ant replacement ('JAnt') that uses pure Java build definitions. Advantages\: ability to debug the build, extensible, flexible, no XML, a bit faster. Future plan\: support creating custom h2 distributions (for embedded use). Maybe create a new project 'Jant' or 'Javen' if other people are interested.
changelog_1055_li=The jar file is now about 10% smaller because the variable debugging info is no longer included. The source file and line number debugging info is still included. If required, the jar file size of the full version can be further reduced to about 720 KB using 'build jarSmall' or even more by removing unneeded components.
changelog_1056_li=Added shell scripts run.sh and build.sh. chmod +x is required, but otherwise it should work. Feedback or improvements are welcome\!
changelog_1057_li=Databases in zip files\: large queries are now supported. Temp files are created in the temp directory if required. The documentation how to create the zip file has been corrected.
changelog_1058_li=Invalid inline views threw confusing SQL exceptions.
changelog_1059_li=The Japanese translation of the error messages and the H2 Console has been improved. Thanks a lot to Masahiro IKEMOTO.
changelog_1060_li=Optimization for MIN() and MAX() when using MVCC.
changelog_1061_li=To protect against remote brute force password attacks, the delay after each unsuccessful login now gets double as long. New system properties h2.delayWrongPasswordMin and h2.delayWrongPasswordMax.
changelog_1062_li=After setting the query timeout and then resetting it, the next query would still timeout. Fixed.
changelog_1063_li=Adding a IDENTITY column to a table with data threw a lock timeout.
changelog_1064_li=OutOfMemoryError could occur when using EXISTS or IN(SELECT ..).
changelog_1065_li=The built-in connection pool is not called JdbcConnectionPool. The API and documentation has been changed.
changelog_1066_li=The ConvertTraceFile tool now generates SQL statement statistics at the end of the SQL script file (similar to the profiling data generated when using java -Xrunhprof).
changelog_1067_li=Nested joins are now supported (A JOIN B JOIN C ON .. ON ..)
changelog_1068_h2=Version 1.0.69 (2008-03-29)
changelog_1069_li=Most command line tools can now be called from within the H2 Console.
changelog_1070_li=A new Shell tools is now included (org.h2.tools.Shell) to query a database from the command line.
changelog_1071_li=The command line options in the tools have changed\: instead of '-log true' now '-trace' is used. Also, '-ifExists', '-tcpSSL' and '-tcpAllowOthers' and so on have changed\: now the 'true' is no longer needed. The old behavior is still supported.
changelog_1072_li=New system property h2.sortNullsHigh to invert the default sorting behavior for NULL. The default didn't change.
changelog_1073_li=Performance was very slow when using LOG\=2 and deleting or updating all rows of a table in a loop. Fixed.
changelog_1074_li=ALTER TABLE or CREATE TABLE now support parameters for the password field.
changelog_1075_li=The linear hash has been removed. It was always slower than the b-tree index, and there were some bugs that would be hard to fix.
changelog_1076_li=TRACE_LEVEL_ settings are no longer persistent. This was a problem when database initialization code caused a lot of trace output.
changelog_1077_li=Fulltext search (native implementation)\: The words table is no longer an in-memory table because this caused memory problems in some cases.
changelog_1078_li=It was possible to create a role with the name as an existing user (but not vice versa). This is not allowed any more.
changelog_1079_li=The recovery tool didn't work correctly for tables without rows.
changelog_1080_li=For years below 1, the YEAR method didn't return the correct value, and the conversion from date and timestamp to varchar was incorrect.
changelog_1081_li=CSVWRITE caused a NullPointerException when not specifying a nullString.
changelog_1082_li=When a log file switch occurred just after a truncate table or drop table statement, the database could not be started normally (RECOVER\=1 was required). Fixed.
changelog_1083_li=When a log file switch occurred in the middle of a sequence flush (sequences are only flushed every 32 values by default), the sequence value was lost. Fixed.
changelog_1084_li=Altering a sequence didn't unlock the system table when autocommit switched off.
changelog_1085_h2=Version 1.0.68 (2008-03-18)
changelog_1086_li=Very large SELECT DISTINCT and UNION EXCEPT queries are now supported, however this feature is disabled by default. To enable it, set the system property h2.maxMemoryRowsDistinct to a lower value, for example 10000.
changelog_1087_li=A error is now thrown when trying to call a method inside a trigger that implicitly commits the current transaction, if an object is locked.
changelog_1088_li=Unused LOB files were deleted much too late. Now they are deleted if no longer referenced in memory.
changelog_1089_li=ALTER SEQUENCE and ALTER TABLE ALTER COLUMN RESTART can now be used inside a transaction.
changelog_1090_li=New system property h2.aliasColumnName. When enabled, aliased columns (as in SELECT ID AS I FROM TEST) return the real table and column name in ResultSetMetaData.getTableName() and getColumnName(). This is disabled by default for compatibility with other databases (HSQLDB, Apache Derby, PostgreSQL, some version of MySQL). In version 1.1 this setting will be enabled.
changelog_1091_li=When using encrypted databases, and using the wrong file password, the log file was renamed if the database was not already open. Fixed.
changelog_1092_li=Improved performance when using lob files in directories (however this is still disabled by default)
changelog_1093_li=H2 Console\: autocomplete didn't work with very large scripts. Fixed.
changelog_1094_li=Fulltext search\: new method SEARCH_DATA that returns the column names and primary keys as arrays.
changelog_1095_li=New experimental optimization for GROUP BY queries if an index can be used that matches the group by columns. To enable this optimization, set the system property h2.optimizeGroupSorted to true.
changelog_1096_li=When using multi-version concurrency (MVCC\=TRUE), duplicate rows could appear in the result set when running queries with uncommitted changes in the same session.
changelog_1097_li=H2 Console\: remote connections were very slow because getHostName/getRemoteHost was used. Fixed (now using getHostAddress/getRemoteAddr.
changelog_1098_li=H2 Console\: on Linux, Firefox, Konqueror, or Opera (in this order) are now started if available. This has been tested on Ubuntu.
changelog_1099_li=H2 Console\: the start window works better with IKVM
changelog_1100_li=H2 Console\: improved compatibility with Safari (Safari requires keep-alive)
changelog_1101_li=Random\: the process didn't stop if generating the random seed using the standard way (SecureRandom.generateSeed) was very slow. Now using a daemon thread to avoid this problem.
changelog_1102_li=SELECT UNION with a different number of ORDER BY columns did throw an ArrayIndexOutOfBoundsException.
changelog_1103_li=When using a view, the column precision was changed to the default scale for some data types.
changelog_1104_li=CSVWRITE now supports a 'null string' that is used for parsing and writing NULL.
changelog_1105_li=Some long running queries could not be cancelled.
changelog_1106_li=Queries with many outer join tables were very slow. Fixed.
changelog_1107_li=The performance of text comparison has been improved when using locale sensitive string comparison (SET COLLATOR). Now CollationKey is used with a LRU cache. The default cache size is 10000, and can be changed using the system property h2.collatorCacheSize. Use 0 to disable the cache.
changelog_1108_li=UPDATE SET column\=DEFAULT is now supported.
changelog_1109_h2=Version 1.0.67 (2008-02-22)
changelog_1110_li=New function FILE_READ to read a file or from an URL. Both binary and text data is supported.
changelog_1111_li=CREATE TABLE AS SELECT now supports specifying the column list and data types.
changelog_1112_li=Connecting to a TCP server and at shutting it down at the same time could cause a Java level deadlock.
changelog_1113_li=A user now has all rights on his own local temporary tables.
changelog_1114_li=The CSV tool now supports a custom lineSeparator.
changelog_1115_li=When using multiple connections, empty space was reused too early sometimes. This could corrupt the database when recovering.
changelog_1116_li=The H2 Console has been translated to Dutch. Thanks a lot to Remco Schoen\!
changelog_1117_li=Databases can now be opened even if trigger classes are not in the classpath. The exception is thrown when trying to fire the trigger.
changelog_1118_li=Opening databases with ACCESS_MODE_DATA\=r is now supported. In this case the database is read-only, but the files don't not need to be read-only.
changelog_1119_li=Security\: The database now waits 200 ms before throwing an exception if the user name or password don't match, to slow down dictionary attacks.
changelog_1120_li=The value cache is now a soft reference cache. This should help save memory.
changelog_1121_li=CREATE INDEX on a table with many rows could run out of memory. Fixed.
changelog_1122_li=Large result sets are now a bit faster.
changelog_1123_li=ALTER TABLE ALTER COLUMN RESTART and ALTER SEQUENCE now support parameters (any expressions).
changelog_1124_li=When setting the base directory on the command line, the user directory prefix ('~') was ignored.
changelog_1125_li=The DbStarter servlet didn't start the TCP listener even if configured.
changelog_1126_li=Statement.setQueryTimeout() is now supported.
changelog_1127_li=New session setting QUERY_TIMEOUT, and new system property h2.maxQueryTimeout.
changelog_1128_li=Changing the transaction log level (SET LOG) is now written to the trace file by default.
changelog_1129_li=In a SQL script, primary key constraints are now ordered before foreign key constraints.
changelog_1130_li=It was not possible to create a referential constraint to a table in a different schema in some situations.
changelog_1131_li=The H2 Console was slow when the database contains many tables. Now the column names are not shown in this case.
changelog_1132_h2=Version 1.0.66 (2008-02-02)
changelog_1133_li=There is a new online error analyzer tool.
changelog_1134_li=H2 Console\: stack traces are now links to the source code in the source repository (H2 database only).
changelog_1135_li=CHAR data type equals comparison was case insensitive instead of case sensitive.
changelog_1136_li=The exception 'Value too long for column' now includes the data.
changelog_1137_li=The table name was missing in the documentation of CREATE INDEX.
changelog_1138_li=Better support for IKVM (www.ikvm.net)\: the H2 Console now opens a browser window.
changelog_1139_li=The cache size was not correctly calculated for tables with large objects (specially if compression is used). This could lead to out-of-memory exceptions.
changelog_1140_li=The exception "Hexadecimal string contains non-hex character" was not always thrown when it should have been. Fixed.
changelog_1141_li=The H2 Console now provides a link to the documentation when an error occurs (H2 databases only so far).
changelog_1142_li=The acting as PostgreSQL server, when a base directory was set, and the H2 Console was started as well, the base directory was applied twice.
changelog_1143_li=Calling EXTRACT(HOUR FROM ...) or EXTRACT(HH FROM ...) returned the wrong values (0 to 11 instead of 0 to 23). All other tested databases return values from 0 to 23. Please check if your application relies on the old behavior before upgrading.
changelog_1144_li=For compatibility with other databases the column default (COLUMN_DEF) for columns without default is now null (it was an empty string).
changelog_1145_li=Statements that contain very large subqueries (where the subquery result does not fit in memory) are now faster.
changelog_1146_li=Variables\: large objects (CLOB and BLOB) that don't fit in memory did not work correctly when used as variables.
changelog_1147_li=Fulltext search is now supported in named in-memory databases.
changelog_1148_li=H2 Console\: multiple consecutive spaces in the setting name did not work. Fixed.
changelog_1149_h2=Version 1.0.65 (2008-01-18)
changelog_1150_li=The build (ant) now automatically switches the source code to the correct version (JDK 1.4/1.5 or 1.6).
changelog_1151_li=A recovery bug has been fixed. With older versions, it was necessary to add ;RECOVER\=1 to the database URL in cases where it should not have been required.
changelog_1152_li=The performance for DROP and DROP ALL OBJECTS has been improved.
changelog_1153_li=The ChangePassword API has been improved.
changelog_1154_li=User defined variables are now supported. Examples\: SET @VAR\=10;CALL @VAR. This can be used for running totals as in\: select x, set(@t, ifnull(@t, 0) + x) from system_range(1, 10)
changelog_1155_li=The Ukrainian translation has been improved.
changelog_1156_li=CALL statements can now be used in batch updates and called using Statement.executeUpdate.
changelog_1157_li=New read-only setting CREATE_BUILD (the build number of the database engine that created the database).
changelog_1158_li=The optimizer did not use multi column indexes for range queries in some cases. Fixed.
changelog_1159_li=The H2 Console now calls DataSource.getConnection() instead of DataSource.getConnection(user, password) when user name and password are not specified.
changelog_1160_li=The bind IP address can now be set when using multi-homed host (if multiple network adapters are available) using the system property h2.bindAddress.
changelog_1161_li=Batch update\: Calling BatchUpdateException.printStackTrace() could result in out of memory. Fixed.
changelog_1162_li=Indexes of unique or foreign constraints where not dropped when the constraint was dropped after altering the table (for example dropping a column). Fixed.
changelog_1163_li=The performance for large result sets in the server mode has been improved.
changelog_1164_li=The setting h2.serverSmallResultSetSize has been renamed to h2.serverResultSetFetchSize.
changelog_1165_li=The SCRIPT command now uses multi-row insert statements to save space except if the option SIMPLE is used.
changelog_1166_li=The SCRIPT command did not split up CLOB data correctly. Fixed.
changelog_1167_li=Optimization for single column distinct queries with an index\: select distinct name from test. Can be disabled by setting the system property h2.optimizeDistinct to false.
changelog_1168_li=DROP ALL OBJECTS did not drop user defined aggregate functions and domains.
changelog_1169_li=PostgreSQL compatibility\: COUNT(T.*) is now supported.
changelog_1170_li=LIKE comparisons are now faster.
changelog_1171_li=Encrypted databases are now faster.
changelog_1172_h2=Version 1.0.64 (2007-12-27)
changelog_1173_li=3-way union queries with prepared statement or views could return the wrong results. Fixed.
changelog_1174_li=The PostgreSQL ODBC driver did not work in the last release due to a parser regression. Fixed.
changelog_1175_li=CSV tool\: some escape/separator character combinations did not work. Fixed.
changelog_1176_li=CSV tool\: the character \# could not be used as a separator when reading.
changelog_1177_li=Recovery\: when the index file is corrupt, now the database deletes it and re-creates it automatically.
changelog_1178_li=The MVCC mode did not work well with in-memory databases. Fixed.
changelog_1179_li=The FTP server now supports a event listener. Thanks Fulvio Biondi for the help\!
changelog_1180_li=New system function CANCEL_SESSION to cancel the currently executing statement of another session.
changelog_1181_li=The database now supports an exclusive mode. In exclusive mode, new connections are rejected.
changelog_1182_li=H2 Console\: when editing result sets, columns can now be set to null. The text 'null' must be escaped using '\=null'.
changelog_1183_li=New built-in functions RPAD and LPAD.
changelog_1184_li=New meta data table INFORMATION_SCHEMA.SESSIONS and LOCKS to get information about active connections and locks. Admins will see all connections, non-admins only their own session.
changelog_1185_li=The Ukrainian translation was not working in the last release. Fixed.
changelog_1186_li=Creating many tables (many hundreds) was slow. Fixed.
changelog_1187_li=Opening a database with many indexes (thousands) was slow. Fixed.
changelog_1188_li=H2 Console / autocomplete\: Ctrl+Space now shows the list in all modes.
changelog_1189_li=The method Trigger.init has been changed\: the parameters 'before' and 'type', have been added to the init method.
changelog_1190_li=The performance has been improved for ResultSet methods with column name.
changelog_1191_li=A stack trace was thrown if the system did not provide a quick secure random source and if there is no network or the network settings are not configured. Fixed.
changelog_1192_li=The H2 Console has been translated to Turkish. Thanks a lot to Ridvan Agar\!
changelog_1193_li=Improved debugging support\: toString methods of most object now return a meaningful text.
changelog_1194_li=The classes DbStarter and WebServlet have been moved to src/main.
changelog_1195_li=The column INFORMATION_SCHEMA.TRIGGERS.SQL now contains the CREATE TRIGGER statement.
changelog_1196_li=Loading classes and calling methods can be restricted using the new system property h2.allowedClasses.
changelog_1197_li=The database could not be used in Java applets due to security exceptions. Fixed.
changelog_1198_h2=Version 1.0.63 (2007-12-02)
changelog_1199_li=The SecurePassword example has been improved.
changelog_1200_li=In time zones where the summer time saving limit is at midnight, some dates do not work in some virtual machines, for example 2007-10-14 in Chile, using the Sun JVM 1.6.0_03-b05. Fixed.
changelog_1201_li=The native fulltext search was not working properly after re-connecting.
changelog_1202_li=Improved FTP server\: now the PORT command is supported.
changelog_1203_li=Temporary views (FROM(...)) with UNION didn't work if nested. Fixed.
changelog_1204_li=Performance optimization for IN(...) and IN(SELECT...), currently disabled by default. To enable, use java -Dh2.optimizeInJoin\=true
changelog_1205_li=The H2 Console has been translated to Ukrainian by Igor Dobrovolskyi. Thanks a lot\!
changelog_1206_li=New function TABLE_DISTINCT.
changelog_1207_li=Using LIMIT with values close to Integer.MAX_VALUE didn't work correctly.
changelog_1208_li=Certain setting in the Server didn't work (http\://code.google.com/p/h2database/issues/detail?id\=7).
changelog_1209_h2=Version 1.0.62 (2007-11-25)
changelog_1210_li=Large updates and deletes are now supported by buffering data to disk if required. The threshold is currently set to 100'000 bytes and can be changed using SET MAX_OPERATION_MEMORY or using by appending ;MAX_OPERATION_MEMORY\=.. to the database URL. See also the docs.
changelog_1211_li=MVCC\: now an exception is thrown when an application tries to change the MVCC setting while the database is already open.
changelog_1212_li=Referential integrity checks didn't lock the referenced table, and thus could read uncommitted rows of other connections. In that way the referential constraints could get violated (except when using MVCC).
changelog_1213_li=Renaming or dropping a user with a schema, or removing the admin property of that user made the schema inaccessible after re-opening the database. Fixed.
changelog_1214_li=The H2 Console now also support the command line option -ifExists when started from the Server tool, but only when connecting to H2 databases.
changelog_1215_li=Duplicate column names were not detected when renaming columns. Fixed.
changelog_1216_li=The console did not display multiple embedded spaces in text correctly. Fixed.
changelog_1217_li=Google Android support\: use 'ant codeswitchAndroid' to switch the source code to Android.
changelog_1218_li=Values of type ARRAY are now sorted as in PostgreSQL.
changelog_1219_li=In the cluster mode, could not connect if only one server was running (last release only). Fixed.
changelog_1220_li=The performance of large CSV operations has been improved.
changelog_1221_li=Now using custom toString() for most JDBC objects and commands.
changelog_1222_li=Nested temporary views (SELECT * FROM (SELECT ...)) with parameters didn't work in some cases. Fixed.
changelog_1223_li=CSV\: Using an empty field delimiter didn't work (a workaround was using char(0)). Fixed.
changelog_1224_li=A patch for Apache DDL Utils is available at https\://issues.apache.org/jira/browse/DDLUTILS-185
changelog_1225_li=The default value for h2.emergencySpaceInitial is now 256 KB (to speed up creating encrypted databases)
changelog_1226_li=Eduardo Velasques has translated the H2 Console and the error messages to Brazilian Portuguese. Thanks a lot\!
changelog_1227_li=Creating a table from GROUP_CONCAT didn't work if the data was longer than 255 characters
changelog_1228_h2=Version 1.0.61 (2007-11-10)
changelog_1229_li=The Lucene Fulltext implementation is now compiled and included in the h2.jar. Requires Lucene 2.2.
changelog_1230_li=Added more tests. The code coverage is now at 83%.
changelog_1231_li=ResultSetMetaData.getColumnDisplaySize was calculated as the longest display size for the given result set, but should be the maximum size that fits in the column. Fixed.
changelog_1232_li=The MODE used to be a global setting, now it is a database level setting.
changelog_1233_li=The database does now always round to the nearest number when converting a floating point to a integer\: CAST(1.5 AS INT) will now result in 2, like in PostgreSQL and MySQL.
changelog_1234_li=Math operations using unknown data types (for example -? and ?+?) are now interpreted as decimal.
changelog_1235_li=INSTR, LOCATE\: backward searching is not supported by using a negative start position.
changelog_1236_li=Can now open a database stored in a jar or zip file (for example, jdbc\:h2\:zip\:c\:/temp/h2.zip\!/test).
changelog_1237_li=Files access now uses an API (FileSystem, FileObject), this will simplify adding other file systems and features (for example replication).
changelog_1238_li=Vlad Alexahin has translated H2 Console to Russian. Thanks a lot\!
changelog_1239_li=Descending indexes are now supported. This is useful when sorting columns descending, for example by creation date.
changelog_1240_li=Solved a Java level deadlock in the DatabaseCloser.
changelog_1241_li=CREATE SEQUENCE\: New option CACHE (number of pre-allocated numbers). New column CACHE in the sequence meta data table. The default cache size is still 32.
changelog_1242_li=MVCC\: The system property h2.mvcc has been removed. A few bugs have been fixed, and new tests have been added.
changelog_1243_h2=Version 1.0.60 (2007-10-20)
changelog_1244_li=JdbcXAConnection\: starting a transaction before getting the connection didn't switch off autocommit.
changelog_1245_li=User defined aggregate functions are not supported.
changelog_1246_li=Server.shutdownTcpServer was blocked when first called with force\=false and then force\=true. Now documentation is improved, and it is no longer blocked.
changelog_1247_li=Stack traces did not include the SQL statement in all cases where they could have. Also, stack traces with SQL statement are now shorter.
changelog_1248_li=Linked tables\: now tables in non-default schemas are supported as well
changelog_1249_li=New Italian translation from PierPaolo Ucchino. Thanks a lot\!
changelog_1250_li=CSV\: New methods to set the escape character and field delimiter in the Csv tool and the CSVWRITE and CSVREAD methods.
changelog_1251_li=Prepared statements could not be used after data definition statements (creating tables and so on). Fixed.
changelog_1252_li=PreparedStatement.setMaxRows could not be changed to a higher value after the statement was executed.
changelog_1253_li=The H2 Console could not connect twice to the same H2 embedded database at the same time. Fixed.
changelog_1254_li=CSVREAD, RUNSCRIPT and so on now support URLs as well, using URL.openStream(). Example\: select * from csvread('jar\:file\:///c\:/temp/test.jar\!/test.csv');
changelog_1255_h2=Version 1.0.59 (2007-10-03)
changelog_1256_li=When the data type was unknown in a subquery, sometimes the wrong exception (ArrayIndexOutOfBounds) was thrown. Fixed.
changelog_1257_li=If the process was killed while the database was running, sometimes the database could not be opened ('double allocation') except when the system property h2.check was set to false. Fixed.
changelog_1258_li=Multi-threaded kernel (MULTI_THREADED\=1)\: A synchronization problem has been fixed.
changelog_1259_li=A PreparedStatement that was cancelled could not be reused. Fixed.
changelog_1260_li=H2 Console\: Progress information when logging into a H2 embedded database (useful when opening a database is slow).
changelog_1261_li=When the database was closed while logging was disabled (LOG 0), re-opening the database was slow. Fixed.
changelog_1262_li=Fulltext search is now documented (in the Tutorial).
changelog_1263_li=The Console did not refresh the table list if the CREATE TABLE statement started with a comment. Fixed.
changelog_1264_li=When creating a table using CREATE TABLE .. AS SELECT, the precision for some data types (for example VARCHAR) was set to the default precision. Fixed.
changelog_1265_li=When using the (undocumented) in-memory file system (jdbc\:h2\:memFS\:x or jdbc\:h2\:memLZF\:x), and using multiple connections, a ConcurrentModificationException could occur. Fixed.
changelog_1266_li=REGEXP compatibility\: So far String.matches was used, but for compatibility with MySQL, now Matcher.find is used.
changelog_1267_li=SCRIPT\: the SQL statements in the result set now include the terminating semicolon as well. Simplifies copy and paste.
changelog_1268_li=When using a subquery with group by as a table, some columns could not be used in the where condition in the outer query. Example\: SELECT * FROM (SELECT ID, COUNT(*) C FROM TEST) WHERE C > 100. Fixed.
changelog_1269_li=Views with subqueries as tables and queries with nested subqueries as tables did not always work. Fixed.
changelog_1270_li=Compatibility\: comparing columns with constants that are out of range does not throw an exception.
changelog_1271_h2=Version 1.0.58 (2007-09-15)
changelog_1272_li=System.exit is no longer called by the WebServer, the Console and the Server tool (except to set the exit code if required). This is important when using OSGi.
changelog_1273_li=Optimization for independent subqueries. For example, this query can now an index\: SELECT * FROM TEST WHERE ID \= (SELECT MAX(ID) FROM TEST) This can be disabled by setting the system property h2.optimizeSubqueryCache to false.
changelog_1274_li=The explain plan now says\: /* direct lookup query */ if the query can be processed directly without reading rows, for example when using MIN(indexed column), MAX(indexed column), or COUNT(*).
changelog_1275_li=When using IFNULL, NULLIF, COALESCE, LEAST, or GREATEST, and the first parameter was ?, an exception was thrown. Now the highest data type of all parameters is used.
changelog_1276_li=When comparing TINYINT or SMALLINT columns against constants, the index was not used. Fixed.
changelog_1277_li=Maven 2\: new version are now automatically synced with the central repositories.
changelog_1278_li=The default value for MAX_MEMORY_UNDO is now 100000.
changelog_1279_li=The documentation indexer does no longer index Japanese pages. If somebody knows how to split Japanese into words please post it.
changelog_1280_li=Oracle compatibility\: SYSDATE now returns a timestamp. CHR(..) is now an alias for CHAR(..).
changelog_1281_li=After deleting data, empty space in the database files was not efficiently reused (but it was reused when opening the database). This has been fixed.
changelog_1282_li=About 230 bytes per database was leaked. This is a problem for applications opening and closing many thousand databases. The main problem\: a shutdown hook was added but never removed. Fixed. In JDK 1.4, there is <a href\="http\://bugs.sun.com/bugdatabase/view_bug.do?bug_id\=4197876">an additionally problem</a> . A workaround has been implemented.
changelog_1283_li=Optimization for COLUMN IN(.., NULL) if the column does not allow NULL values.
changelog_1284_li=Using spaces in column and table aliases was not supported when used inside a view or temporary view.
changelog_1285_li=The version (build) number is now included in the manifest file.
changelog_1286_li=In some systems, SecureRandom.generateSeed is very slow (taking one minute or more). For those cases, an alternative method is used that takes less than one second.
changelog_1287_li=The database file sizes are now increased at most 32 MB at any time.
changelog_1288_li=New method DatabaseEventListener.opened that is called just after opening a database.
changelog_1289_li=When using the Console with Internet Explorer 6.0 or 7.0, a Javascript error was thrown after clearing the query.
changelog_1290_li=A database can now be opened even if class of a user defined function is not in the classpath. Trying to call the function will throws an exception.
changelog_1291_li=User defined functions and constants may not overload built-in functions and constants. This didn't work before, but now trying to create such an object will fail.
changelog_1292_li=Improved MultiDimension tool (for spatial queries)\: in the last few releases the tool was actually slower than using a regular query (because index lookup got faster, and because the tool didn't support prepared statements) Now the tool generates prepared statements, and the performance is better again (about 5 times faster for a reasonable amount of data).
changelog_1293_li=Adding a foreign key or when re-enabling referential integrity for a table failed when checking was enabled and the reference contained NULL.
changelog_1294_li=For PgServer, character encoding other than UTF-8 did not work correctly. Fixed.
changelog_1295_li=Using a function in a GROUP BY expression that is used in a view as a condition did not always work.
changelog_1296_h2=Version 1.0.57 (2007-08-25)
changelog_1297_li=New experimental feature MVCC (multi version concurrency control). Can be set as a option when opening the database (jdbc\:h2\:~/test;MVCC\=TRUE) or as a system property (-Dh2.mvcc\=true). This is work-in-progress, use it at your own risk. Feedback is welcome.
changelog_1298_li=The version number is now major.minor.micro where micro is the build number. Not all version are public, so there may be gaps in the micro. The minor changes when there is a file format change.
changelog_1299_li=The backup tool (org.h2.tools.Backup) did not work. The restore tool did not work when the -db parameter was used. Fixed. The documentation of the backup tool has been changed\: only one database may be backed up at any time.
changelog_1300_li=Opening large read-only databases was very slow. Fixed.
changelog_1301_li=New Japanese translation of the error messages thanks to Ikemoto Masahiro. Thanks a lot\!
changelog_1302_li=Disabling / enabling referential integrity for a table can now be used inside a transaction.
changelog_1303_li=Rights checking for dynamic tables (SELECT * FROM (SELECT ...)) did not work. Fixed.
changelog_1304_li=Creating more than 10 views that depend on each other was very slow. Reconnecting was slow as well. Fixed.
changelog_1305_li=When used as as Servlet, the H2 Console did not work with SSL (using Tomcat). Fixed.
changelog_1306_li=When altering a table with foreign key constraint, if there was no manual index created for the referenced columns, the automatically created index was dropped while still being used. Fixed.
changelog_1307_li=Check and foreign key constraints now checks if the existing data is consistent (this can be disabled by appending NOCHECK). It is also possible to check existing data when re-enabling referential integrity for a table.
changelog_1308_li=Some unit tests failed on Linux because the file system works differently. The unit tests are fixed and should work now.
changelog_1309_li=Can now incrementally translate the documentation. See also FAQ.
changelog_1310_li=Improved error messages\: some tools can't show the root cause of an exception. Adding the message of the root cause to the message of the thrown exception now where it makes sense.
changelog_1311_li=The H2 Console can now connect to databases using JNDI. The driver class name must be a javax.naming.Context, (for example javax.naming.InitialContext), and the URL the resource name (for example java\:comp/env/jdbc/Test). This should also work for linked tables.
changelog_1312_li=Google translate did not work for the H2 homepage. It should be fixed now.
changelog_1313_li=The CONVERT function did not work with views when using UNION.
changelog_1314_li=The build now issues a warning if the source code is switched to the wrong version.
changelog_1315_li=The default lock mode is now read committed instead of serialized.
changelog_1316_li=PG server\: data was truncated when reading large VARCHAR columns and decimal columns.
changelog_1317_li=PG server\: when the same database was accessed multiple times using the PostgreSQL ODBC driver, the pg_catalog schema update failed, and connecting to the database was not possible. Fixed.
changelog_1318_li=Some file operations didn't work for files in the root directory. Fixed.
changelog_1319_li=In the Restore tool, the parameter -file did not work. Fixed.
changelog_1320_li=Two-phase commit\: commit with transaction name was only supported in the recovery scan. Now it is always supported.
changelog_1321_li=The column name C_CURRENT_TIMESTAMP did not work in the last release.
changelog_1322_li=OpenOffice compatibility\: support database name in column names.
download_1000_h1=Downloads
download_1001_h3=Version 1.0.73 (2008-05-31, Current)
download_1002_a=Windows Installer
......@@ -1291,16 +1292,16 @@ history_1022_p=This software does not rely on many Java libraries or other softw
history_1023_h2=Supporters
history_1024_p=Many thanks for those who helped by finding and reporting bugs, gave valuable feedback, spread the word and have translated this project. Also many thanks to the donors who contributed via PayPal\:
history_1025_li=Florent Ramiere, France
history_1026_li=Pete Haidinyak, USA
history_1027_li=Jun Iyama, Japan
history_1028_li=Antonio Casqueiro, Portugal
history_1029_li=Oliver Computing LLC, USA
history_1030_li=Harpal Grover Consulting Inc., USA
history_1031_li=Elisabetta Berlini, Italy
history_1032_li=William Gilbert, USA
history_1033_li=Antonio Dieguez, Chile
history_1034_a=Ontology Works, USA
history_1035_li=lumber-mill.co.jp, Japan
history_1026_li=Jun Iyama, Japan
history_1027_li=Antonio Casqueiro, Portugal
history_1028_li=Oliver Computing LLC, USA
history_1029_li=Harpal Grover Consulting Inc., USA
history_1030_li=Elisabetta Berlini, Italy
history_1031_li=William Gilbert, USA
history_1032_li=Antonio Dieguez, Chile
history_1033_a=Ontology Works, USA
history_1034_li=lumber-mill.co.jp, Japan
history_1035_li=Pete Haidinyak, USA
installation_1000_h1=Installation
installation_1001_a=Requirements
installation_1002_a=Supported Platforms
......@@ -1597,42 +1598,48 @@ links_1097_a=Pickle
links_1098_p=Pickle is a Java library containing classes for persistence, concurrency, and logging.
links_1099_a=PolePosition
links_1100_p=Open source database benchmark.
links_1101_a=Rutema
links_1102_p=Rutema is a test execution and management tool for heterogeneous development environments written in Ruby.
links_1103_a=Scriptella
links_1104_p=ETL (Extract-Transform-Load) and script execution tool.
links_1105_a=Sesar
links_1106_p=Dependency Injection Container with Aspect Oriented Programming.
links_1107_a=SemmleCode
links_1108_p=Eclipse plugin to help you improve software quality.
links_1109_a=Shellbook
links_1110_p=Desktop publishing application.
links_1111_a=Signsoft intelliBO
links_1112_p=Persistence middleware supporting the JDO specification.
links_1113_a=SmartFoxServer
links_1114_p=Platform for developing multiuser applications and games with Macromedia Flash.
links_1115_a=SQL Developer
links_1116_p=Universal Database Frontend.
links_1117_a=SQL Workbench/J
links_1118_p=Free DBMS-independent SQL tool.
links_1119_a=SQuirreL SQL Client
links_1120_p=Graphical tool to view the structure of a database, browse the data, issue SQL commands etc.
links_1121_a=SQuirreL DB Copy Plugin
links_1122_p=Tool to copy data from one database to another.
links_1123_a=StorYBook
links_1124_p=A summary-based tool for novelist and script writers. It helps to keep the overview over the various traces a story has.
links_1125_a=StreamCruncher
links_1126_p=Event (stream) processing kernel.
links_1127_a=Tamava
links_1128_p=Newsgroups Reader.
links_1129_a=Tune Backup
links_1130_p=Easy-to-use backup solution for your iTunes library.
links_1131_a=Web of Web
links_1132_p=Collaborative and realtime interactive media platform for the web.
links_1133_a=Werkzeugkasten
links_1134_p=Minimum Java Toolset.
links_1135_a=Volunteer database
links_1136_p=A database front end to register volunteers, partnership and donation for a Non Profit organization.
links_1101_a=Poormans
links_1102_p=Very basic CMS running as a SWT application and generating static html pages.
links_1103_a=Railo
links_1104_p=Railo is an alternative engine for the Cold Fusion Markup Language, that compiles code programmed in CFML into Java bytecode and executes it on a servlet engine.
links_1105_a=Rutema
links_1106_p=Rutema is a test execution and management tool for heterogeneous development environments written in Ruby.
links_1107_a=Sava
links_1108_p=Open-source web-based content management system.
links_1109_a=Scriptella
links_1110_p=ETL (Extract-Transform-Load) and script execution tool.
links_1111_a=Sesar
links_1112_p=Dependency Injection Container with Aspect Oriented Programming.
links_1113_a=SemmleCode
links_1114_p=Eclipse plugin to help you improve software quality.
links_1115_a=Shellbook
links_1116_p=Desktop publishing application.
links_1117_a=Signsoft intelliBO
links_1118_p=Persistence middleware supporting the JDO specification.
links_1119_a=SmartFoxServer
links_1120_p=Platform for developing multiuser applications and games with Macromedia Flash.
links_1121_a=SQL Developer
links_1122_p=Universal Database Frontend.
links_1123_a=SQL Workbench/J
links_1124_p=Free DBMS-independent SQL tool.
links_1125_a=SQuirreL SQL Client
links_1126_p=Graphical tool to view the structure of a database, browse the data, issue SQL commands etc.
links_1127_a=SQuirreL DB Copy Plugin
links_1128_p=Tool to copy data from one database to another.
links_1129_a=StorYBook
links_1130_p=A summary-based tool for novelist and script writers. It helps to keep the overview over the various traces a story has.
links_1131_a=StreamCruncher
links_1132_p=Event (stream) processing kernel.
links_1133_a=Tamava
links_1134_p=Newsgroups Reader.
links_1135_a=Tune Backup
links_1136_p=Easy-to-use backup solution for your iTunes library.
links_1137_a=Web of Web
links_1138_p=Collaborative and realtime interactive media platform for the web.
links_1139_a=Werkzeugkasten
links_1140_p=Minimum Java Toolset.
links_1141_a=Volunteer database
links_1142_p=A database front end to register volunteers, partnership and donation for a Non Profit organization.
mainWeb_1000_h1=H2 Database Engine
mainWeb_1001_p=Welcome to H2, the Java SQL database. The main feature of H2 are\:
mainWeb_1002_li=Very fast, free for everybody, source code is included
......@@ -2161,7 +2168,7 @@ roadmap_1051_li=Test with Sun ASPE1_4; JEE Sun AS PE1.4
roadmap_1052_li=Test performance again with SQL Server, Oracle, DB2
roadmap_1053_li=Test with dbmonster (http\://dbmonster.kernelpanic.pl/)
roadmap_1054_li=Test with dbcopy (http\://dbcopyplugin.sourceforge.net)
roadmap_1055_li=Find a tool to view a text file >100 MB, with find, page up and down (like less)
roadmap_1055_li=Find a tool to view large text file >100 MB, with find, page up and down (like less), truncate before / after
roadmap_1056_li=Implement, test, document XAConnection and so on
roadmap_1057_li=Web site\: get rid of frame set
roadmap_1058_li=Pluggable data type (for compression, validation, conversion, encryption)
......
......@@ -179,8 +179,8 @@ public abstract class Command implements CommandInterface {
}
if (trace.isInfoEnabled()) {
long time = System.currentTimeMillis() - startTime;
if (time > Constants.LONG_QUERY_LIMIT_MS) {
trace.info("long query: " + time);
if (time > Constants.SLOW_QUERY_LIMIT_MS) {
trace.info("slow query: " + time);
}
}
}
......
......@@ -170,7 +170,7 @@ public class ErrorCode {
* to lock a table the first session has locked. As an example, session 1
* has locked table A, while session 2 has locked table B. If session 1 now
* tries to lock table B and session 2 tries to lock table A, a deadlock has
* occured. Deadlocks that involve more than two sessions are also possible.
* occurred. Deadlocks that involve more than two sessions are also possible.
* To solve deadlock problems, an application should lock tables always in
* the same order, such as always lock table A before locking table B. For
* details, see <a href="http://en.wikipedia.org/wiki/Deadlock">Wikipedia
......@@ -301,7 +301,7 @@ public class ErrorCode {
/**
* The error with code <code>50200</code> is thrown when
* another connection locked an object longer than the lock timeout
* set for this connection, or when a deadlock occured.
* set for this connection, or when a deadlock occurred.
* Example:
* <pre>
* CREATE TABLE TEST(ID INT);
......@@ -560,7 +560,7 @@ public class ErrorCode {
/**
* The error with code <code>90021</code> is thrown when
* trying to convert a value to a data type where the conversion is undefined,
* or when an error occured trying to convert.
* or when an error occurred trying to convert.
* Example:
* <pre>
* CALL CAST(DATE '2001-01-01' AS BOOLEAN);
......@@ -599,7 +599,7 @@ public class ErrorCode {
/**
* The error with code <code>90025</code> is thrown when
* a file could not be deleted, because it is still in use
* (only in Windows), or because an error occured when deleting.
* (only in Windows), or because an error occurred when deleting.
*/
public static final int FILE_DELETE_FAILED_1 = 90025;
......@@ -617,7 +617,7 @@ public class ErrorCode {
/**
* The error with code <code>90028</code> is thrown when
* an input / output error occured. For more information, see the root
* an input / output error occurred. For more information, see the root
* cause of the exception.
*/
public static final int IO_EXCEPTION_1 = 90028;
......@@ -645,7 +645,7 @@ public class ErrorCode {
/**
* The error with code <code>90031</code> is thrown when
* an input / output error occured. For more information, see the root
* an input / output error occurred. For more information, see the root
* cause of the exception.
*/
public static final int IO_EXCEPTION_2 = 90031;
......@@ -780,7 +780,7 @@ public class ErrorCode {
/**
* The error with code <code>90044</code> is thrown when
* an exception or error occured while calling the triggers fire method.
* an exception or error occurred while calling the triggers fire method.
* See the root cause for details.
*/
public static final int ERROR_EXECUTING_TRIGGER_3 = 90044;
......@@ -1398,7 +1398,7 @@ public class ErrorCode {
public static final int SIMULATED_POWER_OFF = 90098;
/**
* The error with code <code>90099</code> is thrown when an error occured
* The error with code <code>90099</code> is thrown when an error occurred
* trying to initialize the database event listener. Example:
* <pre>
* jdbc:h2:&tilde;/test;DATABASE_EVENT_LISTENER='java.lang.String'
......@@ -1457,7 +1457,7 @@ public class ErrorCode {
/**
* The error with code <code>90105</code> is thrown when
* an exception occured in a user-defined method.
* an exception occurred in a user-defined method.
* Example:
* <pre>
* CREATE ALIAS SYS_PROP FOR "java.lang.System.getProperty";
......@@ -1513,7 +1513,7 @@ public class ErrorCode {
/**
* The error with code <code>90111</code> is thrown when
* an exception occured while accessing a linked table.
* an exception occurred while accessing a linked table.
*/
public static final int ERROR_ACCESSING_LINKED_TABLE_2 = 90111;
......
......@@ -359,12 +359,6 @@ public class Constants {
*/
public static final long LOG_SIZE_DIVIDER = 10;
/**
* Queries that take longer than this number of milliseconds are written to
* the trace file with the level info.
*/
public static final long LONG_QUERY_LIMIT_MS = 100;
/**
* The file header used for binary files.
*/
......@@ -468,6 +462,12 @@ public class Constants {
*/
public static final String SERVER_PROPERTIES_TITLE = "H2 Server Properties";
/**
* Queries that take longer than this number of milliseconds are written to
* the trace file with the level info.
*/
public static final long SLOW_QUERY_LIMIT_MS = 100;
/**
* The file name suffix of data files.
*/
......
......@@ -1687,7 +1687,7 @@ public class Database implements DataHandler {
}
/**
* This method is called after an exception occured, to inform the database
* This method is called after an exception occurred, to inform the database
* event listener (if one is set).
*
* @param e the exception
......
......@@ -32,6 +32,13 @@ public class Mode {
public boolean systemColumns;
public boolean squareBracketQuotedNames;
/**
* When using unique indexes, multiple rows with NULL in one of the columns
* are allowed by default. However many databases view NULL as distinct in
* this regard and only allow one row with NULL.
*/
public boolean uniqueIndexSingleNull;
private String name;
static {
......@@ -54,10 +61,20 @@ public class Mode {
mode = new Mode("HSQLDB");
mode.nullConcatIsNull = true;
mode.convertOnlyToSmallerScale = true;
mode.uniqueIndexSingleNull = true;
add(mode);
mode = new Mode("MSSQLServer");
mode.squareBracketQuotedNames = true;
mode.uniqueIndexSingleNull = true;
add(mode);
mode = new Mode("Derby");
mode.uniqueIndexSingleNull = true;
add(mode);
mode = new Mode("Oracle");
mode.uniqueIndexSingleNull = true;
add(mode);
}
......
......@@ -237,7 +237,10 @@ public abstract class BaseIndex extends SchemaObjectBase implements Index {
return 0;
}
public boolean isNull(Row newRow) {
public boolean containsNullAndAllowMultipleNull(Session session, Row newRow) {
if (session.getDatabase().getMode().uniqueIndexSingleNull) {
return false;
}
for (int i = 0; i < columns.length; i++) {
int index = columnIds[i];
Value v = newRow.getValue(index);
......
......@@ -63,7 +63,7 @@ public class BtreeLeaf extends BtreePage {
int comp = index.compareRows(row, newRow);
if (comp == 0) {
if (index.indexType.getUnique()) {
if (!index.isNull(newRow)) {
if (!index.containsNullAndAllowMultipleNull(session, newRow)) {
throw index.getDuplicateKeyException();
}
}
......
......@@ -83,7 +83,7 @@ public class BtreeNode extends BtreePage {
int comp = index.compareRows(row, newRow);
if (comp == 0) {
if (index.indexType.getUnique()) {
if (!index.isNull(newRow)) {
if (!index.containsNullAndAllowMultipleNull(session, newRow)) {
throw index.getDuplicateKeyException();
}
}
......
......@@ -179,12 +179,15 @@ public interface Index extends SchemaObject {
int compareRows(SearchRow rowData, SearchRow compare) throws SQLException;
/**
* Check if a row is NULL.
* Check if one of the columns is NULL and multiple rows with NULL are
* allowed using the current compatibility mode for unique indexes. Note:
* NULL behavior is complicated in SQL.
*
* @param newRow
* @return if it is null
* @return true if one of the columns is null and multiple nulls in unique
* indexes are allowed
*/
boolean isNull(Row newRow);
boolean containsNullAndAllowMultipleNull(Session session, Row newRow);
/**
* Compare the positions of two rows.
......
......@@ -237,8 +237,8 @@ public class MultiVersionIndex implements Index {
return base.getType();
}
public boolean isNull(Row newRow) {
return base.isNull(newRow);
public boolean containsNullAndAllowMultipleNull(Session session, Row newRow) {
return base.containsNullAndAllowMultipleNull(session, newRow);
}
public void removeChildrenAndResources(Session session) throws SQLException {
......
......@@ -53,7 +53,7 @@ public class TreeIndex extends BaseIndex {
int compare = compareRows(row, r);
if (compare == 0) {
if (indexType.getUnique()) {
if (!isNull(row)) {
if (!containsNullAndAllowMultipleNull(session, row)) {
throw getDuplicateKeyException();
}
}
......
......@@ -170,7 +170,7 @@ public class JdbcConnectionPool implements DataSource {
*
* @return a new Connection object.
* @throws SQLException when a new connection could not be established,
* or a timeout occured
* or a timeout occurred
*/
public Connection getConnection() throws SQLException {
for (int i = 0;; i++) {
......
......@@ -52,10 +52,10 @@ public interface DataHandler {
int getChecksum(byte[] data, int start, int end);
/**
* Check if the simulated power failure occured.
* Check if the simulated power failure occurred.
* This call will decrement the countdown.
*
* @throws SQLException if the simulated power failure occured
* @throws SQLException if the simulated power failure occurred
*/
void checkPowerOff() throws SQLException;
......
......@@ -105,7 +105,7 @@ public abstract class Table extends SchemaObjectBase {
* @param session the session
* @param exclusive true for write locks, false for read locks
* @param force lock even in the MVCC mode
* @throws SQLException if a lock timeout occured
* @throws SQLException if a lock timeout occurred
*/
public abstract void lock(Session session, boolean exclusive, boolean force) throws SQLException;
......@@ -871,7 +871,7 @@ public abstract class Table extends SchemaObjectBase {
}
/**
* Check if a deadlock occured. This method is called recursively. There is
* Check if a deadlock occurred. This method is called recursively. There is
* a circle if the session to be tested for is the same as the originating
* session (the 'clash session'). In this case the method must return an
* empty object array. Once a deadlock has been detected, the methods must
......
......@@ -61,7 +61,7 @@ public class IOUtils {
* @param skip the number of bytes to skip
* @throws EOFException if the end of file has been reached before all bytes
* could be skipped
* @throws IOException if an IO exception occured while skipping
* @throws IOException if an IO exception occurred while skipping
*/
public static void skipFully(InputStream in, long skip) throws IOException {
while (skip > 0) {
......@@ -80,7 +80,7 @@ public class IOUtils {
* @param skip the number of characters to skip
* @throws EOFException if the end of file has been reached before all
* characters could be skipped
* @throws IOException if an IO exception occured while skipping
* @throws IOException if an IO exception occurred while skipping
*/
public static void skipFully(Reader reader, long skip) throws IOException {
while (skip > 0) {
......
......@@ -18,7 +18,7 @@ public interface JdbcConnectionListener {
// TODO pooled connection: make sure
// fatalErrorOccurred is called in the right situations
/**
* A fatal error occured.
* A fatal error occurred.
*
* @param conn the connection
* @param e the exception
......
......@@ -575,8 +575,8 @@ public class DataType {
/**
* Convert a SQL type to a value type.
*
* @param the SQL type
* @return type the value type
* @param sqlType the SQL type
* @return the value type
*/
public static int convertSQLTypeToValueType(int sqlType) throws SQLException {
switch(sqlType) {
......
......@@ -133,8 +133,8 @@ public class Transfer {
* @param x the value
* @return itself
*/
public Transfer writeInt(int i) throws IOException {
out.writeInt(i);
public Transfer writeInt(int x) throws IOException {
out.writeInt(x);
return this;
}
......@@ -153,8 +153,8 @@ public class Transfer {
* @param x the value
* @return itself
*/
public Transfer writeLong(long i) throws IOException {
out.writeLong(i);
public Transfer writeLong(long x) throws IOException {
out.writeLong(x);
return this;
}
......
......@@ -102,7 +102,7 @@ INSERT INTO ITEM VALUES(41,
</li></ul>
<b>Bugfixes:</b>
<ul><li>Sometimes an exception ''File ID mismatch'' or ''try to add a record twice''
occured after large records (8 KB or larger) are updated or deleted.
occurred after large records (8 KB or larger) are updated or deleted.
See also http://code.google.com/p/h2database/issues/detail?id=22
</li><li>H2 Console: The tools can now be translated
(it didn''t work in the last release).
......@@ -186,7 +186,7 @@ INSERT INTO ITEM VALUES(39,
</li><li>TRACE_LEVEL_ settings are no longer persistent.
</li></ul>
<b>Bugfixes:</b>
<ul><li>When a log file switch occured in the middle of certain operations,
<ul><li>When a log file switch occurred in the middle of certain operations,
the database could not be started normally (RECOVER=1 was required).
</li><li>Altering a sequence didn''t unlock the system table with autocommit disabled.
</li><li>CSVWRITE caused a NullPointerException when not specifying a nullString.
......
......@@ -593,7 +593,7 @@ Roadmap:
}
}
public void beforeTest() throws SQLException {
void beforeTest() throws SQLException {
DeleteDbFiles.execute(TestBase.baseDir, null, true);
FileSystemDisk.getInstance().deleteRecursive("trace.db");
if (networked) {
......@@ -609,7 +609,7 @@ Roadmap:
}
}
public void afterTest() throws SQLException {
private void afterTest() throws SQLException {
FileSystemDisk.getInstance().deleteRecursive("trace.db");
if (networked && server != null) {
server.stop();
......
......@@ -37,8 +37,11 @@ public abstract class TestBase {
protected TestAll config;
private long start;
// private static final String BASE_TEST_DIR =
// System.getProperty("java.io.tmpdir") + "/h2";
/**
* Get the test directory for this test.
*
* @param name the directory name suffix
*/
public static String getTestDir(String name) {
return BASE_TEST_DIR + "/test" + name;
}
......@@ -47,6 +50,12 @@ public abstract class TestBase {
config.beforeTest();
}
/**
* Initialize the test configuration.
*
* @param conf the configuration
* @return itself
*/
public TestBase init(TestAll conf) throws Exception {
baseDir = getTestDir("");
this.config = conf;
......@@ -62,6 +71,13 @@ public abstract class TestBase {
// do nothing
}
/**
* This method is initializes the test, runs the test by calling the test()
* method, and prints status information. It also catches exceptions so that
* the tests can continue.
*
* @param conf the test configuration
*/
public void runTest(TestAll conf) {
try {
init(conf);
......@@ -77,10 +93,25 @@ public abstract class TestBase {
}
}
/**
* Open a database connection in admin mode. The default user name and
* password is used.
*
* @param name the database name
* @return the connection
*/
public Connection getConnection(String name) throws Exception {
return getConnectionInternal(getURL(name, true), getUser(), getPassword());
}
/**
* Open a database connection.
*
* @param name the database name
* @param user the user name to use
* @param password the password to use
* @return the connection
*/
protected Connection getConnection(String name, String user, String password) throws Exception {
return getConnectionInternal(getURL(name, false), user, password);
}
......@@ -194,6 +225,11 @@ public abstract class TestBase {
trace("" + x);
}
/**
* Write a message to system out if trace is enabled.
*
* @param s the message to write
*/
public void trace(String s) {
if (config.traceTest) {
println(s);
......@@ -206,6 +242,13 @@ public abstract class TestBase {
}
}
/**
* Print the currently used memory, the message and the given time in
* milliseconds.
*
* @param s the message
* @param time the time in millis
*/
public void printTimeMemory(String s, long time) {
if (config.big) {
println(getMemoryUsed() + " MB: " + s + " ms: " + time);
......@@ -236,6 +279,12 @@ public abstract class TestBase {
throw new Exception(string);
}
/**
* Log an error message.
*
* @param s the message
* @param e the exception
*/
public static void logError(String s, Throwable e) {
if (e == null) {
e = new Exception(s);
......@@ -281,14 +330,34 @@ public abstract class TestBase {
DeleteDbFiles.execute(dir, name, true);
}
/**
* This method will be called by the test framework.
*
* @throws Exception if an exception in the test occurs
*/
public abstract void test() throws Exception;
/**
* Check if two values are equal, and if not throw an exception.
*
* @param message the message to print in case of error
* @param expected the expected value
* @param actual the actual value
* @throws Exception if the values are not equal
*/
public void assertEquals(String message, int expected, int actual) throws Exception {
if (expected != actual) {
fail("Expected: " + expected + " actual: " + actual + " message: " + message);
}
}
/**
* Check if two values are equal, and if not throw an exception.
*
* @param expected the expected value
* @param actual the actual value
* @throws Exception if the values are not equal
*/
public void assertEquals(int expected, int actual) throws Exception {
if (expected != actual) {
fail("Expected: " + expected + " actual: " + actual);
......
......@@ -55,19 +55,19 @@ public class Coverage {
*
* @param args the command line parameters
*/
public static void main(String[] arg) {
new Coverage().run(arg);
public static void main(String[] args) {
new Coverage().run(args);
}
void run(String[] arg) {
if (arg.length == 0 || arg[0].equals("-?")) {
void run(String[] args) {
if (args.length == 0 || args[0].equals("-?")) {
printUsage();
return;
}
Coverage c = new Coverage();
int recurse = 1;
for (int i = 0; i < arg.length; i++) {
String s = arg[i];
for (int i = 0; i < args.length; i++) {
String s = args[i];
if (s.equals("-r")) {
// maximum recurse is 100 subdirectories, that should be enough
recurse = 100;
......@@ -76,7 +76,7 @@ public class Coverage {
} else if (s.equals("-f")) {
c.perFunction = true;
} else if (s.equals("-e")) {
c.addExclude(arg[++i]);
c.addExclude(args[++i]);
} else {
c.addDir(s, recurse);
}
......
......@@ -39,6 +39,15 @@ public class Db {
}
}
/**
* Open the database connection. For most databases, it is not required to
* load the driver before calling this method.
*
* @param url the database URL
* @param user the user name
* @param password the password
* @return the database
*/
public static Db open(String url, String user, String password) {
try {
JdbcDriverUtils.load(url);
......@@ -48,6 +57,12 @@ public class Db {
}
}
/**
* Prepare a SQL statement.
*
* @param sql the SQL statement
* @return the prepared statement
*/
public Prepared prepare(String sql) {
try {
PreparedStatement prep = (PreparedStatement) prepared.get(sql);
......@@ -61,6 +76,11 @@ public class Db {
}
}
/**
* Execute a SQL statement.
*
* @param sql the SQL statement
*/
public void execute(String sql) {
try {
stat.execute(sql);
......@@ -69,6 +89,9 @@ public class Db {
}
}
/**
* Close the database connection.
*/
public void close() {
try {
conn.close();
......@@ -88,6 +111,11 @@ public class Db {
this.prep = prep;
}
/**
* Set the value of the current parameter.
*
* @param x the value
*/
public Prepared set(int x) {
try {
prep.setInt(++index, x);
......@@ -97,6 +125,11 @@ public class Db {
}
}
/**
* Set the value of the current parameter.
*
* @param x the value
*/
public Prepared set(String x) {
try {
prep.setString(++index, x);
......@@ -106,6 +139,11 @@ public class Db {
}
}
/**
* Set the value of the current parameter.
*
* @param x the value
*/
public Prepared set(byte[] x) {
try {
prep.setBytes(++index, x);
......@@ -115,6 +153,11 @@ public class Db {
}
}
/**
* Set the value of the current parameter.
*
* @param x the value
*/
public Prepared set(InputStream x) {
try {
prep.setBinaryStream(++index, x, -1);
......@@ -124,6 +167,9 @@ public class Db {
}
}
/**
* Execute the prepared statement.
*/
public void execute() {
try {
prep.execute();
......@@ -145,6 +191,9 @@ public class Db {
}
}
/**
* Commit a pending transaction.
*/
public void commit() {
try {
conn.commit();
......
......@@ -8,6 +8,7 @@ package org.h2.test.db;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Statement;
import org.h2.test.TestBase;
......@@ -23,6 +24,7 @@ public class TestCompatibility extends TestBase {
deleteDb("compatibility");
conn = getConnection("compatibility");
testUniqueIndexSingleNull();
testHsqlDb();
testMySQL();
......@@ -30,6 +32,25 @@ public class TestCompatibility extends TestBase {
}
private void testUniqueIndexSingleNull() throws Exception {
Statement stat = conn.createStatement();
String[] modes = new String[] { "PostgreSQL", "MySQL", "HSQLDB", "MSSQLServer", "Derby", "Oracle", "Regular" };
String multiNull = "PostgreSQL,MySQL,Regular";
for (int i = 0; i < modes.length; i++) {
String mode = modes[i];
stat.execute("SET MODE " + mode);
stat.execute("CREATE TABLE TEST(ID INT)");
stat.execute("CREATE UNIQUE INDEX IDX_ID_U ON TEST(ID)");
try {
stat.execute("INSERT INTO TEST VALUES(1), (2), (NULL), (NULL)");
assertTrue(mode + " mode should not support multiple NULL", multiNull.indexOf(mode) >= 0);
} catch (SQLException e) {
assertTrue(mode + " mode should support multiple NULL", multiNull.indexOf(mode) < 0);
}
stat.execute("DROP TABLE TEST");
}
}
private void testHsqlDb() throws Exception {
Statement stat = conn.createStatement();
stat.execute("DROP TABLE TEST IF EXISTS; CREATE TABLE TEST(ID INT PRIMARY KEY); ");
......
......@@ -120,31 +120,52 @@ public class TestFunctionOverload extends TestBase {
stat.close();
}
/**
* This method is called via reflection from the database.
*/
public static int overload0() {
return 0;
}
/**
* This method is called via reflection from the database.
*/
public static int overload1or2(int one) {
return one;
}
/**
* This method is called via reflection from the database.
*/
public static int overload1or2(int one, int two) {
return one + two;
}
/**
* This method is called via reflection from the database.
*/
public static int overload1or2WithConn(Connection conn, int one) throws SQLException {
conn.createStatement().executeQuery("select 1 from dual");
return one;
}
/**
* This method is called via reflection from the database.
*/
public static int overload1or2WithConn(int one, int two) {
return one + two;
}
/**
* This method is called via reflection from the database.
*/
public static int overloadError(int one, int two) {
return one + two;
}
/**
* This method is called via reflection from the database.
*/
public static int overloadError(double one, double two) {
return (int) (one + two);
}
......
......@@ -269,6 +269,9 @@ public class TestFunctions extends TestBase {
assertEquals(value, s);
}
/**
* This method is called via reflection from the database.
*/
public static BufferedInputStream blob2stream(Blob value) throws SQLException {
if (value == null) {
return null;
......@@ -277,6 +280,9 @@ public class TestFunctions extends TestBase {
return bufferedInStream;
}
/**
* This method is called via reflection from the database.
*/
public static BufferedInputStream stream2stream(InputStream value) {
if (value == null) {
return null;
......@@ -285,6 +291,9 @@ public class TestFunctions extends TestBase {
return bufferedInStream;
}
/**
* This method is called via reflection from the database.
*/
public static int addRow(Connection conn, int id, String name) throws SQLException {
conn.createStatement().execute("INSERT INTO TEST VALUES(" + id + ", '" + name + "')");
ResultSet rs = conn.createStatement().executeQuery("SELECT COUNT(*) FROM TEST");
......@@ -294,19 +303,31 @@ public class TestFunctions extends TestBase {
return result;
}
/**
* This method is called via reflection from the database.
*/
public static ResultSet select(Connection conn, String sql) throws SQLException {
Statement stat = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
return stat.executeQuery(sql);
}
/**
* This method is called via reflection from the database.
*/
public static ResultSet selectMaxId(Connection conn) throws SQLException {
return conn.createStatement().executeQuery("SELECT MAX(ID) FROM TEST");
}
/**
* This method is called via reflection from the database.
*/
public static Object[] getArray() {
return new Object[] { new Integer(0), "Hello" };
}
/**
* This method is called via reflection from the database.
*/
public static ResultSet nullResultSet(Connection conn) throws SQLException {
PreparedStatement statement = conn.prepareStatement("select null from system_range(1,1)");
return statement.executeQuery();
......@@ -349,6 +370,9 @@ public class TestFunctions extends TestBase {
return rs;
}
/**
* This method is called via reflection from the database.
*/
public static int root(int value) {
if (value < 0) {
TestBase.logError("function called but should not", null);
......
......@@ -131,6 +131,14 @@ public class TestMultiDimension extends TestBase {
conn.close();
}
/**
* This method is called via reflection from the database.
*
* @param x the x value
* @param y the y value
* @param z the z value
* @return the bit-interleaved value
*/
public static long interleave(int x, int y, int z) {
return MultiDimension.getInstance().interleave(new int[] { x, y, z });
}
......
......@@ -24,7 +24,13 @@ public class TestOpenClose extends TestBase implements DatabaseEventListener {
int nextId = 10;
public static void main(String[] a) throws Exception {
/**
* This method is called when executing this application from the command
* line.
*
* @param args the command line parameters
*/
public static void main(String[] args) throws Exception {
new TestOpenClose().test();
}
......
......@@ -65,7 +65,7 @@ public class TestRights extends TestBase {
conn.close();
}
public void testSchemaRenameUser() throws Exception {
void testSchemaRenameUser() throws Exception {
if (config.memory) {
return;
}
......@@ -98,7 +98,7 @@ public class TestRights extends TestBase {
conn.close();
}
public void testAccessRights() throws Exception {
void testAccessRights() throws Exception {
if (config.memory) {
return;
}
......@@ -246,7 +246,7 @@ public class TestRights extends TestBase {
executeSuccess("DROP TABLE TEST");
}
public void executeError(String sql) throws Exception {
void executeError(String sql) throws Exception {
try {
stat.execute(sql);
fail("not admin");
......@@ -255,7 +255,7 @@ public class TestRights extends TestBase {
}
}
public void executeSuccess(String sql) throws Exception {
void executeSuccess(String sql) throws Exception {
if (stat.execute(sql)) {
ResultSet rs = stat.getResultSet();
......
......@@ -23,6 +23,12 @@ public class TestRunscript extends TestBase implements Trigger {
test(true);
}
/**
* This method is called via reflection from the database.
*
* @param a the value
* @return the absolute value
*/
public static int test(int a) {
return Math.abs(a);
}
......
......@@ -153,6 +153,9 @@ public class TestCancel extends TestBase {
}
}
/**
* This method is called via reflection from the database.
*/
public static int visit(int x) {
lastVisited = x;
return x;
......
......@@ -84,6 +84,11 @@ public class TestXid implements Xid {
}
}
/**
* This method is called when executing this application.
*
* @param args the command line parameters
*/
public static void main(String[] args) {
new TestXid();
}
......
......@@ -19,6 +19,12 @@ public class Listener implements Runnable {
volatile int maxValue;
/**
* This method is called when executing this application from the command
* line.
*
* @param args the command line parameters
*/
public static void main(String[] args) throws Exception {
new Listener().test(args);
}
......
......@@ -85,6 +85,12 @@ public class Test {
}
}
/**
* This method is called when executing this application from the command
* line.
*
* @param args the command line parameters
*/
public static void main(String[] args) throws Exception {
new Test().test(args);
}
......
......@@ -56,6 +56,12 @@ public class TestRecover {
// System.getProperty("test.driver",
// "org.apache.derby.jdbc.EmbeddedDriver");
/**
* This method is called when executing this application from the command
* line.
*
* @param args the command line parameters
*/
public static void main(String[] args) throws Exception {
new TestRecover().runTest();
}
......
......@@ -25,6 +25,12 @@ public class TestWrite {
// utility class
}
/**
* This method is called when executing this application from the command
* line.
*
* @param args the command line parameters
*/
public static void main(String[] args) throws Exception {
testFile("rw", false);
testFile("rwd", false);
......
......@@ -49,7 +49,7 @@ public class WebClient {
this.sessionId = id;
}
public String get(String url, String page) throws IOException {
String get(String url, String page) throws IOException {
if (sessionId != null) {
if (page.indexOf('?') < 0) {
page += "?";
......
......@@ -44,7 +44,7 @@ import org.h2.util.RandomUtils;
*/
public class TestCrashAPI extends TestBase {
public static final Class[] INTERFACES = { Connection.class, PreparedStatement.class, Statement.class,
private static final Class[] INTERFACES = { Connection.class, PreparedStatement.class, Statement.class,
ResultSet.class, ResultSetMetaData.class, Savepoint.class,
ParameterMetaData.class, Clob.class, Blob.class, Array.class, CallableStatement.class };
......
......@@ -229,7 +229,7 @@ public abstract class TestHalt extends TestBase {
}
}
public void disconnectHSQLDB() {
void disconnectHSQLDB() {
try {
conn.createStatement().execute("SHUTDOWN");
} catch (Exception e) {
......@@ -238,7 +238,7 @@ public abstract class TestHalt extends TestBase {
// super.disconnect();
}
public void disconnectDerby() {
void disconnectDerby() {
// super.disconnect();
try {
Class.forName("org.apache.derby.jdbc.EmbeddedDriver");
......
......@@ -20,6 +20,12 @@ public class TestHaltApp extends TestHalt {
private int rowCount;
/**
* This method is called when executing this application from the command
* line.
*
* @param args the command line parameters
*/
public static void main(String[] args) throws Exception {
SelfDestructor.startCountdown(60);
baseDir = TestHalt.DIR;
......
......@@ -25,6 +25,11 @@ public class TestKillProcess {
// utility class
}
/**
* This method is called when executing this application.
*
* @param args the command line parameters
*/
public static void main(String[] args) throws Exception {
SelfDestructor.startCountdown(60);
try {
......
......@@ -62,6 +62,12 @@ public class TestKillRestart extends TestBase {
}
}
/**
* This method is called when executing this application from the command
* line.
*
* @param args the command line parameters
*/
public static void main(String[] args) throws Exception {
SelfDestructor.startCountdown(60);
String driver = "org.h2.Driver";
......
......@@ -113,6 +113,12 @@ public class TestKillRestartMulti extends TestBase {
}
}
/**
* This method is called when executing this application from the command
* line.
*
* @param args the command line parameters
*/
public static void main(String[] args) throws Exception {
SelfDestructor.startCountdown(60);
new TestKillRestartMulti().test(args);
......
......@@ -13,26 +13,78 @@ import java.sql.SQLException;
*/
public interface DbInterface {
/**
* Drop all objects in the database.
*/
void reset() throws SQLException;
/**
* Connect to the database.
*/
void connect() throws Exception;
/**
* Disconnect from the database.
*/
void disconnect() throws SQLException;
/**
* Close the connection and the database.
*/
void end() throws SQLException;
/**
* Create the specified table.
*
* @param table the table to create
*/
void createTable(Table table) throws SQLException;
/**
* Drop the specified table.
*
* @param table the table to drop
*/
void dropTable(Table table) throws SQLException;
/**
* Create an index.
*
* @param index the index to create
*/
void createIndex(Index index) throws SQLException;
/**
* Drop an index.
*
* @param index the index to drop
*/
void dropIndex(Index index) throws SQLException;
/**
* Insert a row into a table.
*
* @param table the table
* @param c the column list
* @param v the values
* @return the result
*/
Result insert(Table table, Column[] c, Value[] v) throws SQLException;
/**
* Execute a query.
*
* @param sql the SQL statement
*/
Result select(String sql) throws SQLException;
/**
* Delete a number of rows.
*
* @param table the table
* @param condition the condition
* @return the result
*/
Result delete(Table table, String condition) throws SQLException;
/**
......@@ -46,9 +98,20 @@ public interface DbInterface {
*/
Result update(Table table, Column[] columns, Value[] values, String condition) throws SQLException;
/**
* Enable or disable autocommit.
*
* @param b the new value
*/
void setAutoCommit(boolean b) throws SQLException;
/**
* Commit a pending transaction.
*/
void commit() throws SQLException;
/**
* Roll back a pending transaction.
*/
void rollback() throws SQLException;
}
......@@ -80,7 +80,7 @@ public class DbState implements DbInterface {
// nothing to do
}
public Table randomTable() {
Table randomTable() {
if (tables.size() == 0) {
return null;
}
......
......@@ -26,7 +26,7 @@ public class Expression {
sql = "";
}
public static String[] getRandomSelectList(TestSynth config, Command command) {
static String[] getRandomSelectList(TestSynth config, Command command) {
if (config.random().getBoolean(30)) {
return new String[] { "*" };
}
......@@ -47,7 +47,7 @@ public class Expression {
return list;
}
public static Expression getRandomCondition(TestSynth config, Command command) {
static Expression getRandomCondition(TestSynth config, Command command) {
Expression condition = new Expression(config, command, true);
if (config.random().getBoolean(50)) {
condition.create();
......@@ -55,7 +55,7 @@ public class Expression {
return condition;
}
public static Expression getRandomExpression(TestSynth config, Command command) {
static Expression getRandomExpression(TestSynth config, Command command) {
Expression expression = new Expression(config, command, false);
String alias = command.getRandomTableAlias();
Column column = command.getTable(alias).getRandomConditionColumn();
......@@ -72,13 +72,13 @@ public class Expression {
sql = v.getSQL();
}
public static Expression getRandomJoinOn(TestSynth config, Command command, String alias) {
static Expression getRandomJoinOn(TestSynth config, Command command, String alias) {
Expression expression = new Expression(config, command, true);
expression.createJoinComparison(alias);
return expression;
}
public static String getRandomOrder(TestSynth config, Command command) {
static String getRandomOrder(TestSynth config, Command command) {
int len = config.random().getLog(6);
String sql = "";
for (int i = 0; i < len; i++) {
......@@ -104,7 +104,7 @@ public class Expression {
return sql;
}
public String getSQL() {
String getSQL() {
return sql.trim().length() == 0 ? null : sql.trim();
}
......@@ -250,7 +250,7 @@ public class Expression {
}
}
public boolean isEmpty() {
boolean isEmpty() {
return sql == null || sql.trim().length() == 0;
}
......
......@@ -17,18 +17,38 @@ import java.util.Random;
public class RandomGen {
private Random random = new Random();
/**
* Create a new random instance with a fixed seed value.
*/
public RandomGen() {
random.setSeed(12);
}
/**
* Get the next integer that is smaller than max.
*
* @param max the upper limit (exclusive)
* @return the random value
*/
public int getInt(int max) {
return max == 0 ? 0 : random.nextInt(max);
}
/**
* Get the next gaussian value.
*
* @return the value
*/
public double nextGaussian() {
return random.nextGaussian();
}
/**
* Get the next random value that is at most max but probably much lower.
*
* @param max the maximum value
* @return the value
*/
public int getLog(int max) {
if (max == 0) {
return 0;
......@@ -41,14 +61,31 @@ public class RandomGen {
}
}
/**
* Get a number of random bytes.
*
* @param data the target buffer
*/
public void getBytes(byte[] data) {
random.nextBytes(data);
}
/**
* Get a boolean that is true with the given probability in percent.
*
* @param percent the probability
* @return the boolean value
*/
public boolean getBoolean(int percent) {
return random.nextInt(100) <= percent;
}
/**
* Get a random string with the given length.
*
* @param len the length
* @return the string
*/
public String randomString(int len) {
StringBuffer buff = new StringBuffer();
for (int i = 0; i < len; i++) {
......@@ -58,6 +95,16 @@ public class RandomGen {
return buff.toString();
}
/**
* Get a random integer. In 10% of the cases, Integer.MAX_VALUE is returned,
* in 10% of the cases Integer.MIN_VALUE. Also in the 10% of the cases, a
* random value between those extremes is returned. In 20% of the cases,
* this method returns 0. In 10% of the cases, a gaussian value in the range
* -200 and +1800 is returned. In all other cases, a gaussian value in the
* range -5 and +20 is returned.
*
* @return the random value
*/
public int getRandomInt() {
switch (random.nextInt(10)) {
case 0:
......@@ -76,6 +123,11 @@ public class RandomGen {
}
}
/**
* Get a random long. The algorithm is similar to a random int.
*
* @return the random value
*/
public long getRandomLong() {
switch (random.nextInt(10)) {
case 0:
......@@ -94,6 +146,11 @@ public class RandomGen {
}
}
/**
* Get a random double. The algorithm is similar to a random int.
*
* @return the random value
*/
public double getRandomDouble() {
switch (random.nextInt(10)) {
case 0:
......@@ -116,10 +173,20 @@ public class RandomGen {
}
}
/**
* Get a random boolean.
*
* @return the random value
*/
public boolean nextBoolean() {
return random.nextBoolean();
}
/**
* Get a random integer array. In 10% of the cases, null is returned.
*
* @return the array
*/
public int[] getIntArray() {
switch (random.nextInt(10)) {
case 0:
......@@ -134,7 +201,12 @@ public class RandomGen {
}
}
public Object getByteArray() {
/**
* Get a random byte array. In 10% of the cases, null is returned.
*
* @return the array
*/
public byte[] getByteArray() {
switch (random.nextInt(10)) {
case 0:
return null;
......@@ -146,6 +218,11 @@ public class RandomGen {
}
}
/**
* Get a random time value. In 10% of the cases, null is returned.
*
* @return the value
*/
public Time randomTime() {
if (random.nextInt(10) == 0) {
return null;
......@@ -160,6 +237,11 @@ public class RandomGen {
}
/**
* Get a random timestamp value. In 10% of the cases, null is returned.
*
* @return the value
*/
public Timestamp randomTimestamp() {
if (random.nextInt(10) == 0) {
return null;
......@@ -200,6 +282,11 @@ public class RandomGen {
return Timestamp.valueOf(buff.toString());
}
/**
* Get a random date value. In 10% of the cases, null is returned.
*
* @return the value
*/
public Date randomDate() {
if (random.nextInt(10) == 0) {
return null;
......@@ -213,6 +300,12 @@ public class RandomGen {
return Date.valueOf(buff.toString());
}
/**
* Randomly modify a SQL statement.
*
* @param sql the original SQL statement
* @return the modified statement
*/
public String modify(String sql) {
int len = getLog(10);
for (int i = 0; i < len; i++) {
......@@ -233,6 +326,11 @@ public class RandomGen {
return sql;
}
/**
* Set the seed value.
*
* @param seed the new seed value
*/
public void setSeed(int seed) {
random.setSeed(seed);
}
......
......@@ -32,15 +32,15 @@ public class TestSynth extends TestBase {
private boolean stopImmediately;
private int mode;
public boolean is(int isType) {
boolean is(int isType) {
return mode == isType;
}
public RandomGen random() {
RandomGen random() {
return random;
}
public String randomIdentifier() {
String randomIdentifier() {
int len = random.getLog(8) + 2;
while (true) {
return random.randomString(len);
......@@ -193,11 +193,11 @@ public class TestSynth extends TestBase {
}
}
public Table randomTable() {
Table randomTable() {
return db.randomTable();
}
public void log(int id, String s) {
void log(int id, String s) {
if (showLog && id == 0) {
System.out.println(s);
}
......
......@@ -127,7 +127,7 @@ public class Value {
return buff.toString();
}
public static Value read(TestSynth config, ResultSet rs, int index) throws SQLException {
static Value read(TestSynth config, ResultSet rs, int index) throws SQLException {
ResultSetMetaData meta = rs.getMetaData();
Object data;
int type = meta.getColumnType(index);
......@@ -263,7 +263,7 @@ public class Value {
return new BigDecimal(buff.toString());
}
public int compareTo(Object o) {
int compareTo(Object o) {
Value v = (Value) o;
if (type != v.type) {
throw new Error("compare " + type + " " + v.type + " " + data + " " + v.data);
......
......@@ -64,6 +64,12 @@ public class TestExit extends TestBase implements DatabaseEventListener {
}
}
/**
* This method is called when executing this application from the command
* line.
*
* @param args the command line parameters
*/
public static void main(String[] args) throws Exception {
SelfDestructor.startCountdown(60);
if (args.length == 0) {
......
......@@ -24,7 +24,7 @@ public class TestIntIntHashMap extends TestBase {
test(false);
}
public void test(boolean random) throws Exception {
void test(boolean random) throws Exception {
int len = 2000;
int[] x = new int[len];
for (int i = 0; i < len; i++) {
......
......@@ -22,6 +22,12 @@ public class TestStringCache extends TestBase {
private boolean returnNew;
private boolean useIntern;
/**
* This method is called when executing this application from the command
* line.
*
* @param args the command line parameters
*/
public static void main(String[] args) throws Exception {
new TestStringCache().runBenchmark();
}
......
......@@ -25,11 +25,17 @@ public class Build extends BuildBase {
new Build().run(args);
}
/**
* Create the jar file and generate the documentation.
*/
public void all() {
jar();
docs();
}
/**
* Run the benchmarks.
*/
public void benchmark() {
download("ext/hsqldb-1.8.0.7.jar",
"http://repo1.maven.org/maven2/hsqldb/hsqldb/1.8.0.7/hsqldb-1.8.0.7.jar",
......@@ -66,6 +72,9 @@ public class Build extends BuildBase {
exec("java", new String[]{"-Xmx128m", "-cp", cp, "org.h2.test.bench.TestPerformance", "-db", "8", "-out", "ps.html"});
}
/**
* Clean all jar files, classes, and generated documentation.
*/
public void clean() {
delete("temp");
delete("docs");
......@@ -73,6 +82,9 @@ public class Build extends BuildBase {
mkdir("bin");
}
/**
* Compile all classes
*/
public void compile() {
compile(true, false);
}
......@@ -126,6 +138,10 @@ public class Build extends BuildBase {
}
}
/**
* Create the documentation from the documentation sources. API Javadocs are
* created as well.
*/
public void docs() {
javadoc();
copy("docs", getFiles("src/docsrc/index.html"), "src/docsrc");
......@@ -143,6 +159,10 @@ public class Build extends BuildBase {
beep();
}
/**
* Download all required jar files. Actually those are only compile time
* dependencies. The database can be used without any dependencies.
*/
public void download() {
download("ext/servlet-api-2.4.jar",
"http://repo1.maven.org/maven2/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar",
......@@ -159,6 +179,9 @@ public class Build extends BuildBase {
return getStaticValue("org.h2.engine.Constants", "getVersion");
}
/**
* Create the regular h2.jar file.
*/
public void jar() {
compile();
manifest("org.h2.tools.Console");
......@@ -173,6 +196,10 @@ public class Build extends BuildBase {
jar("bin/h2.jar", files, "temp");
}
/**
* Create the h2client.jar. This only contains the remote JDBC
* implementation.
*/
public void jarClient() {
compile(true, true);
FileList files = getFiles("temp").
......@@ -186,6 +213,9 @@ public class Build extends BuildBase {
jar("bin/h2client.jar", files, "temp");
}
/**
* Create the file h2small.jar. This only contains the embedded database.
*/
public void jarSmall() {
compile(false, false);
FileList files = getFiles("temp").
......@@ -204,6 +234,9 @@ public class Build extends BuildBase {
jar("bin/h2small.jar", files, "temp");
}
/**
* Create the Javadocs of the API (including the JDBC API) and tools.
*/
public void javadoc() {
delete("docs");
mkdir("docs/javadoc");
......@@ -213,6 +246,9 @@ public class Build extends BuildBase {
copy("docs/javadoc", getFiles("src/docsrc/javadoc"), "src/docsrc/javadoc");
}
/**
* Create the Javadocs of the implementation.
*/
public void javadocImpl() {
mkdir("docs/javadocImpl");
javadoc(new String[] {
......@@ -250,6 +286,11 @@ public class Build extends BuildBase {
writeFile(new File("temp/META-INF/MANIFEST.MF"), manifest.getBytes());
}
/**
* This will build a release of the H2 .jar file and upload it to
* file:///data/h2database/m2-repo. This is only required when
* a new H2 version is made.
*/
public void mavenDeployCentral() {
jar();
String pom = new String(readFile(new File("src/installer/pom.xml")));
......@@ -266,6 +307,10 @@ public class Build extends BuildBase {
"-DgroupId=com.h2database" });
}
/**
* This will build a 'snapshot' H2 .jar file and upload it the to the local
* Maven 2 repository.
*/
public void mavenInstallLocal() {
jar();
String pom = new String(readFile(new File("src/installer/pom.xml")));
......@@ -292,10 +337,16 @@ public class Build extends BuildBase {
zip("temp/org/h2/util/data.zip", files, "src/main", true, false);
}
/**
* Just run the spellchecker.
*/
public void spellcheck() {
java("org.h2.build.doc.SpellChecker", null);
}
/**
* Create the h2.zip file.
*/
public void zip() {
delete("docs/html/onePage.html");
FileList files = getFiles("../h2").keep("../h2/build.*");
......
......@@ -287,7 +287,7 @@ public class BuildBase {
result = exec("javadoc", args);
}
if (result != 0) {
throw new Error("An error occured");
throw new Error("An error occurred");
}
}
......@@ -586,7 +586,7 @@ public class BuildBase {
result = exec("javac", args);
}
if (result != 0) {
throw new Error("An error occured");
throw new Error("An error occurred");
}
}
......
......@@ -37,6 +37,12 @@ public class GenerateDoc {
HashMap session = new HashMap();
Bnf bnf;
/**
* This method is called when executing this application from the command
* line.
*
* @param args the command line parameters
*/
public static void main(String[] args) throws Exception {
new GenerateDoc().run(args);
}
......
......@@ -31,6 +31,12 @@ public class LinkChecker {
private HashMap targets = new HashMap();
private HashMap links = new HashMap();
/**
* This method is called when executing this application from the command
* line.
*
* @param args the command line parameters
*/
public static void main(String[] args) throws Exception {
new LinkChecker().run(args);
}
......
......@@ -21,6 +21,12 @@ public class MergeDocs {
String baseDir = "docs/html";
/**
* This method is called when executing this application from the command
* line.
*
* @param args the command line parameters
*/
public static void main(String[] args) throws Exception {
new MergeDocs().run();
}
......
......@@ -40,6 +40,12 @@ public class SpellChecker {
private int errorCount;
private int contextCount;
/**
* This method is called when executing this application from the command
* line.
*
* @param args the command line parameters
*/
public static void main(String[] args) throws IOException {
String dir = "src";
new SpellChecker().run("tools/org/h2/build/doc/dictionary.txt", dir);
......
......@@ -31,6 +31,12 @@ public class WebSite {
String sourceDir = "docs";
String targetDir = "dataWeb";
/**
* This method is called when executing this application from the command
* line.
*
* @param args the command line parameters
*/
public static void main(String[] args) throws Exception {
new WebSite().run();
}
......
......@@ -8,17 +8,22 @@ package org.h2.build.doc;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;
import java.io.StringWriter;
import java.util.Stack;
import org.h2.util.IOUtils;
/**
* This class checks that the HTML and XML part of the source code
* is well-formed XML.
*/
public class XMLChecker {
/**
* This method is called when executing this application from the command
* line.
*
* @param args the command line parameters
*/
public static void main(String[] args) throws Exception {
new XMLChecker().run(args);
}
......@@ -60,7 +65,7 @@ public class XMLChecker {
}
// System.out.println("Checking file:" + fileName);
FileReader reader = new FileReader(fileName);
String s = readStringAndClose(reader, -1);
String s = IOUtils.readStringAndClose(reader, -1);
Exception last = null;
try {
checkXML(s, !suffix.equals("xml"));
......@@ -73,26 +78,6 @@ public class XMLChecker {
}
}
public static String readStringAndClose(Reader in, int length) throws IOException {
if (length <= 0) {
length = Integer.MAX_VALUE;
}
int block = Math.min(4096, length);
StringWriter out = new StringWriter(length == Integer.MAX_VALUE ? block : length);
char[] buff = new char[block];
while (length > 0) {
int len = Math.min(block, length);
len = in.read(buff, 0, len);
if (len < 0) {
break;
}
out.write(buff, 0, len);
length -= len;
}
in.close();
return out.toString();
}
private static void checkXML(String xml, boolean html) throws Exception {
// String lastElement = null;
// <li>: replace <li>([^\r]*[^<]*) with <li>$1</li>
......
......@@ -12,22 +12,60 @@ package org.h2.build.doc;
*/
public class XMLParser {
/**
* This event type means an error occurred.
*/
public static final int ERROR = 0;
/**
* This event type means a start element has been read.
*/
public static final int START_ELEMENT = 1;
/**
* This event type means an end element has been read.
*/
public static final int END_ELEMENT = 2;
/**
* This event type means a processing instruction has been read.
*/
public static final int PROCESSING_INSTRUCTION = 3;
/**
* This event type means text has been read.
*/
public static final int CHARACTERS = 4;
/**
* This event type means a comment has been read.
*/
public static final int COMMENT = 5;
public static final int SPACE = 6;
// public static final int SPACE = 6;
/**
* This event type is used before reading.
*/
public static final int START_DOCUMENT = 7;
/**
* This event type means the end of the document has been reached.
*/
public static final int END_DOCUMENT = 8;
public static final int ENTITY_REFERENCE = 9;
public static final int ATTRIBUTE = 10;
// public static final int ENTITY_REFERENCE = 9;
// public static final int ATTRIBUTE = 10;
/**
* This event type means a DTD element has been read.
*/
public static final int DTD = 11;
public static final int CDATA = 12;
public static final int NAMESPACE = 13;
public static final int NOTATION_DECLARATION = 14;
public static final int ENTITY_DECLARATION = 15;
// public static final int CDATA = 12;
// public static final int NAMESPACE = 13;
// public static final int NOTATION_DECLARATION = 14;
// public static final int ENTITY_DECLARATION = 15;
private String xml;
private int index;
......@@ -40,11 +78,22 @@ public class XMLParser {
private boolean endElement;
private boolean html;
/**
* Construct a new XML parser.
*
* @param xml the document
*/
public XMLParser(String xml) {
this.xml = xml;
eventType = START_DOCUMENT;
}
/**
* Enable or disable HTML processing. When enabled, attributes don't need to
* have values.
*
* @param html true if HTML processing is enabled.
*/
public void setHTML(boolean html) {
this.html = html;
}
......@@ -324,10 +373,20 @@ public class XMLParser {
}
}
/**
* Check if there are more tags to read.
*
* @return true if there are more tags
*/
public boolean hasNext() {
return index < xml.length();
}
/**
* Read the next tag.
*
* @return the event type of the next tag
*/
public int next() {
if (endElement) {
endElement = false;
......@@ -339,6 +398,12 @@ public class XMLParser {
return eventType;
}
/**
* Read the next start, end, or character tag. This method skips comments,
* DTDs, and processing instructions.
*
* @return the event type of the next tag
*/
public int nextTag() {
while (true) {
int type = next();
......@@ -348,36 +413,81 @@ public class XMLParser {
}
}
/**
* Get the event type of the current token.
*
* @return the event type
*/
public int getEventType() {
return eventType;
}
/**
* Get the current text.
*
* @return the text
*/
public String getText() {
return currentText;
}
/**
* Get the current token text.
*
* @return the token
*/
public String getToken() {
return currentToken;
}
/**
* Get the number of attributes.
*
* @return the attribute count
*/
public int getAttributeCount() {
return currentAttribute / 3;
}
/**
* Get the prefix of the attribute.
*
* @param index the index of the attribute (starting with 0)
* @return the prefix
*/
public String getAttributePrefix(int index) {
return attributeValues[index * 3];
}
/**
* Get the local name of the attribute.
*
* @param index the index of the attribute (starting with 0)
* @return the local name
*/
public String getAttributeLocalName(int index) {
return attributeValues[index * 3 + 1];
}
/**
* Get the full name of the attribute. If there is no prefix, only the local
* name is returned, otherwise the prefix, ':', and the local name.
*
* @param index the index of the attribute (starting with 0)
* @return the full name
*/
public String getAttributeName(int index) {
String prefix = getAttributePrefix(index);
String localName = getAttributeLocalName(index);
return prefix == null || prefix.length() == 0 ? localName : prefix + ":" + localName;
}
/**
* Get the value of this attribute.
*
* @param index the index of the attribute (starting with 0)
* @return the value
*/
public String getAttributeValue(int index) {
return attributeValues[index * 3 + 2];
}
......@@ -399,26 +509,59 @@ public class XMLParser {
return null;
}
/**
* Get the full name of the current start or end element. If there is no
* prefix, only the local name is returned, otherwise the prefix, ':', and
* the local name.
*
* @return the full name
*/
public String getName() {
return prefix == null || prefix.length() == 0 ? localName : prefix + ":" + localName;
}
/**
* Get the local name of the current start or end element.
*
* @return the local name
*/
public String getLocalName() {
return localName;
}
/**
* Get the prefix of the current start or end element.
*
* @return the prefix
*/
public String getPrefix() {
return prefix;
}
/**
* Check if the current character tag only contains spaces or other
* non-printable characters.
*
* @return if the trimmed text is empty
*/
public boolean isWhiteSpace() {
return getText().trim().length() == 0;
}
/**
* Get the remaining XML text of the document.
*
* @return the remaining XML
*/
public String getRemaining() {
return xml.substring(index);
}
/**
* Get the index of the current position.
*
* @return the position
*/
public int getPos() {
return index;
}
......
......@@ -284,7 +284,7 @@ note notes nothing notice notices notification notified notifies notify notifyin
notin notwithstanding novelist now nowait nowrap nsi nsis nsub ntext ntfs ntilde
nul null nullable nullif nulls num number numbers numeric numerical nvarchar nvl
oacute obey obj object objects obligation obligations obtain obtained obtains
occupied occupies occupy occur occured occurred occurrence occurrences occurs
occupied occupies occupy occur occurred occurrence occurrences occurs
ocirc octal octet october octype odbc odbcad odd odg off offer offered offering
offers office offset often ograve ohloh oid okay old older oldest oline oliver
omega omicron once onchange onclick one ones onfocus onkeydown onkeyup online
......@@ -520,3 +520,5 @@ overloaded decide clash involve verification dining recursively originating
philosophers technologies modeling federation enterprise semantic deductive
fusion legacy decoded commented trimmed reaches indicating marks scaled tells
monitor benefit performing conditional significant arithmetic instrumented
doclets extremes instructions printable skips sava sources cms bytecode cfml
cold compiles markup spellchecker interleaved poormans programmed swt railo
\ No newline at end of file
......@@ -37,11 +37,18 @@ public class Doclet {
private int errorCount;
private HashSet errors = new HashSet();
/**
* This method is called by the javadoc framework and is required for all
* doclets.
*
* @param root the root
* @return true if successful
*/
public static boolean start(RootDoc root) throws IOException {
return new Doclet().startDoc(root);
}
public boolean startDoc(RootDoc root) throws IOException {
boolean startDoc(RootDoc root) throws IOException {
ClassDoc[] classes = root.classes();
String[][] options = root.options();
String destDir = System.getProperty("h2.destDir", "docs/javadoc");
......
......@@ -44,6 +44,12 @@ public class PrepareTranslation {
private static final boolean AUTO_TRANSLATE = false;
private static final String[] EXCLUDE = { "datatypes.html", "functions.html", "grammar.html" };
/**
* This method is called when executing this application from the command
* line.
*
* @param args the command line parameters
*/
public static void main(String[] args) throws Exception {
new PrepareTranslation().run();
}
......
......@@ -38,6 +38,12 @@ public class PropertiesToUTF8 {
// utility class
}
/**
* This method is called when executing this application from the command
* line.
*
* @param args the command line parameters
*/
public static void main(String[] args) throws Exception {
convert("bin/org/h2/res");
convert("bin/org/h2/server/web/res");
......
......@@ -66,6 +66,12 @@ public class HtmlConverter {
}
}
/**
* Convert a string to HTML by encoding all required characters.
*
* @param s the string
* @return the HTML text
*/
public static String convertStringToHtml(String s) {
if (s == null) {
return null;
......@@ -96,6 +102,12 @@ public class HtmlConverter {
return buff.toString();
}
/**
* Convert a HTML encoded text to a string.
*
* @param html the HTML text
* @return the string
*/
public static String convertHtmlToString(String html) {
if (html == null) {
return null;
......
......@@ -40,6 +40,12 @@ public class Indexer {
boolean title;
boolean heading;
/**
* This method is called when executing this application from the command
* line.
*
* @param args the command line parameters
*/
public static void main(String[] args) throws Exception {
new Indexer().run(args);
}
......
......@@ -22,6 +22,12 @@ import java.net.Socket;
*/
public class PgTcpRedirect {
/**
* This method is called when executing this application from the command
* line.
*
* @param args the command line parameters
*/
public static void main(String[] args) throws Exception {
new PgTcpRedirect().loop(args);
}
......
......@@ -34,7 +34,13 @@ public class SecureKeyStoreBuilder {
// utility class
}
public static void main(String[] a) throws Exception {
/**
* This method is called when executing this application from the command
* line.
*
* @param args the command line parameters
*/
public static void main(String[] args) throws Exception {
String password = SecureSocketFactory.KEYSTORE_PASSWORD;
KeyStore store = SecureSocketFactory.getKeyStore(password);
printKeystore(store, password);
......
......@@ -44,7 +44,7 @@ public class Base64 {
}
}
public static void main(String[] args) {
static void main(String[] args) {
check(new String(encode(new byte[] {})), "");
check(new String(encode("A".getBytes())), "QQ==");
check(new String(encode("AB".getBytes())), "QUI=");
......@@ -93,7 +93,7 @@ public class Base64 {
}
}
public static byte[] encode(byte[] bin) {
static byte[] encode(byte[] bin) {
byte[] code = CODE;
int size = bin.length;
int len = ((size + 2) / 3) * 4;
......@@ -121,7 +121,7 @@ public class Base64 {
return enc;
}
public static byte[] encodeFast(byte[] bin) {
static byte[] encodeFast(byte[] bin) {
byte[] code = CODE;
int size = bin.length;
int len = ((size * 4) + 2) / 3;
......@@ -146,7 +146,7 @@ public class Base64 {
return enc;
}
public static byte[] trim(byte[] enc) {
static byte[] trim(byte[] enc) {
byte[] rev = REV;
int j = 0, size = enc.length;
if (size > 1 && enc[size - 2] == '=') {
......@@ -173,7 +173,7 @@ public class Base64 {
return buff;
}
public static byte[] decode(byte[] enc) {
static byte[] decode(byte[] enc) {
enc = trim(enc);
byte[] rev = REV;
int len = enc.length, size = (len * 3) / 4;
......@@ -203,7 +203,7 @@ public class Base64 {
return bin;
}
public static byte[] decodeFast(byte[] enc) {
static byte[] decodeFast(byte[] enc) {
byte[] rev = REV;
int len = enc.length, size = (len * 3) / 4;
byte[] bin = new byte[size];
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论