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

--no commit message

--no commit message
上级 78e7ad72
@echo off
if exist bin/org/h2/build/Build.class goto buildOK
if not exist bin mkdir bin
javac -sourcepath src/tools -d bin src/tools/org/h2/build/*.java
:buildOK
java -cp "bin;target;%JAVA_HOME%/lib/tools.jar" org.h2.build.Build %1
\ No newline at end of file
......@@ -44,20 +44,8 @@
</delete>
</target>
<target name="compileResources" depends="clean">
<javac executable="${javac}" srcdir="src/main" destdir="bin" debug="true" includes="org/h2/util/Resources.java"/>
<java classname="org.h2.util.Resources" classpath="bin"/>
<delete>
<fileset dir="bin" includes="org/h2/util/ResourceData.class"/>
</delete>
<javac executable="${javac}" srcdir="bin" destdir="bin" debug="true" includes="org/h2/util/ResourceData.java"/>
<delete>
<fileset dir="bin" includes="org/h2/util/ResourceData.java"/>
</delete>
</target>
<target name="compile" depends="compileResources, switchSourceAuto, downloadServletJar, downloadLuceneJar">
<javac executable="${javac}" destdir="bin" debug="true">
<target name="compile" depends="switchSourceAuto, resources, downloadServletJar, downloadLuceneJar">
<javac executable="${javac}" destdir="bin" debug="true" debuglevel="lines,source" >
<classpath location="ext/servlet-api-2.4.jar" />
<classpath location="ext/lucene-core-2.2.0.jar" />
<src path="src/main"/>
......@@ -65,13 +53,9 @@
<src path="src/tools"/>
</javac>
<copy todir="bin" overwrite="true">
<fileset dir="src/main" includes="META-INF/**/*"/>
<fileset dir="src/main" includes="**/*.png"/>
<fileset dir="src/main" includes="**/*.sql"/>
<fileset dir="src/main" includes="META-INF/services/*"/>
<fileset dir="src/installer" includes="*.bat"/>
<fileset dir="src/test" includes="**/*.txt"/>
<fileset dir="src/test" includes="**/*.sql"/>
<fileset dir="src/test" includes="**/*.properties"/>
<fileset dir="src/test" excludes="**/*.java,**/package.html"/>
</copy>
</target>
......@@ -82,7 +66,7 @@
<java classname="org.h2.test.coverage.Coverage" classpath="." dir="bin" fork="true">
<arg line="-r org/h2"/>
</java>
<javac executable="${javac}" srcdir="bin" destdir="bin" debug="true" includes="org/h2/**"/>
<javac executable="${javac}" srcdir="bin" destdir="bin" debug="true" debuglevel="lines,source" includes="org/h2/**"/>
</target>
<target name="docs" depends="clean, javadoc, compile">
......@@ -132,8 +116,8 @@
</jar>
</target>
<target name="jarClient" depends="compileResources, manifest">
<javac executable="${javac}" srcdir="src/main" destdir="bin" debug="true">
<target name="jarClient" depends="resources, manifest">
<javac executable="${javac}" srcdir="src/main" destdir="bin" debug="true" debuglevel="lines,source">
<include name="org/h2/*" />
<include name="org/h2/jdbc/**" />
<include name="org/h2/jdbcx/**" />
......@@ -144,7 +128,7 @@
</jar>
</target>
<target name="jarDb" depends="compileResources, manifest">
<target name="jarDb" depends="resources, manifest">
<javac executable="${javac}" srcdir="src/main" destdir="bin" debug="false">
<include name="org/h2/*" />
<include name="org/h2/engine/**" />
......@@ -158,9 +142,9 @@
</target>
<target name="javadoc">
<javac executable="${javac}" srcdir="src/main" destdir="bin" debug="true" includes="org/h2/util/StringUtils.java"/>
<javac executable="${javac}" srcdir="src/test" destdir="bin" debug="true" includes="org/h2/test/bnf/*.java"/>
<javac executable="${javac}" srcdir="src/tools" destdir="bin" debug="true" includes="org/h2/build/doclet/*.java"/>
<javac executable="${javac}" srcdir="src/main" destdir="bin" debug="true" debuglevel="lines,source" includes="org/h2/util/StringUtils.java"/>
<javac executable="${javac}" srcdir="src/test" destdir="bin" debug="true" debuglevel="lines,source" includes="org/h2/test/bnf/*.java"/>
<javac executable="${javac}" srcdir="src/tools" destdir="bin" debug="true" debuglevel="lines,source" includes="org/h2/build/doclet/*.java"/>
<mkdir dir="docs/javadoc"/>
<javadoc
sourcepath="src/main"
......@@ -240,8 +224,16 @@
</exec>
</target>
<target name="resources" depends="clean">
<mkdir dir="bin/org/h2/util"/>
<zip destfile="bin/org/h2/util/data.zip"
basedir="src/main"
compress="false"
excludes="**/*.java,**/package.html,**/java.sql.Driver" />
</target>
<target name="switchSourcePrepare" depends="clean">
<javac executable="${javac}" srcdir="src/tools" destdir="bin" debug="true" includes="org/h2/build/code/SwitchSource.java"/>
<javac executable="${javac}" srcdir="src/tools" destdir="bin" debug="true" debuglevel="lines,source" includes="org/h2/build/code/SwitchSource.java"/>
</target>
<target name="switchSourceAndroid" depends="switchSourcePrepare">
......
......@@ -76,6 +76,10 @@ After installing, you should get the following directory structure:
<td>docs/javadoc</td>
<td>Javadoc files</td>
</tr>
<tr>
<td>ext</td>
<td>External dependencies (downloaded when building)</td>
</tr>
<tr>
<td>service</td>
<td>Tools to run the database as a Windows Service</td>
......
......@@ -12,7 +12,7 @@ Initial Developer: H2 Group
<script type="text/javascript" src="search.js"></script>
<script type="text/javascript" src="navigation.js"></script>
</head>
<body style="margin: 10px 0px 0px 0px;" onload="frameMe('menu');">
<body style="margin: 10px 0px 0px 4px;" onload="frameMe('menu');">
<div class="menu">
<img border="0" src="images/h2-logo.png" alt="H2 Logo" onclick="document.location='main.html'" />
......
......@@ -413,13 +413,16 @@ SELECT * FROM CSVREAD('test.csv');
The CSV tool can be used in a Java application even when not using a database at all.
Example:
<pre>
import org.h2.tools.Csv;
import org.h2.tools.SimpleResultSet;
...
SimpleResultSet rs = new SimpleResultSet();
rs.addColumn("NAME", Types.VARCHAR, 255, 0);
rs.addColumn("EMAIL", Types.VARCHAR, 255, 0);
rs.addColumn("PHONE", Types.VARCHAR, 255, 0);
rs.addRow(new String[]{"Bob Meier", "bob.meier@abcde.abc", "+41123456789"});
rs.addRow(new String[]{"John Jones", "john.jones@abcde.abc", "+41976543210"});
Csv.write("test.csv", rs, null);
rs.addRow(new String[] { "Bob Meier", "bob.meier@abcde.abc", "+41123456789" });
rs.addRow(new String[] { "John Jones", "john.jones@abcde.abc", "+41976543210" });
Csv.getInstance().write("data/test.csv", rs, null);
</pre>
</p>
......@@ -428,11 +431,13 @@ Csv.write("test.csv", rs, null);
It is possible to read a CSV file without opening a database.
Example:
<pre>
ResultSet rs = Csv.read("test.csv", null, null);
import org.h2.tools.Csv;
...
ResultSet rs = Csv.getInstance().read("data/test.csv", null, null);
ResultSetMetaData meta = rs.getMetaData();
while(rs.next()) {
for(int i=0; i&lt;meta.getColumnCount(); i++) {
System.out.println(meta.getColumnLabel(i+1) + ": " + rs.getString(i+1));
while (rs.next()) {
for (int i = 0; i &lt; meta.getColumnCount(); i++) {
System.out.println(meta.getColumnLabel(i + 1) + ": " + rs.getString(i + 1));
}
System.out.println();
}
......
......@@ -995,771 +995,804 @@ Change Log
Next Version (unreleased)
@changelog_1002_li
.
The autocomplete in the H2 Console has been improved a bit.
@changelog_1003_h2
Version 1.0.69 (2008-03-29)
@changelog_1003_li
The tools in the H2 Console are now translatable.
@changelog_1004_li
Most command line tools can now be called from within the H2 Console.
Invalid inline views threw confusing SQL exceptions.
@changelog_1005_li
A new Shell tools is now included (org.h2.tools.Shell) to query a database from the command line.
The Japanese translation of the error messages and the H2 Console has been improved. Thanks a lot to Masahiro IKEMOTO.
@changelog_1006_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.
Optimization for MIN() and MAX() when using MVCC.
@changelog_1007_li
New system property h2.sortNullsHigh to invert the default sorting behavior for NULL. The default didn't change.
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_1008_li
Performance was very slow when using LOG=2 and deleting or updating all rows of a table in a loop. Fixed.
After setting the query timeout and then resetting it, the next query would still timeout. Fixed.
@changelog_1009_li
ALTER TABLE or CREATE TABLE now support parameters for the password field.
Adding a IDENTITY column to a table with data threw a lock timeout.
@changelog_1010_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.
OutOfMemoryError could occur when using EXISTS or IN(SELECT ..).
@changelog_1011_li
TRACE_LEVEL_ settings are no longer persistent. This was a problem when database initialization code caused a lot of trace output.
The built-in connection pool is not called JdbcConnectionPool. The API and documentation has been changed.
@changelog_1012_li
Fulltext search (native implementation): The words table is no longer an in-memory table because this caused memory problems in some cases.
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_1013_li
Nested joins are now supported (A JOIN B JOIN C ON .. ON ..)
@changelog_1014_h2
Version 1.0.69 (2008-03-29)
@changelog_1015_li
Most command line tools can now be called from within the H2 Console.
@changelog_1016_li
A new Shell tools is now included (org.h2.tools.Shell) to query a database from the command line.
@changelog_1017_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_1018_li
New system property h2.sortNullsHigh to invert the default sorting behavior for NULL. The default didn't change.
@changelog_1019_li
Performance was very slow when using LOG=2 and deleting or updating all rows of a table in a loop. Fixed.
@changelog_1020_li
ALTER TABLE or CREATE TABLE now support parameters for the password field.
@changelog_1021_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_1022_li
TRACE_LEVEL_ settings are no longer persistent. This was a problem when database initialization code caused a lot of trace output.
@changelog_1023_li
Fulltext search (native implementation): The words table is no longer an in-memory table because this caused memory problems in some cases.
@changelog_1024_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_1014_li
@changelog_1025_li
The recovery tool didn't work correctly for tables without rows.
@changelog_1015_li
@changelog_1026_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_1016_li
@changelog_1027_li
CSVWRITE caused a NullPointerException when not specifying a nullString.
@changelog_1017_li
@changelog_1028_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_1018_li
@changelog_1029_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_1019_li
@changelog_1030_li
Altering a sequence didn't unlock the system table when autocommit switched off.
@changelog_1020_h2
@changelog_1031_h2
Version 1.0.68 (2008-03-18)
@changelog_1021_li
@changelog_1032_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_1022_li
@changelog_1033_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_1023_li
@changelog_1034_li
Unused LOB files were deleted much too late. Now they are deleted if no longer referenced in memory.
@changelog_1024_li
@changelog_1035_li
ALTER SEQUENCE and ALTER TABLE ALTER COLUMN RESTART can now be used inside a transaction.
@changelog_1025_li
@changelog_1036_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_1026_li
@changelog_1037_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_1027_li
@changelog_1038_li
Improved performance when using lob files in directories (however this is still disabled by default)
@changelog_1028_li
@changelog_1039_li
H2 Console: autocomplete didn't work with very large scripts. Fixed.
@changelog_1029_li
@changelog_1040_li
Fulltext search: new method SEARCH_DATA that returns the column names and primary keys as arrays.
@changelog_1030_li
@changelog_1041_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_1031_li
@changelog_1042_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_1032_li
@changelog_1043_li
H2 Console: remote connections were very slow because getHostName/getRemoteHost was used. Fixed (now using getHostAddress/getRemoteAddr.
@changelog_1033_li
@changelog_1044_li
H2 Console: on Linux, Firefox, Konqueror, or Opera (in this order) are now started if available. This has been tested on Ubuntu.
@changelog_1034_li
@changelog_1045_li
H2 Console: the start window works better with IKVM
@changelog_1035_li
@changelog_1046_li
H2 Console: improved compatibility with Safari (Safari requires keep-alive)
@changelog_1036_li
@changelog_1047_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_1037_li
@changelog_1048_li
SELECT UNION with a different number of ORDER BY columns did throw an ArrayIndexOutOfBoundsException.
@changelog_1038_li
@changelog_1049_li
When using a view, the column precision was changed to the default scale for some data types.
@changelog_1039_li
@changelog_1050_li
CSVWRITE now supports a 'null string' that is used for parsing and writing NULL.
@changelog_1040_li
@changelog_1051_li
Some long running queries could not be cancelled.
@changelog_1041_li
@changelog_1052_li
Queries with many outer join tables were very slow. Fixed.
@changelog_1042_li
@changelog_1053_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_1043_li
@changelog_1054_li
UPDATE SET column=DEFAULT is now supported.
@changelog_1044_h2
@changelog_1055_h2
Version 1.0.67 (2008-02-22)
@changelog_1045_li
@changelog_1056_li
New function FILE_READ to read a file or from an URL. Both binary and text data is supported.
@changelog_1046_li
@changelog_1057_li
CREATE TABLE AS SELECT now supports specifying the column list and data types.
@changelog_1047_li
@changelog_1058_li
Connecting to a TCP server and at shutting it down at the same time could cause a Java level deadlock.
@changelog_1048_li
@changelog_1059_li
A user now has all rights on his own local temporary tables.
@changelog_1049_li
@changelog_1060_li
The CSV tool now supports a custom lineSeparator.
@changelog_1050_li
@changelog_1061_li
When using multiple connections, empty space was reused too early sometimes. This could corrupt the database when recovering.
@changelog_1051_li
@changelog_1062_li
The H2 Console has been translated to Dutch. Thanks a lot to Remco Schoen!
@changelog_1052_li
@changelog_1063_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_1053_li
@changelog_1064_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_1054_li
@changelog_1065_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_1055_li
@changelog_1066_li
The value cache is now a soft reference cache. This should help save memory.
@changelog_1056_li
@changelog_1067_li
CREATE INDEX on a table with many rows could run out of memory. Fixed.
@changelog_1057_li
@changelog_1068_li
Large result sets are now a bit faster.
@changelog_1058_li
@changelog_1069_li
ALTER TABLE ALTER COLUMN RESTART and ALTER SEQUENCE now support parameters (any expressions).
@changelog_1059_li
@changelog_1070_li
When setting the base directory on the command line, the user directory prefix ('~') was ignored.
@changelog_1060_li
@changelog_1071_li
The DbStarter servlet didn't start the TCP listener even if configured.
@changelog_1061_li
@changelog_1072_li
Statement.setQueryTimeout() is now supported.
@changelog_1062_li
@changelog_1073_li
New session setting QUERY_TIMEOUT, and new system property h2.maxQueryTimeout.
@changelog_1063_li
@changelog_1074_li
Changing the transaction log level (SET LOG) is now written to the trace file by default.
@changelog_1064_li
@changelog_1075_li
In a SQL script, primary key constraints are now ordered before foreign key constraints.
@changelog_1065_li
@changelog_1076_li
It was not possible to create a referential constraint to a table in a different schema in some situations.
@changelog_1066_li
@changelog_1077_li
The H2 Console was slow when the database contains many tables. Now the column names are not shown in this case.
@changelog_1067_h2
@changelog_1078_h2
Version 1.0.66 (2008-02-02)
@changelog_1068_li
@changelog_1079_li
There is a new online error analyzer tool.
@changelog_1069_li
@changelog_1080_li
H2 Console: stack traces are now links to the source code in the source repository (H2 database only).
@changelog_1070_li
@changelog_1081_li
CHAR data type equals comparison was case insensitive instead of case sensitive.
@changelog_1071_li
@changelog_1082_li
The exception 'Value too long for column' now includes the data.
@changelog_1072_li
@changelog_1083_li
The table name was missing in the documentation of CREATE INDEX.
@changelog_1073_li
@changelog_1084_li
Better support for IKVM (www.ikvm.net): the H2 Console now opens a browser window.
@changelog_1074_li
@changelog_1085_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_1075_li
@changelog_1086_li
The exception "Hexadecimal string contains non-hex character" was not always thrown when it should have been. Fixed.
@changelog_1076_li
@changelog_1087_li
The H2 Console now provides a link to the documentation when an error occurs (H2 databases only so far).
@changelog_1077_li
@changelog_1088_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_1078_li
@changelog_1089_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_1079_li
@changelog_1090_li
For compatibility with other databases the column default (COLUMN_DEF) for columns without default is now null (it was an empty string).
@changelog_1080_li
@changelog_1091_li
Statements that contain very large subqueries (where the subquery result does not fit in memory) are now faster.
@changelog_1081_li
@changelog_1092_li
Variables: large objects (CLOB and BLOB) that don't fit in memory did not work correctly when used as variables.
@changelog_1082_li
@changelog_1093_li
Fulltext search is now supported in named in-memory databases.
@changelog_1083_li
@changelog_1094_li
H2 Console: multiple consecutive spaces in the setting name did not work. Fixed.
@changelog_1084_h2
@changelog_1095_h2
Version 1.0.65 (2008-01-18)
@changelog_1085_li
@changelog_1096_li
The build (ant) now automatically switches the source code to the correct version (JDK 1.4/1.5 or 1.6).
@changelog_1086_li
@changelog_1097_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_1087_li
@changelog_1098_li
The performance for DROP and DROP ALL OBJECTS has been improved.
@changelog_1088_li
@changelog_1099_li
The ChangePassword API has been improved.
@changelog_1089_li
@changelog_1100_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_1090_li
@changelog_1101_li
The Ukrainian translation has been improved.
@changelog_1091_li
@changelog_1102_li
CALL statements can now be used in batch updates and called using Statement.executeUpdate.
@changelog_1092_li
@changelog_1103_li
New read-only setting CREATE_BUILD (the build number of the database engine that created the database).
@changelog_1093_li
@changelog_1104_li
The optimizer did not use multi column indexes for range queries in some cases. Fixed.
@changelog_1094_li
@changelog_1105_li
The H2 Console now calls DataSource.getConnection() instead of DataSource.getConnection(user, password) when user name and password are not specified.
@changelog_1095_li
@changelog_1106_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_1096_li
@changelog_1107_li
Batch update: Calling BatchUpdateException.printStackTrace() could result in out of memory. Fixed.
@changelog_1097_li
@changelog_1108_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_1098_li
@changelog_1109_li
The performance for large result sets in the server mode has been improved.
@changelog_1099_li
@changelog_1110_li
The setting h2.serverSmallResultSetSize has been renamed to h2.serverResultSetFetchSize.
@changelog_1100_li
@changelog_1111_li
The SCRIPT command now uses multi-row insert statements to save space except if the option SIMPLE is used.
@changelog_1101_li
@changelog_1112_li
The SCRIPT command did not split up CLOB data correctly. Fixed.
@changelog_1102_li
@changelog_1113_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_1103_li
@changelog_1114_li
DROP ALL OBJECTS did not drop user defined aggregate functions and domains.
@changelog_1104_li
@changelog_1115_li
PostgreSQL compatibility: COUNT(T.*) is now supported.
@changelog_1105_li
@changelog_1116_li
LIKE comparisons are now faster.
@changelog_1106_li
@changelog_1117_li
Encrypted databases are now faster.
@changelog_1107_h2
@changelog_1118_h2
Version 1.0.64 (2007-12-27)
@changelog_1108_li
@changelog_1119_li
3-way union queries with prepared statement or views could return the wrong results. Fixed.
@changelog_1109_li
@changelog_1120_li
The PostgreSQL ODBC driver did not work in the last release due to a parser regression. Fixed.
@changelog_1110_li
@changelog_1121_li
CSV tool: some escape/separator character combinations did not work. Fixed.
@changelog_1111_li
@changelog_1122_li
CSV tool: the character # could not be used as a separator when reading.
@changelog_1112_li
@changelog_1123_li
Recovery: when the index file is corrupt, now the database deletes it and re-creates it automatically.
@changelog_1113_li
@changelog_1124_li
The MVCC mode did not work well with in-memory databases. Fixed.
@changelog_1114_li
@changelog_1125_li
The FTP server now supports a event listener. Thanks Fulvio Biondi for the help!
@changelog_1115_li
@changelog_1126_li
New system function CANCEL_SESSION to cancel the currently executing statement of another session.
@changelog_1116_li
@changelog_1127_li
The database now supports an exclusive mode. In exclusive mode, new connections are rejected.
@changelog_1117_li
@changelog_1128_li
H2 Console: when editing result sets, columns can now be set to null. The text 'null' must be escaped using '=null'.
@changelog_1118_li
@changelog_1129_li
New built-in functions RPAD and LPAD.
@changelog_1119_li
@changelog_1130_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_1120_li
@changelog_1131_li
The Ukrainian translation was not working in the last release. Fixed.
@changelog_1121_li
@changelog_1132_li
Creating many tables (many hundreds) was slow. Fixed.
@changelog_1122_li
@changelog_1133_li
Opening a database with many indexes (thousands) was slow. Fixed.
@changelog_1123_li
@changelog_1134_li
H2 Console / autocomplete: Ctrl+Space now shows the list in all modes.
@changelog_1124_li
@changelog_1135_li
The method Trigger.init has been changed: the parameters 'before' and 'type', have been added to the init method.
@changelog_1125_li
@changelog_1136_li
The performance has been improved for ResultSet methods with column name.
@changelog_1126_li
@changelog_1137_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_1127_li
@changelog_1138_li
The H2 Console has been translated to Turkish. Thanks a lot to Ridvan Agar!
@changelog_1128_li
@changelog_1139_li
Improved debugging support: toString methods of most object now return a meaningful text.
@changelog_1129_li
@changelog_1140_li
The classes DbStarter and WebServlet have been moved to src/main.
@changelog_1130_li
@changelog_1141_li
The column INFORMATION_SCHEMA.TRIGGERS.SQL now contains the CREATE TRIGGER statement.
@changelog_1131_li
@changelog_1142_li
Loading classes and calling methods can be restricted using the new system property h2.allowedClasses.
@changelog_1132_li
@changelog_1143_li
The database could not be used in Java applets due to security exceptions. Fixed.
@changelog_1133_h2
@changelog_1144_h2
Version 1.0.63 (2007-12-02)
@changelog_1134_li
@changelog_1145_li
The SecurePassword example has been improved.
@changelog_1135_li
@changelog_1146_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_1136_li
@changelog_1147_li
The native fulltext search was not working properly after re-connecting.
@changelog_1137_li
@changelog_1148_li
Improved FTP server: now the PORT command is supported.
@changelog_1138_li
@changelog_1149_li
Temporary views (FROM(...)) with UNION didn't work if nested. Fixed.
@changelog_1139_li
@changelog_1150_li
Performance optimization for IN(...) and IN(SELECT...), currently disabled by default. To enable, use java -Dh2.optimizeInJoin=true
@changelog_1140_li
@changelog_1151_li
The H2 Console has been translated to Ukrainian by Igor Dobrovolskyi. Thanks a lot!
@changelog_1141_li
@changelog_1152_li
New function TABLE_DISTINCT.
@changelog_1142_li
@changelog_1153_li
Using LIMIT with values close to Integer.MAX_VALUE didn't work correctly.
@changelog_1143_li
@changelog_1154_li
Certain setting in the Server didn't work (http://code.google.com/p/h2database/issues/detail?id=7).
@changelog_1144_h2
@changelog_1155_h2
Version 1.0.62 (2007-11-25)
@changelog_1145_li
@changelog_1156_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_1146_li
@changelog_1157_li
MVCC: now an exception is thrown when an application tries to change the MVCC setting while the database is already open.
@changelog_1147_li
@changelog_1158_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_1148_li
@changelog_1159_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_1149_li
@changelog_1160_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_1150_li
@changelog_1161_li
Duplicate column names were not detected when renaming columns. Fixed.
@changelog_1151_li
@changelog_1162_li
The console did not display multiple embedded spaces in text correctly. Fixed.
@changelog_1152_li
@changelog_1163_li
Google Android support: use 'ant codeswitchAndroid' to switch the source code to Android.
@changelog_1153_li
@changelog_1164_li
Values of type ARRAY are now sorted as in PostgreSQL.
@changelog_1154_li
@changelog_1165_li
In the cluster mode, could not connect if only one server was running (last release only). Fixed.
@changelog_1155_li
@changelog_1166_li
The performance of large CSV operations has been improved.
@changelog_1156_li
@changelog_1167_li
Now using custom toString() for most JDBC objects and commands.
@changelog_1157_li
@changelog_1168_li
Nested temporary views (SELECT * FROM (SELECT ...)) with parameters didn't work in some cases. Fixed.
@changelog_1158_li
@changelog_1169_li
CSV: Using an empty field delimiter didn't work (a workaround was using char(0)). Fixed.
@changelog_1159_li
@changelog_1170_li
A patch for Apache DDL Utils is available at https://issues.apache.org/jira/browse/DDLUTILS-185
@changelog_1160_li
@changelog_1171_li
The default value for h2.emergencySpaceInitial is now 256 KB (to speed up creating encrypted databases)
@changelog_1161_li
@changelog_1172_li
Eduardo Velasques has translated the H2 Console and the error messages to Brazilian Portuguese. Thanks a lot!
@changelog_1162_li
@changelog_1173_li
Creating a table from GROUP_CONCAT didn't work if the data was longer than 255 characters
@changelog_1163_h2
@changelog_1174_h2
Version 1.0.61 (2007-11-10)
@changelog_1164_li
@changelog_1175_li
The Lucene Fulltext implementation is now compiled and included in the h2.jar. Requires Lucene 2.2.
@changelog_1165_li
@changelog_1176_li
Added more tests. The code coverage is now at 83%.
@changelog_1166_li
@changelog_1177_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_1167_li
@changelog_1178_li
The MODE used to be a global setting, now it is a database level setting.
@changelog_1168_li
@changelog_1179_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_1169_li
@changelog_1180_li
Math operations using unknown data types (for example -? and ?+?) are now interpreted as decimal.
@changelog_1170_li
@changelog_1181_li
INSTR, LOCATE: backward searching is not supported by using a negative start position.
@changelog_1171_li
@changelog_1182_li
Can now open a database stored in a jar or zip file (for example, jdbc:h2:zip:c:/temp/h2.zip!/test).
@changelog_1172_li
@changelog_1183_li
Files access now uses an API (FileSystem, FileObject), this will simplify adding other file systems and features (for example replication).
@changelog_1173_li
@changelog_1184_li
Vlad Alexahin has translated H2 Console to Russian. Thanks a lot!
@changelog_1174_li
@changelog_1185_li
Descending indexes are now supported. This is useful when sorting columns descending, for example by creation date.
@changelog_1175_li
@changelog_1186_li
Solved a Java level deadlock in the DatabaseCloser.
@changelog_1176_li
@changelog_1187_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_1177_li
@changelog_1188_li
MVCC: The system property h2.mvcc has been removed. A few bugs have been fixed, and new tests have been added.
@changelog_1178_h2
@changelog_1189_h2
Version 1.0.60 (2007-10-20)
@changelog_1179_li
@changelog_1190_li
JdbcXAConnection: starting a transaction before getting the connection didn't switch off autocommit.
@changelog_1180_li
@changelog_1191_li
User defined aggregate functions are not supported.
@changelog_1181_li
@changelog_1192_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_1182_li
@changelog_1193_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_1183_li
@changelog_1194_li
Linked tables: now tables in non-default schemas are supported as well
@changelog_1184_li
@changelog_1195_li
New Italian translation from PierPaolo Ucchino. Thanks a lot!
@changelog_1185_li
@changelog_1196_li
CSV: New methods to set the escape character and field delimiter in the Csv tool and the CSVWRITE and CSVREAD methods.
@changelog_1186_li
@changelog_1197_li
Prepared statements could not be used after data definition statements (creating tables and so on). Fixed.
@changelog_1187_li
@changelog_1198_li
PreparedStatement.setMaxRows could not be changed to a higher value after the statement was executed.
@changelog_1188_li
@changelog_1199_li
The H2 Console could not connect twice to the same H2 embedded database at the same time. Fixed.
@changelog_1189_li
@changelog_1200_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_1190_h2
@changelog_1201_h2
Version 1.0.59 (2007-10-03)
@changelog_1191_li
@changelog_1202_li
When the data type was unknown in a subquery, sometimes the wrong exception (ArrayIndexOutOfBounds) was thrown. Fixed.
@changelog_1192_li
@changelog_1203_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_1193_li
@changelog_1204_li
Multi-threaded kernel (MULTI_THREADED=1): A synchronization problem has been fixed.
@changelog_1194_li
@changelog_1205_li
A PreparedStatement that was cancelled could not be reused. Fixed.
@changelog_1195_li
@changelog_1206_li
H2 Console: Progress information when logging into a H2 embedded database (useful when opening a database is slow).
@changelog_1196_li
@changelog_1207_li
When the database was closed while logging was disabled (LOG 0), re-opening the database was slow. Fixed.
@changelog_1197_li
@changelog_1208_li
Fulltext search is now documented (in the Tutorial).
@changelog_1198_li
@changelog_1209_li
The Console did not refresh the table list if the CREATE TABLE statement started with a comment. Fixed.
@changelog_1199_li
@changelog_1210_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_1200_li
@changelog_1211_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_1201_li
@changelog_1212_li
REGEXP compatibility: So far String.matches was used, but for compatibility with MySQL, now Matcher.find is used.
@changelog_1202_li
@changelog_1213_li
SCRIPT: the SQL statements in the result set now include the terminating semicolon as well. Simplifies copy and paste.
@changelog_1203_li
@changelog_1214_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_1204_li
@changelog_1215_li
Views with subqueries as tables and queries with nested subqueries as tables did not always work. Fixed.
@changelog_1205_li
@changelog_1216_li
Compatibility: comparing columns with constants that are out of range does not throw an exception.
@changelog_1206_h2
@changelog_1217_h2
Version 1.0.58 (2007-09-15)
@changelog_1207_li
@changelog_1218_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_1208_li
@changelog_1219_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_1209_li
@changelog_1220_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_1210_li
@changelog_1221_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_1211_li
@changelog_1222_li
When comparing TINYINT or SMALLINT columns against constants, the index was not used. Fixed.
@changelog_1212_li
@changelog_1223_li
Maven 2: new version are now automatically synced with the central repositories.
@changelog_1213_li
@changelog_1224_li
The default value for MAX_MEMORY_UNDO is now 100000.
@changelog_1214_li
@changelog_1225_li
The documentation indexer does no longer index Japanese pages. If somebody knows how to split Japanese into words please post it.
@changelog_1215_li
@changelog_1226_li
Oracle compatibility: SYSDATE now returns a timestamp. CHR(..) is now an alias for CHAR(..).
@changelog_1216_li
@changelog_1227_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_1217_li
@changelog_1228_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_1218_li
@changelog_1229_li
Optimization for COLUMN IN(.., NULL) if the column does not allow NULL values.
@changelog_1219_li
@changelog_1230_li
Using spaces in column and table aliases was not supported when used inside a view or temporary view.
@changelog_1220_li
@changelog_1231_li
The version (build) number is now included in the manifest file.
@changelog_1221_li
@changelog_1232_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_1222_li
@changelog_1233_li
The database file sizes are now increased at most 32 MB at any time.
@changelog_1223_li
@changelog_1234_li
New method DatabaseEventListener.opened that is called just after opening a database.
@changelog_1224_li
@changelog_1235_li
When using the Console with Internet Explorer 6.0 or 7.0, a Javascript error was thrown after clearing the query.
@changelog_1225_li
@changelog_1236_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_1226_li
@changelog_1237_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_1227_li
@changelog_1238_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_1228_li
@changelog_1239_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_1229_li
@changelog_1240_li
For PgServer, character encoding other than UTF-8 did not work correctly. Fixed.
@changelog_1230_li
@changelog_1241_li
Using a function in a GROUP BY expression that is used in a view as a condition did not always work.
@changelog_1231_h2
@changelog_1242_h2
Version 1.0.57 (2007-08-25)
@changelog_1232_li
@changelog_1243_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_1233_li
@changelog_1244_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_1234_li
@changelog_1245_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_1235_li
@changelog_1246_li
Opening large read-only databases was very slow. Fixed.
@changelog_1236_li
@changelog_1247_li
New Japanese translation of the error messages thanks to Ikemoto Masahiro. Thanks a lot!
@changelog_1237_li
@changelog_1248_li
Disabling / enabling referential integrity for a table can now be used inside a transaction.
@changelog_1238_li
@changelog_1249_li
Rights checking for dynamic tables (SELECT * FROM (SELECT ...)) did not work. Fixed.
@changelog_1239_li
@changelog_1250_li
Creating more than 10 views that depend on each other was very slow. Reconnecting was slow as well. Fixed.
@changelog_1240_li
@changelog_1251_li
When used as as Servlet, the H2 Console did not work with SSL (using Tomcat). Fixed.
@changelog_1241_li
@changelog_1252_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_1242_li
@changelog_1253_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_1243_li
@changelog_1254_li
Some unit tests failed on Linux because the file system works differently. The unit tests are fixed and should work now.
@changelog_1244_li
@changelog_1255_li
Can now incrementally translate the documentation. See also FAQ.
@changelog_1245_li
@changelog_1256_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_1246_li
@changelog_1257_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_1247_li
@changelog_1258_li
Google translate did not work for the H2 homepage. It should be fixed now.
@changelog_1248_li
@changelog_1259_li
The CONVERT function did not work with views when using UNION.
@changelog_1249_li
@changelog_1260_li
The build now issues a warning if the source code is switched to the wrong version.
@changelog_1250_li
@changelog_1261_li
The default lock mode is now read committed instead of serialized.
@changelog_1251_li
@changelog_1262_li
PG server: data was truncated when reading large VARCHAR columns and decimal columns.
@changelog_1252_li
@changelog_1263_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_1253_li
@changelog_1264_li
Some file operations didn't work for files in the root directory. Fixed.
@changelog_1254_li
@changelog_1265_li
In the Restore tool, the parameter -file did not work. Fixed.
@changelog_1255_li
@changelog_1266_li
Two-phase commit: commit with transaction name was only supported in the recovery scan. Now it is always supported.
@changelog_1256_li
@changelog_1267_li
The column name C_CURRENT_TIMESTAMP did not work in the last release.
@changelog_1257_li
@changelog_1268_li
OpenOffice compatibility: support database name in column names.
@download_1000_h1
......@@ -3503,15 +3536,21 @@ docs/javadoc
Javadoc files
@installation_1027_td
service
ext
@installation_1028_td
Tools to run the database as a Windows Service
External dependencies (downloaded when building)
@installation_1029_td
src
service
@installation_1030_td
Tools to run the database as a Windows Service
@installation_1031_td
src
@installation_1032_td
Source files
@license_1000_h1
......@@ -6772,13 +6811,22 @@ Write (log) to system table before adding to internal data structures
@roadmap_1374_li
Support very large deletes and updates
@roadmap_1375_h2
Not Planned
@roadmap_1375_li
Doclet (javadocs): constructors are not listed
@roadmap_1376_li
HSQLDB (did) support this: select id i from test where i>0 (other databases don't). Supporting it may break compatibility.
Support direct lookup for MIN and MAX when using WHERE (see todo.txt / Direct Lookup)
@roadmap_1377_li
Support other array types (String[], double[]) in PreparedStatement.setObject(int, Object);
@roadmap_1378_h2
Not Planned
@roadmap_1379_li
HSQLDB (did) support this: select id i from test where i>0 (other databases don't). Supporting it may break compatibility.
@roadmap_1380_li
String.intern (so that Strings can be compared with ==) will not be used because some VMs have problems when used extensively.
@search_1000_b
......
......@@ -997,771 +997,804 @@ Centralリポジトリの利用
#Next Version (unreleased)
@changelog_1002_li
#.
#The autocomplete in the H2 Console has been improved a bit.
@changelog_1003_h2
#Version 1.0.69 (2008-03-29)
@changelog_1003_li
#The tools in the H2 Console are now translatable.
@changelog_1004_li
#Most command line tools can now be called from within the H2 Console.
#Invalid inline views threw confusing SQL exceptions.
@changelog_1005_li
#A new Shell tools is now included (org.h2.tools.Shell) to query a database from the command line.
#The Japanese translation of the error messages and the H2 Console has been improved. Thanks a lot to Masahiro IKEMOTO.
@changelog_1006_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.
#Optimization for MIN() and MAX() when using MVCC.
@changelog_1007_li
#New system property h2.sortNullsHigh to invert the default sorting behavior for NULL. The default didn't change.
#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_1008_li
#Performance was very slow when using LOG=2 and deleting or updating all rows of a table in a loop. Fixed.
#After setting the query timeout and then resetting it, the next query would still timeout. Fixed.
@changelog_1009_li
#ALTER TABLE or CREATE TABLE now support parameters for the password field.
#Adding a IDENTITY column to a table with data threw a lock timeout.
@changelog_1010_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.
#OutOfMemoryError could occur when using EXISTS or IN(SELECT ..).
@changelog_1011_li
#TRACE_LEVEL_ settings are no longer persistent. This was a problem when database initialization code caused a lot of trace output.
#The built-in connection pool is not called JdbcConnectionPool. The API and documentation has been changed.
@changelog_1012_li
#Fulltext search (native implementation): The words table is no longer an in-memory table because this caused memory problems in some cases.
#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_1013_li
#Nested joins are now supported (A JOIN B JOIN C ON .. ON ..)
@changelog_1014_h2
#Version 1.0.69 (2008-03-29)
@changelog_1015_li
#Most command line tools can now be called from within the H2 Console.
@changelog_1016_li
#A new Shell tools is now included (org.h2.tools.Shell) to query a database from the command line.
@changelog_1017_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_1018_li
#New system property h2.sortNullsHigh to invert the default sorting behavior for NULL. The default didn't change.
@changelog_1019_li
#Performance was very slow when using LOG=2 and deleting or updating all rows of a table in a loop. Fixed.
@changelog_1020_li
#ALTER TABLE or CREATE TABLE now support parameters for the password field.
@changelog_1021_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_1022_li
#TRACE_LEVEL_ settings are no longer persistent. This was a problem when database initialization code caused a lot of trace output.
@changelog_1023_li
#Fulltext search (native implementation): The words table is no longer an in-memory table because this caused memory problems in some cases.
@changelog_1024_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_1014_li
@changelog_1025_li
#The recovery tool didn't work correctly for tables without rows.
@changelog_1015_li
@changelog_1026_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_1016_li
@changelog_1027_li
#CSVWRITE caused a NullPointerException when not specifying a nullString.
@changelog_1017_li
@changelog_1028_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_1018_li
@changelog_1029_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_1019_li
@changelog_1030_li
#Altering a sequence didn't unlock the system table when autocommit switched off.
@changelog_1020_h2
@changelog_1031_h2
#Version 1.0.68 (2008-03-18)
@changelog_1021_li
@changelog_1032_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_1022_li
@changelog_1033_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_1023_li
@changelog_1034_li
#Unused LOB files were deleted much too late. Now they are deleted if no longer referenced in memory.
@changelog_1024_li
@changelog_1035_li
#ALTER SEQUENCE and ALTER TABLE ALTER COLUMN RESTART can now be used inside a transaction.
@changelog_1025_li
@changelog_1036_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_1026_li
@changelog_1037_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_1027_li
@changelog_1038_li
#Improved performance when using lob files in directories (however this is still disabled by default)
@changelog_1028_li
@changelog_1039_li
#H2 Console: autocomplete didn't work with very large scripts. Fixed.
@changelog_1029_li
@changelog_1040_li
#Fulltext search: new method SEARCH_DATA that returns the column names and primary keys as arrays.
@changelog_1030_li
@changelog_1041_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_1031_li
@changelog_1042_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_1032_li
@changelog_1043_li
#H2 Console: remote connections were very slow because getHostName/getRemoteHost was used. Fixed (now using getHostAddress/getRemoteAddr.
@changelog_1033_li
@changelog_1044_li
#H2 Console: on Linux, Firefox, Konqueror, or Opera (in this order) are now started if available. This has been tested on Ubuntu.
@changelog_1034_li
@changelog_1045_li
#H2 Console: the start window works better with IKVM
@changelog_1035_li
@changelog_1046_li
#H2 Console: improved compatibility with Safari (Safari requires keep-alive)
@changelog_1036_li
@changelog_1047_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_1037_li
@changelog_1048_li
#SELECT UNION with a different number of ORDER BY columns did throw an ArrayIndexOutOfBoundsException.
@changelog_1038_li
@changelog_1049_li
#When using a view, the column precision was changed to the default scale for some data types.
@changelog_1039_li
@changelog_1050_li
#CSVWRITE now supports a 'null string' that is used for parsing and writing NULL.
@changelog_1040_li
@changelog_1051_li
#Some long running queries could not be cancelled.
@changelog_1041_li
@changelog_1052_li
#Queries with many outer join tables were very slow. Fixed.
@changelog_1042_li
@changelog_1053_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_1043_li
@changelog_1054_li
#UPDATE SET column=DEFAULT is now supported.
@changelog_1044_h2
@changelog_1055_h2
#Version 1.0.67 (2008-02-22)
@changelog_1045_li
@changelog_1056_li
#New function FILE_READ to read a file or from an URL. Both binary and text data is supported.
@changelog_1046_li
@changelog_1057_li
#CREATE TABLE AS SELECT now supports specifying the column list and data types.
@changelog_1047_li
@changelog_1058_li
#Connecting to a TCP server and at shutting it down at the same time could cause a Java level deadlock.
@changelog_1048_li
@changelog_1059_li
#A user now has all rights on his own local temporary tables.
@changelog_1049_li
@changelog_1060_li
#The CSV tool now supports a custom lineSeparator.
@changelog_1050_li
@changelog_1061_li
#When using multiple connections, empty space was reused too early sometimes. This could corrupt the database when recovering.
@changelog_1051_li
@changelog_1062_li
#The H2 Console has been translated to Dutch. Thanks a lot to Remco Schoen!
@changelog_1052_li
@changelog_1063_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_1053_li
@changelog_1064_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_1054_li
@changelog_1065_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_1055_li
@changelog_1066_li
#The value cache is now a soft reference cache. This should help save memory.
@changelog_1056_li
@changelog_1067_li
#CREATE INDEX on a table with many rows could run out of memory. Fixed.
@changelog_1057_li
@changelog_1068_li
#Large result sets are now a bit faster.
@changelog_1058_li
@changelog_1069_li
#ALTER TABLE ALTER COLUMN RESTART and ALTER SEQUENCE now support parameters (any expressions).
@changelog_1059_li
@changelog_1070_li
#When setting the base directory on the command line, the user directory prefix ('~') was ignored.
@changelog_1060_li
@changelog_1071_li
#The DbStarter servlet didn't start the TCP listener even if configured.
@changelog_1061_li
@changelog_1072_li
#Statement.setQueryTimeout() is now supported.
@changelog_1062_li
@changelog_1073_li
#New session setting QUERY_TIMEOUT, and new system property h2.maxQueryTimeout.
@changelog_1063_li
@changelog_1074_li
#Changing the transaction log level (SET LOG) is now written to the trace file by default.
@changelog_1064_li
@changelog_1075_li
#In a SQL script, primary key constraints are now ordered before foreign key constraints.
@changelog_1065_li
@changelog_1076_li
#It was not possible to create a referential constraint to a table in a different schema in some situations.
@changelog_1066_li
@changelog_1077_li
#The H2 Console was slow when the database contains many tables. Now the column names are not shown in this case.
@changelog_1067_h2
@changelog_1078_h2
#Version 1.0.66 (2008-02-02)
@changelog_1068_li
@changelog_1079_li
#There is a new online error analyzer tool.
@changelog_1069_li
@changelog_1080_li
#H2 Console: stack traces are now links to the source code in the source repository (H2 database only).
@changelog_1070_li
@changelog_1081_li
#CHAR data type equals comparison was case insensitive instead of case sensitive.
@changelog_1071_li
@changelog_1082_li
#The exception 'Value too long for column' now includes the data.
@changelog_1072_li
@changelog_1083_li
#The table name was missing in the documentation of CREATE INDEX.
@changelog_1073_li
@changelog_1084_li
#Better support for IKVM (www.ikvm.net): the H2 Console now opens a browser window.
@changelog_1074_li
@changelog_1085_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_1075_li
@changelog_1086_li
#The exception "Hexadecimal string contains non-hex character" was not always thrown when it should have been. Fixed.
@changelog_1076_li
@changelog_1087_li
#The H2 Console now provides a link to the documentation when an error occurs (H2 databases only so far).
@changelog_1077_li
@changelog_1088_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_1078_li
@changelog_1089_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_1079_li
@changelog_1090_li
#For compatibility with other databases the column default (COLUMN_DEF) for columns without default is now null (it was an empty string).
@changelog_1080_li
@changelog_1091_li
#Statements that contain very large subqueries (where the subquery result does not fit in memory) are now faster.
@changelog_1081_li
@changelog_1092_li
#Variables: large objects (CLOB and BLOB) that don't fit in memory did not work correctly when used as variables.
@changelog_1082_li
@changelog_1093_li
#Fulltext search is now supported in named in-memory databases.
@changelog_1083_li
@changelog_1094_li
#H2 Console: multiple consecutive spaces in the setting name did not work. Fixed.
@changelog_1084_h2
@changelog_1095_h2
#Version 1.0.65 (2008-01-18)
@changelog_1085_li
@changelog_1096_li
#The build (ant) now automatically switches the source code to the correct version (JDK 1.4/1.5 or 1.6).
@changelog_1086_li
@changelog_1097_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_1087_li
@changelog_1098_li
#The performance for DROP and DROP ALL OBJECTS has been improved.
@changelog_1088_li
@changelog_1099_li
#The ChangePassword API has been improved.
@changelog_1089_li
@changelog_1100_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_1090_li
@changelog_1101_li
#The Ukrainian translation has been improved.
@changelog_1091_li
@changelog_1102_li
#CALL statements can now be used in batch updates and called using Statement.executeUpdate.
@changelog_1092_li
@changelog_1103_li
#New read-only setting CREATE_BUILD (the build number of the database engine that created the database).
@changelog_1093_li
@changelog_1104_li
#The optimizer did not use multi column indexes for range queries in some cases. Fixed.
@changelog_1094_li
@changelog_1105_li
#The H2 Console now calls DataSource.getConnection() instead of DataSource.getConnection(user, password) when user name and password are not specified.
@changelog_1095_li
@changelog_1106_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_1096_li
@changelog_1107_li
#Batch update: Calling BatchUpdateException.printStackTrace() could result in out of memory. Fixed.
@changelog_1097_li
@changelog_1108_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_1098_li
@changelog_1109_li
#The performance for large result sets in the server mode has been improved.
@changelog_1099_li
@changelog_1110_li
#The setting h2.serverSmallResultSetSize has been renamed to h2.serverResultSetFetchSize.
@changelog_1100_li
@changelog_1111_li
#The SCRIPT command now uses multi-row insert statements to save space except if the option SIMPLE is used.
@changelog_1101_li
@changelog_1112_li
#The SCRIPT command did not split up CLOB data correctly. Fixed.
@changelog_1102_li
@changelog_1113_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_1103_li
@changelog_1114_li
#DROP ALL OBJECTS did not drop user defined aggregate functions and domains.
@changelog_1104_li
@changelog_1115_li
#PostgreSQL compatibility: COUNT(T.*) is now supported.
@changelog_1105_li
@changelog_1116_li
#LIKE comparisons are now faster.
@changelog_1106_li
@changelog_1117_li
#Encrypted databases are now faster.
@changelog_1107_h2
@changelog_1118_h2
#Version 1.0.64 (2007-12-27)
@changelog_1108_li
@changelog_1119_li
#3-way union queries with prepared statement or views could return the wrong results. Fixed.
@changelog_1109_li
@changelog_1120_li
#The PostgreSQL ODBC driver did not work in the last release due to a parser regression. Fixed.
@changelog_1110_li
@changelog_1121_li
#CSV tool: some escape/separator character combinations did not work. Fixed.
@changelog_1111_li
@changelog_1122_li
#CSV tool: the character # could not be used as a separator when reading.
@changelog_1112_li
@changelog_1123_li
#Recovery: when the index file is corrupt, now the database deletes it and re-creates it automatically.
@changelog_1113_li
@changelog_1124_li
#The MVCC mode did not work well with in-memory databases. Fixed.
@changelog_1114_li
@changelog_1125_li
#The FTP server now supports a event listener. Thanks Fulvio Biondi for the help!
@changelog_1115_li
@changelog_1126_li
#New system function CANCEL_SESSION to cancel the currently executing statement of another session.
@changelog_1116_li
@changelog_1127_li
#The database now supports an exclusive mode. In exclusive mode, new connections are rejected.
@changelog_1117_li
@changelog_1128_li
#H2 Console: when editing result sets, columns can now be set to null. The text 'null' must be escaped using '=null'.
@changelog_1118_li
@changelog_1129_li
#New built-in functions RPAD and LPAD.
@changelog_1119_li
@changelog_1130_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_1120_li
@changelog_1131_li
#The Ukrainian translation was not working in the last release. Fixed.
@changelog_1121_li
@changelog_1132_li
#Creating many tables (many hundreds) was slow. Fixed.
@changelog_1122_li
@changelog_1133_li
#Opening a database with many indexes (thousands) was slow. Fixed.
@changelog_1123_li
@changelog_1134_li
#H2 Console / autocomplete: Ctrl+Space now shows the list in all modes.
@changelog_1124_li
@changelog_1135_li
#The method Trigger.init has been changed: the parameters 'before' and 'type', have been added to the init method.
@changelog_1125_li
@changelog_1136_li
#The performance has been improved for ResultSet methods with column name.
@changelog_1126_li
@changelog_1137_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_1127_li
@changelog_1138_li
#The H2 Console has been translated to Turkish. Thanks a lot to Ridvan Agar!
@changelog_1128_li
@changelog_1139_li
#Improved debugging support: toString methods of most object now return a meaningful text.
@changelog_1129_li
@changelog_1140_li
#The classes DbStarter and WebServlet have been moved to src/main.
@changelog_1130_li
@changelog_1141_li
#The column INFORMATION_SCHEMA.TRIGGERS.SQL now contains the CREATE TRIGGER statement.
@changelog_1131_li
@changelog_1142_li
#Loading classes and calling methods can be restricted using the new system property h2.allowedClasses.
@changelog_1132_li
@changelog_1143_li
#The database could not be used in Java applets due to security exceptions. Fixed.
@changelog_1133_h2
@changelog_1144_h2
#Version 1.0.63 (2007-12-02)
@changelog_1134_li
@changelog_1145_li
#The SecurePassword example has been improved.
@changelog_1135_li
@changelog_1146_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_1136_li
@changelog_1147_li
#The native fulltext search was not working properly after re-connecting.
@changelog_1137_li
@changelog_1148_li
#Improved FTP server: now the PORT command is supported.
@changelog_1138_li
@changelog_1149_li
#Temporary views (FROM(...)) with UNION didn't work if nested. Fixed.
@changelog_1139_li
@changelog_1150_li
#Performance optimization for IN(...) and IN(SELECT...), currently disabled by default. To enable, use java -Dh2.optimizeInJoin=true
@changelog_1140_li
@changelog_1151_li
#The H2 Console has been translated to Ukrainian by Igor Dobrovolskyi. Thanks a lot!
@changelog_1141_li
@changelog_1152_li
#New function TABLE_DISTINCT.
@changelog_1142_li
@changelog_1153_li
#Using LIMIT with values close to Integer.MAX_VALUE didn't work correctly.
@changelog_1143_li
@changelog_1154_li
#Certain setting in the Server didn't work (http://code.google.com/p/h2database/issues/detail?id=7).
@changelog_1144_h2
@changelog_1155_h2
#Version 1.0.62 (2007-11-25)
@changelog_1145_li
@changelog_1156_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_1146_li
@changelog_1157_li
#MVCC: now an exception is thrown when an application tries to change the MVCC setting while the database is already open.
@changelog_1147_li
@changelog_1158_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_1148_li
@changelog_1159_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_1149_li
@changelog_1160_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_1150_li
@changelog_1161_li
#Duplicate column names were not detected when renaming columns. Fixed.
@changelog_1151_li
@changelog_1162_li
#The console did not display multiple embedded spaces in text correctly. Fixed.
@changelog_1152_li
@changelog_1163_li
#Google Android support: use 'ant codeswitchAndroid' to switch the source code to Android.
@changelog_1153_li
@changelog_1164_li
#Values of type ARRAY are now sorted as in PostgreSQL.
@changelog_1154_li
@changelog_1165_li
#In the cluster mode, could not connect if only one server was running (last release only). Fixed.
@changelog_1155_li
@changelog_1166_li
#The performance of large CSV operations has been improved.
@changelog_1156_li
@changelog_1167_li
#Now using custom toString() for most JDBC objects and commands.
@changelog_1157_li
@changelog_1168_li
#Nested temporary views (SELECT * FROM (SELECT ...)) with parameters didn't work in some cases. Fixed.
@changelog_1158_li
@changelog_1169_li
#CSV: Using an empty field delimiter didn't work (a workaround was using char(0)). Fixed.
@changelog_1159_li
@changelog_1170_li
#A patch for Apache DDL Utils is available at https://issues.apache.org/jira/browse/DDLUTILS-185
@changelog_1160_li
@changelog_1171_li
#The default value for h2.emergencySpaceInitial is now 256 KB (to speed up creating encrypted databases)
@changelog_1161_li
@changelog_1172_li
#Eduardo Velasques has translated the H2 Console and the error messages to Brazilian Portuguese. Thanks a lot!
@changelog_1162_li
@changelog_1173_li
#Creating a table from GROUP_CONCAT didn't work if the data was longer than 255 characters
@changelog_1163_h2
@changelog_1174_h2
#Version 1.0.61 (2007-11-10)
@changelog_1164_li
@changelog_1175_li
#The Lucene Fulltext implementation is now compiled and included in the h2.jar. Requires Lucene 2.2.
@changelog_1165_li
@changelog_1176_li
#Added more tests. The code coverage is now at 83%.
@changelog_1166_li
@changelog_1177_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_1167_li
@changelog_1178_li
#The MODE used to be a global setting, now it is a database level setting.
@changelog_1168_li
@changelog_1179_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_1169_li
@changelog_1180_li
#Math operations using unknown data types (for example -? and ?+?) are now interpreted as decimal.
@changelog_1170_li
@changelog_1181_li
#INSTR, LOCATE: backward searching is not supported by using a negative start position.
@changelog_1171_li
@changelog_1182_li
#Can now open a database stored in a jar or zip file (for example, jdbc:h2:zip:c:/temp/h2.zip!/test).
@changelog_1172_li
@changelog_1183_li
#Files access now uses an API (FileSystem, FileObject), this will simplify adding other file systems and features (for example replication).
@changelog_1173_li
@changelog_1184_li
#Vlad Alexahin has translated H2 Console to Russian. Thanks a lot!
@changelog_1174_li
@changelog_1185_li
#Descending indexes are now supported. This is useful when sorting columns descending, for example by creation date.
@changelog_1175_li
@changelog_1186_li
#Solved a Java level deadlock in the DatabaseCloser.
@changelog_1176_li
@changelog_1187_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_1177_li
@changelog_1188_li
#MVCC: The system property h2.mvcc has been removed. A few bugs have been fixed, and new tests have been added.
@changelog_1178_h2
@changelog_1189_h2
#Version 1.0.60 (2007-10-20)
@changelog_1179_li
@changelog_1190_li
#JdbcXAConnection: starting a transaction before getting the connection didn't switch off autocommit.
@changelog_1180_li
@changelog_1191_li
#User defined aggregate functions are not supported.
@changelog_1181_li
@changelog_1192_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_1182_li
@changelog_1193_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_1183_li
@changelog_1194_li
#Linked tables: now tables in non-default schemas are supported as well
@changelog_1184_li
@changelog_1195_li
#New Italian translation from PierPaolo Ucchino. Thanks a lot!
@changelog_1185_li
@changelog_1196_li
#CSV: New methods to set the escape character and field delimiter in the Csv tool and the CSVWRITE and CSVREAD methods.
@changelog_1186_li
@changelog_1197_li
#Prepared statements could not be used after data definition statements (creating tables and so on). Fixed.
@changelog_1187_li
@changelog_1198_li
#PreparedStatement.setMaxRows could not be changed to a higher value after the statement was executed.
@changelog_1188_li
@changelog_1199_li
#The H2 Console could not connect twice to the same H2 embedded database at the same time. Fixed.
@changelog_1189_li
@changelog_1200_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_1190_h2
@changelog_1201_h2
#Version 1.0.59 (2007-10-03)
@changelog_1191_li
@changelog_1202_li
#When the data type was unknown in a subquery, sometimes the wrong exception (ArrayIndexOutOfBounds) was thrown. Fixed.
@changelog_1192_li
@changelog_1203_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_1193_li
@changelog_1204_li
#Multi-threaded kernel (MULTI_THREADED=1): A synchronization problem has been fixed.
@changelog_1194_li
@changelog_1205_li
#A PreparedStatement that was cancelled could not be reused. Fixed.
@changelog_1195_li
@changelog_1206_li
#H2 Console: Progress information when logging into a H2 embedded database (useful when opening a database is slow).
@changelog_1196_li
@changelog_1207_li
#When the database was closed while logging was disabled (LOG 0), re-opening the database was slow. Fixed.
@changelog_1197_li
@changelog_1208_li
#Fulltext search is now documented (in the Tutorial).
@changelog_1198_li
@changelog_1209_li
#The Console did not refresh the table list if the CREATE TABLE statement started with a comment. Fixed.
@changelog_1199_li
@changelog_1210_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_1200_li
@changelog_1211_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_1201_li
@changelog_1212_li
#REGEXP compatibility: So far String.matches was used, but for compatibility with MySQL, now Matcher.find is used.
@changelog_1202_li
@changelog_1213_li
#SCRIPT: the SQL statements in the result set now include the terminating semicolon as well. Simplifies copy and paste.
@changelog_1203_li
@changelog_1214_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_1204_li
@changelog_1215_li
#Views with subqueries as tables and queries with nested subqueries as tables did not always work. Fixed.
@changelog_1205_li
@changelog_1216_li
#Compatibility: comparing columns with constants that are out of range does not throw an exception.
@changelog_1206_h2
@changelog_1217_h2
#Version 1.0.58 (2007-09-15)
@changelog_1207_li
@changelog_1218_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_1208_li
@changelog_1219_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_1209_li
@changelog_1220_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_1210_li
@changelog_1221_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_1211_li
@changelog_1222_li
#When comparing TINYINT or SMALLINT columns against constants, the index was not used. Fixed.
@changelog_1212_li
@changelog_1223_li
#Maven 2: new version are now automatically synced with the central repositories.
@changelog_1213_li
@changelog_1224_li
#The default value for MAX_MEMORY_UNDO is now 100000.
@changelog_1214_li
@changelog_1225_li
#The documentation indexer does no longer index Japanese pages. If somebody knows how to split Japanese into words please post it.
@changelog_1215_li
@changelog_1226_li
#Oracle compatibility: SYSDATE now returns a timestamp. CHR(..) is now an alias for CHAR(..).
@changelog_1216_li
@changelog_1227_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_1217_li
@changelog_1228_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_1218_li
@changelog_1229_li
#Optimization for COLUMN IN(.., NULL) if the column does not allow NULL values.
@changelog_1219_li
@changelog_1230_li
#Using spaces in column and table aliases was not supported when used inside a view or temporary view.
@changelog_1220_li
@changelog_1231_li
#The version (build) number is now included in the manifest file.
@changelog_1221_li
@changelog_1232_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_1222_li
@changelog_1233_li
#The database file sizes are now increased at most 32 MB at any time.
@changelog_1223_li
@changelog_1234_li
#New method DatabaseEventListener.opened that is called just after opening a database.
@changelog_1224_li
@changelog_1235_li
#When using the Console with Internet Explorer 6.0 or 7.0, a Javascript error was thrown after clearing the query.
@changelog_1225_li
@changelog_1236_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_1226_li
@changelog_1237_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_1227_li
@changelog_1238_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_1228_li
@changelog_1239_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_1229_li
@changelog_1240_li
#For PgServer, character encoding other than UTF-8 did not work correctly. Fixed.
@changelog_1230_li
@changelog_1241_li
#Using a function in a GROUP BY expression that is used in a view as a condition did not always work.
@changelog_1231_h2
@changelog_1242_h2
#Version 1.0.57 (2007-08-25)
@changelog_1232_li
@changelog_1243_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_1233_li
@changelog_1244_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_1234_li
@changelog_1245_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_1235_li
@changelog_1246_li
#Opening large read-only databases was very slow. Fixed.
@changelog_1236_li
@changelog_1247_li
#New Japanese translation of the error messages thanks to Ikemoto Masahiro. Thanks a lot!
@changelog_1237_li
@changelog_1248_li
#Disabling / enabling referential integrity for a table can now be used inside a transaction.
@changelog_1238_li
@changelog_1249_li
#Rights checking for dynamic tables (SELECT * FROM (SELECT ...)) did not work. Fixed.
@changelog_1239_li
@changelog_1250_li
#Creating more than 10 views that depend on each other was very slow. Reconnecting was slow as well. Fixed.
@changelog_1240_li
@changelog_1251_li
#When used as as Servlet, the H2 Console did not work with SSL (using Tomcat). Fixed.
@changelog_1241_li
@changelog_1252_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_1242_li
@changelog_1253_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_1243_li
@changelog_1254_li
#Some unit tests failed on Linux because the file system works differently. The unit tests are fixed and should work now.
@changelog_1244_li
@changelog_1255_li
#Can now incrementally translate the documentation. See also FAQ.
@changelog_1245_li
@changelog_1256_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_1246_li
@changelog_1257_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_1247_li
@changelog_1258_li
#Google translate did not work for the H2 homepage. It should be fixed now.
@changelog_1248_li
@changelog_1259_li
#The CONVERT function did not work with views when using UNION.
@changelog_1249_li
@changelog_1260_li
#The build now issues a warning if the source code is switched to the wrong version.
@changelog_1250_li
@changelog_1261_li
#The default lock mode is now read committed instead of serialized.
@changelog_1251_li
@changelog_1262_li
#PG server: data was truncated when reading large VARCHAR columns and decimal columns.
@changelog_1252_li
@changelog_1263_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_1253_li
@changelog_1264_li
#Some file operations didn't work for files in the root directory. Fixed.
@changelog_1254_li
@changelog_1265_li
#In the Restore tool, the parameter -file did not work. Fixed.
@changelog_1255_li
@changelog_1266_li
#Two-phase commit: commit with transaction name was only supported in the recovery scan. Now it is always supported.
@changelog_1256_li
@changelog_1267_li
#The column name C_CURRENT_TIMESTAMP did not work in the last release.
@changelog_1257_li
@changelog_1268_li
#OpenOffice compatibility: support database name in column names.
@download_1000_h1
......@@ -3505,15 +3538,21 @@ docs/javadoc
Javadocファイル
@installation_1027_td
service
#ext
@installation_1028_td
Windows Serviceとしてデータベースを実行するツール
#External dependencies (downloaded when building)
@installation_1029_td
src
service
@installation_1030_td
Windows Serviceとしてデータベースを実行するツール
@installation_1031_td
src
@installation_1032_td
Sourceファイル
@license_1000_h1
......@@ -6780,13 +6819,22 @@ SQLコマンドがコマンドエリアに表示されます。
@roadmap_1374_li
#Support very large deletes and updates
@roadmap_1375_h2
#Not Planned
@roadmap_1375_li
#Doclet (javadocs): constructors are not listed
@roadmap_1376_li
#HSQLDB (did) support this: select id i from test where i>0 (other databases don't). Supporting it may break compatibility.
#Support direct lookup for MIN and MAX when using WHERE (see todo.txt / Direct Lookup)
@roadmap_1377_li
#Support other array types (String[], double[]) in PreparedStatement.setObject(int, Object);
@roadmap_1378_h2
#Not Planned
@roadmap_1379_li
#HSQLDB (did) support this: select id i from test where i>0 (other databases don't). Supporting it may break compatibility.
@roadmap_1380_li
#String.intern (so that Strings can be compared with ==) will not be used because some VMs have problems when used extensively.
@search_1000_b
......@@ -7523,9 +7571,84 @@ Wikipedia: Block cipher modes of operation
@~advanced_1282_td
パスワードのセキュリティを増大する乱数。こちらもご覧下さい: <a href="http://en.wikipedia.org/wiki/Key_derivation_function">Wikipedia: Key derivation function</a>
@~changelog_1003_h2
#Version 1.0.69 (2008-03-29)
@~changelog_1014_li
#The recovery tool didn't work correctly for tables without rows.
@~changelog_1020_h2
#Version 1.0.68 (2008-03-18)
@~changelog_1031_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_1044_h2
#Version 1.0.67 (2008-02-22)
@~changelog_1055_li
#The value cache is now a soft reference cache. This should help save memory.
@~changelog_1067_h2
#Version 1.0.66 (2008-02-02)
@~changelog_1078_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_1084_h2
#Version 1.0.65 (2008-01-18)
@~changelog_1095_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_1107_h2
#Version 1.0.64 (2007-12-27)
@~changelog_1118_li
#New built-in functions RPAD and LPAD.
@~changelog_1133_h2
#Version 1.0.63 (2007-12-02)
@~changelog_1155_li
#The performance of large CSV operations has been improved.
@~changelog_1163_h2
#Version 1.0.61 (2007-11-10)
@~changelog_1174_li
#Descending indexes are now supported. This is useful when sorting columns descending, for example by creation date.
@~changelog_1178_h2
#Version 1.0.60 (2007-10-20)
@~changelog_1189_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_1190_h2
#Version 1.0.59 (2007-10-03)
@~changelog_1201_li
#REGEXP compatibility: So far String.matches was used, but for compatibility with MySQL, now Matcher.find is used.
@~changelog_1206_h2
#Version 1.0.58 (2007-09-15)
@~changelog_1217_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_1231_h2
#Version 1.0.57 (2007-08-25)
@~changelog_1242_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.
@~roadmap_1374_h2
#Not Planned
@~roadmap_1375_h2
#Not Planned
@~roadmap_1375_li
#HSQLDB (did) support this: select id i from test where i>0 (other databases don't). Supporting it may break compatibility.
......@@ -330,262 +330,273 @@ 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 (&\#..;) is automated by running the tool PropertiesToUTF8. The web site translation is automated as well, using <code>ant docs</code> .
changelog_1000_h1=Change Log
changelog_1001_h2=Next Version (unreleased)
changelog_1002_li=.
changelog_1003_h2=Version 1.0.69 (2008-03-29)
changelog_1004_li=Most command line tools can now be called from within the H2 Console.
changelog_1005_li=A new Shell tools is now included (org.h2.tools.Shell) to query a database from the command line.
changelog_1006_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_1007_li=New system property h2.sortNullsHigh to invert the default sorting behavior for NULL. The default didn't change.
changelog_1008_li=Performance was very slow when using LOG\=2 and deleting or updating all rows of a table in a loop. Fixed.
changelog_1009_li=ALTER TABLE or CREATE TABLE now support parameters for the password field.
changelog_1010_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_1011_li=TRACE_LEVEL_ settings are no longer persistent. This was a problem when database initialization code caused a lot of trace output.
changelog_1012_li=Fulltext search (native implementation)\: The words table is no longer an in-memory table because this caused memory problems in some cases.
changelog_1013_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_1014_li=The recovery tool didn't work correctly for tables without rows.
changelog_1015_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_1016_li=CSVWRITE caused a NullPointerException when not specifying a nullString.
changelog_1017_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_1018_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_1019_li=Altering a sequence didn't unlock the system table when autocommit switched off.
changelog_1020_h2=Version 1.0.68 (2008-03-18)
changelog_1021_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_1022_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_1023_li=Unused LOB files were deleted much too late. Now they are deleted if no longer referenced in memory.
changelog_1024_li=ALTER SEQUENCE and ALTER TABLE ALTER COLUMN RESTART can now be used inside a transaction.
changelog_1025_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_1026_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_1027_li=Improved performance when using lob files in directories (however this is still disabled by default)
changelog_1028_li=H2 Console\: autocomplete didn't work with very large scripts. Fixed.
changelog_1029_li=Fulltext search\: new method SEARCH_DATA that returns the column names and primary keys as arrays.
changelog_1030_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_1031_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_1032_li=H2 Console\: remote connections were very slow because getHostName/getRemoteHost was used. Fixed (now using getHostAddress/getRemoteAddr.
changelog_1033_li=H2 Console\: on Linux, Firefox, Konqueror, or Opera (in this order) are now started if available. This has been tested on Ubuntu.
changelog_1034_li=H2 Console\: the start window works better with IKVM
changelog_1035_li=H2 Console\: improved compatibility with Safari (Safari requires keep-alive)
changelog_1036_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_1037_li=SELECT UNION with a different number of ORDER BY columns did throw an ArrayIndexOutOfBoundsException.
changelog_1038_li=When using a view, the column precision was changed to the default scale for some data types.
changelog_1039_li=CSVWRITE now supports a 'null string' that is used for parsing and writing NULL.
changelog_1040_li=Some long running queries could not be cancelled.
changelog_1041_li=Queries with many outer join tables were very slow. Fixed.
changelog_1042_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_1043_li=UPDATE SET column\=DEFAULT is now supported.
changelog_1044_h2=Version 1.0.67 (2008-02-22)
changelog_1045_li=New function FILE_READ to read a file or from an URL. Both binary and text data is supported.
changelog_1046_li=CREATE TABLE AS SELECT now supports specifying the column list and data types.
changelog_1047_li=Connecting to a TCP server and at shutting it down at the same time could cause a Java level deadlock.
changelog_1048_li=A user now has all rights on his own local temporary tables.
changelog_1049_li=The CSV tool now supports a custom lineSeparator.
changelog_1050_li=When using multiple connections, empty space was reused too early sometimes. This could corrupt the database when recovering.
changelog_1051_li=The H2 Console has been translated to Dutch. Thanks a lot to Remco Schoen\!
changelog_1052_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_1053_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_1054_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_1055_li=The value cache is now a soft reference cache. This should help save memory.
changelog_1056_li=CREATE INDEX on a table with many rows could run out of memory. Fixed.
changelog_1057_li=Large result sets are now a bit faster.
changelog_1058_li=ALTER TABLE ALTER COLUMN RESTART and ALTER SEQUENCE now support parameters (any expressions).
changelog_1059_li=When setting the base directory on the command line, the user directory prefix ('~') was ignored.
changelog_1060_li=The DbStarter servlet didn't start the TCP listener even if configured.
changelog_1061_li=Statement.setQueryTimeout() is now supported.
changelog_1062_li=New session setting QUERY_TIMEOUT, and new system property h2.maxQueryTimeout.
changelog_1063_li=Changing the transaction log level (SET LOG) is now written to the trace file by default.
changelog_1064_li=In a SQL script, primary key constraints are now ordered before foreign key constraints.
changelog_1065_li=It was not possible to create a referential constraint to a table in a different schema in some situations.
changelog_1066_li=The H2 Console was slow when the database contains many tables. Now the column names are not shown in this case.
changelog_1067_h2=Version 1.0.66 (2008-02-02)
changelog_1068_li=There is a new online error analyzer tool.
changelog_1069_li=H2 Console\: stack traces are now links to the source code in the source repository (H2 database only).
changelog_1070_li=CHAR data type equals comparison was case insensitive instead of case sensitive.
changelog_1071_li=The exception 'Value too long for column' now includes the data.
changelog_1072_li=The table name was missing in the documentation of CREATE INDEX.
changelog_1073_li=Better support for IKVM (www.ikvm.net)\: the H2 Console now opens a browser window.
changelog_1074_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_1075_li=The exception "Hexadecimal string contains non-hex character" was not always thrown when it should have been. Fixed.
changelog_1076_li=The H2 Console now provides a link to the documentation when an error occurs (H2 databases only so far).
changelog_1077_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_1078_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_1079_li=For compatibility with other databases the column default (COLUMN_DEF) for columns without default is now null (it was an empty string).
changelog_1080_li=Statements that contain very large subqueries (where the subquery result does not fit in memory) are now faster.
changelog_1081_li=Variables\: large objects (CLOB and BLOB) that don't fit in memory did not work correctly when used as variables.
changelog_1082_li=Fulltext search is now supported in named in-memory databases.
changelog_1083_li=H2 Console\: multiple consecutive spaces in the setting name did not work. Fixed.
changelog_1084_h2=Version 1.0.65 (2008-01-18)
changelog_1085_li=The build (ant) now automatically switches the source code to the correct version (JDK 1.4/1.5 or 1.6).
changelog_1086_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_1087_li=The performance for DROP and DROP ALL OBJECTS has been improved.
changelog_1088_li=The ChangePassword API has been improved.
changelog_1089_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_1090_li=The Ukrainian translation has been improved.
changelog_1091_li=CALL statements can now be used in batch updates and called using Statement.executeUpdate.
changelog_1092_li=New read-only setting CREATE_BUILD (the build number of the database engine that created the database).
changelog_1093_li=The optimizer did not use multi column indexes for range queries in some cases. Fixed.
changelog_1094_li=The H2 Console now calls DataSource.getConnection() instead of DataSource.getConnection(user, password) when user name and password are not specified.
changelog_1095_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_1096_li=Batch update\: Calling BatchUpdateException.printStackTrace() could result in out of memory. Fixed.
changelog_1097_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_1098_li=The performance for large result sets in the server mode has been improved.
changelog_1099_li=The setting h2.serverSmallResultSetSize has been renamed to h2.serverResultSetFetchSize.
changelog_1100_li=The SCRIPT command now uses multi-row insert statements to save space except if the option SIMPLE is used.
changelog_1101_li=The SCRIPT command did not split up CLOB data correctly. Fixed.
changelog_1102_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_1103_li=DROP ALL OBJECTS did not drop user defined aggregate functions and domains.
changelog_1104_li=PostgreSQL compatibility\: COUNT(T.*) is now supported.
changelog_1105_li=LIKE comparisons are now faster.
changelog_1106_li=Encrypted databases are now faster.
changelog_1107_h2=Version 1.0.64 (2007-12-27)
changelog_1108_li=3-way union queries with prepared statement or views could return the wrong results. Fixed.
changelog_1109_li=The PostgreSQL ODBC driver did not work in the last release due to a parser regression. Fixed.
changelog_1110_li=CSV tool\: some escape/separator character combinations did not work. Fixed.
changelog_1111_li=CSV tool\: the character \# could not be used as a separator when reading.
changelog_1112_li=Recovery\: when the index file is corrupt, now the database deletes it and re-creates it automatically.
changelog_1113_li=The MVCC mode did not work well with in-memory databases. Fixed.
changelog_1114_li=The FTP server now supports a event listener. Thanks Fulvio Biondi for the help\!
changelog_1115_li=New system function CANCEL_SESSION to cancel the currently executing statement of another session.
changelog_1116_li=The database now supports an exclusive mode. In exclusive mode, new connections are rejected.
changelog_1117_li=H2 Console\: when editing result sets, columns can now be set to null. The text 'null' must be escaped using '\=null'.
changelog_1118_li=New built-in functions RPAD and LPAD.
changelog_1119_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_1120_li=The Ukrainian translation was not working in the last release. Fixed.
changelog_1121_li=Creating many tables (many hundreds) was slow. Fixed.
changelog_1122_li=Opening a database with many indexes (thousands) was slow. Fixed.
changelog_1123_li=H2 Console / autocomplete\: Ctrl+Space now shows the list in all modes.
changelog_1124_li=The method Trigger.init has been changed\: the parameters 'before' and 'type', have been added to the init method.
changelog_1125_li=The performance has been improved for ResultSet methods with column name.
changelog_1126_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_1127_li=The H2 Console has been translated to Turkish. Thanks a lot to Ridvan Agar\!
changelog_1128_li=Improved debugging support\: toString methods of most object now return a meaningful text.
changelog_1129_li=The classes DbStarter and WebServlet have been moved to src/main.
changelog_1130_li=The column INFORMATION_SCHEMA.TRIGGERS.SQL now contains the CREATE TRIGGER statement.
changelog_1131_li=Loading classes and calling methods can be restricted using the new system property h2.allowedClasses.
changelog_1132_li=The database could not be used in Java applets due to security exceptions. Fixed.
changelog_1133_h2=Version 1.0.63 (2007-12-02)
changelog_1134_li=The SecurePassword example has been improved.
changelog_1135_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_1136_li=The native fulltext search was not working properly after re-connecting.
changelog_1137_li=Improved FTP server\: now the PORT command is supported.
changelog_1138_li=Temporary views (FROM(...)) with UNION didn't work if nested. Fixed.
changelog_1139_li=Performance optimization for IN(...) and IN(SELECT...), currently disabled by default. To enable, use java -Dh2.optimizeInJoin\=true
changelog_1140_li=The H2 Console has been translated to Ukrainian by Igor Dobrovolskyi. Thanks a lot\!
changelog_1141_li=New function TABLE_DISTINCT.
changelog_1142_li=Using LIMIT with values close to Integer.MAX_VALUE didn't work correctly.
changelog_1143_li=Certain setting in the Server didn't work (http\://code.google.com/p/h2database/issues/detail?id\=7).
changelog_1144_h2=Version 1.0.62 (2007-11-25)
changelog_1145_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_1146_li=MVCC\: now an exception is thrown when an application tries to change the MVCC setting while the database is already open.
changelog_1147_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_1148_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_1149_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_1150_li=Duplicate column names were not detected when renaming columns. Fixed.
changelog_1151_li=The console did not display multiple embedded spaces in text correctly. Fixed.
changelog_1152_li=Google Android support\: use 'ant codeswitchAndroid' to switch the source code to Android.
changelog_1153_li=Values of type ARRAY are now sorted as in PostgreSQL.
changelog_1154_li=In the cluster mode, could not connect if only one server was running (last release only). Fixed.
changelog_1155_li=The performance of large CSV operations has been improved.
changelog_1156_li=Now using custom toString() for most JDBC objects and commands.
changelog_1157_li=Nested temporary views (SELECT * FROM (SELECT ...)) with parameters didn't work in some cases. Fixed.
changelog_1158_li=CSV\: Using an empty field delimiter didn't work (a workaround was using char(0)). Fixed.
changelog_1159_li=A patch for Apache DDL Utils is available at https\://issues.apache.org/jira/browse/DDLUTILS-185
changelog_1160_li=The default value for h2.emergencySpaceInitial is now 256 KB (to speed up creating encrypted databases)
changelog_1161_li=Eduardo Velasques has translated the H2 Console and the error messages to Brazilian Portuguese. Thanks a lot\!
changelog_1162_li=Creating a table from GROUP_CONCAT didn't work if the data was longer than 255 characters
changelog_1163_h2=Version 1.0.61 (2007-11-10)
changelog_1164_li=The Lucene Fulltext implementation is now compiled and included in the h2.jar. Requires Lucene 2.2.
changelog_1165_li=Added more tests. The code coverage is now at 83%.
changelog_1166_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_1167_li=The MODE used to be a global setting, now it is a database level setting.
changelog_1168_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_1169_li=Math operations using unknown data types (for example -? and ?+?) are now interpreted as decimal.
changelog_1170_li=INSTR, LOCATE\: backward searching is not supported by using a negative start position.
changelog_1171_li=Can now open a database stored in a jar or zip file (for example, jdbc\:h2\:zip\:c\:/temp/h2.zip\!/test).
changelog_1172_li=Files access now uses an API (FileSystem, FileObject), this will simplify adding other file systems and features (for example replication).
changelog_1173_li=Vlad Alexahin has translated H2 Console to Russian. Thanks a lot\!
changelog_1174_li=Descending indexes are now supported. This is useful when sorting columns descending, for example by creation date.
changelog_1175_li=Solved a Java level deadlock in the DatabaseCloser.
changelog_1176_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_1177_li=MVCC\: The system property h2.mvcc has been removed. A few bugs have been fixed, and new tests have been added.
changelog_1178_h2=Version 1.0.60 (2007-10-20)
changelog_1179_li=JdbcXAConnection\: starting a transaction before getting the connection didn't switch off autocommit.
changelog_1180_li=User defined aggregate functions are not supported.
changelog_1181_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_1182_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_1183_li=Linked tables\: now tables in non-default schemas are supported as well
changelog_1184_li=New Italian translation from PierPaolo Ucchino. Thanks a lot\!
changelog_1185_li=CSV\: New methods to set the escape character and field delimiter in the Csv tool and the CSVWRITE and CSVREAD methods.
changelog_1186_li=Prepared statements could not be used after data definition statements (creating tables and so on). Fixed.
changelog_1187_li=PreparedStatement.setMaxRows could not be changed to a higher value after the statement was executed.
changelog_1188_li=The H2 Console could not connect twice to the same H2 embedded database at the same time. Fixed.
changelog_1189_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_1190_h2=Version 1.0.59 (2007-10-03)
changelog_1191_li=When the data type was unknown in a subquery, sometimes the wrong exception (ArrayIndexOutOfBounds) was thrown. Fixed.
changelog_1192_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_1193_li=Multi-threaded kernel (MULTI_THREADED\=1)\: A synchronization problem has been fixed.
changelog_1194_li=A PreparedStatement that was cancelled could not be reused. Fixed.
changelog_1195_li=H2 Console\: Progress information when logging into a H2 embedded database (useful when opening a database is slow).
changelog_1196_li=When the database was closed while logging was disabled (LOG 0), re-opening the database was slow. Fixed.
changelog_1197_li=Fulltext search is now documented (in the Tutorial).
changelog_1198_li=The Console did not refresh the table list if the CREATE TABLE statement started with a comment. Fixed.
changelog_1199_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_1200_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_1201_li=REGEXP compatibility\: So far String.matches was used, but for compatibility with MySQL, now Matcher.find is used.
changelog_1202_li=SCRIPT\: the SQL statements in the result set now include the terminating semicolon as well. Simplifies copy and paste.
changelog_1203_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_1204_li=Views with subqueries as tables and queries with nested subqueries as tables did not always work. Fixed.
changelog_1205_li=Compatibility\: comparing columns with constants that are out of range does not throw an exception.
changelog_1206_h2=Version 1.0.58 (2007-09-15)
changelog_1207_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_1208_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_1209_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_1210_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_1211_li=When comparing TINYINT or SMALLINT columns against constants, the index was not used. Fixed.
changelog_1212_li=Maven 2\: new version are now automatically synced with the central repositories.
changelog_1213_li=The default value for MAX_MEMORY_UNDO is now 100000.
changelog_1214_li=The documentation indexer does no longer index Japanese pages. If somebody knows how to split Japanese into words please post it.
changelog_1215_li=Oracle compatibility\: SYSDATE now returns a timestamp. CHR(..) is now an alias for CHAR(..).
changelog_1216_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_1217_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_1218_li=Optimization for COLUMN IN(.., NULL) if the column does not allow NULL values.
changelog_1219_li=Using spaces in column and table aliases was not supported when used inside a view or temporary view.
changelog_1220_li=The version (build) number is now included in the manifest file.
changelog_1221_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_1222_li=The database file sizes are now increased at most 32 MB at any time.
changelog_1223_li=New method DatabaseEventListener.opened that is called just after opening a database.
changelog_1224_li=When using the Console with Internet Explorer 6.0 or 7.0, a Javascript error was thrown after clearing the query.
changelog_1225_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_1226_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_1227_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_1228_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_1229_li=For PgServer, character encoding other than UTF-8 did not work correctly. Fixed.
changelog_1230_li=Using a function in a GROUP BY expression that is used in a view as a condition did not always work.
changelog_1231_h2=Version 1.0.57 (2007-08-25)
changelog_1232_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_1233_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_1234_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_1235_li=Opening large read-only databases was very slow. Fixed.
changelog_1236_li=New Japanese translation of the error messages thanks to Ikemoto Masahiro. Thanks a lot\!
changelog_1237_li=Disabling / enabling referential integrity for a table can now be used inside a transaction.
changelog_1238_li=Rights checking for dynamic tables (SELECT * FROM (SELECT ...)) did not work. Fixed.
changelog_1239_li=Creating more than 10 views that depend on each other was very slow. Reconnecting was slow as well. Fixed.
changelog_1240_li=When used as as Servlet, the H2 Console did not work with SSL (using Tomcat). Fixed.
changelog_1241_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_1242_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_1243_li=Some unit tests failed on Linux because the file system works differently. The unit tests are fixed and should work now.
changelog_1244_li=Can now incrementally translate the documentation. See also FAQ.
changelog_1245_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_1246_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_1247_li=Google translate did not work for the H2 homepage. It should be fixed now.
changelog_1248_li=The CONVERT function did not work with views when using UNION.
changelog_1249_li=The build now issues a warning if the source code is switched to the wrong version.
changelog_1250_li=The default lock mode is now read committed instead of serialized.
changelog_1251_li=PG server\: data was truncated when reading large VARCHAR columns and decimal columns.
changelog_1252_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_1253_li=Some file operations didn't work for files in the root directory. Fixed.
changelog_1254_li=In the Restore tool, the parameter -file did not work. Fixed.
changelog_1255_li=Two-phase commit\: commit with transaction name was only supported in the recovery scan. Now it is always supported.
changelog_1256_li=The column name C_CURRENT_TIMESTAMP did not work in the last release.
changelog_1257_li=OpenOffice compatibility\: support database name in column names.
changelog_1002_li=The autocomplete in the H2 Console has been improved a bit.
changelog_1003_li=The tools in the H2 Console are now translatable.
changelog_1004_li=Invalid inline views threw confusing SQL exceptions.
changelog_1005_li=The Japanese translation of the error messages and the H2 Console has been improved. Thanks a lot to Masahiro IKEMOTO.
changelog_1006_li=Optimization for MIN() and MAX() when using MVCC.
changelog_1007_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_1008_li=After setting the query timeout and then resetting it, the next query would still timeout. Fixed.
changelog_1009_li=Adding a IDENTITY column to a table with data threw a lock timeout.
changelog_1010_li=OutOfMemoryError could occur when using EXISTS or IN(SELECT ..).
changelog_1011_li=The built-in connection pool is not called JdbcConnectionPool. The API and documentation has been changed.
changelog_1012_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_1013_li=Nested joins are now supported (A JOIN B JOIN C ON .. ON ..)
changelog_1014_h2=Version 1.0.69 (2008-03-29)
changelog_1015_li=Most command line tools can now be called from within the H2 Console.
changelog_1016_li=A new Shell tools is now included (org.h2.tools.Shell) to query a database from the command line.
changelog_1017_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_1018_li=New system property h2.sortNullsHigh to invert the default sorting behavior for NULL. The default didn't change.
changelog_1019_li=Performance was very slow when using LOG\=2 and deleting or updating all rows of a table in a loop. Fixed.
changelog_1020_li=ALTER TABLE or CREATE TABLE now support parameters for the password field.
changelog_1021_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_1022_li=TRACE_LEVEL_ settings are no longer persistent. This was a problem when database initialization code caused a lot of trace output.
changelog_1023_li=Fulltext search (native implementation)\: The words table is no longer an in-memory table because this caused memory problems in some cases.
changelog_1024_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_1025_li=The recovery tool didn't work correctly for tables without rows.
changelog_1026_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_1027_li=CSVWRITE caused a NullPointerException when not specifying a nullString.
changelog_1028_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_1029_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_1030_li=Altering a sequence didn't unlock the system table when autocommit switched off.
changelog_1031_h2=Version 1.0.68 (2008-03-18)
changelog_1032_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_1033_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_1034_li=Unused LOB files were deleted much too late. Now they are deleted if no longer referenced in memory.
changelog_1035_li=ALTER SEQUENCE and ALTER TABLE ALTER COLUMN RESTART can now be used inside a transaction.
changelog_1036_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_1037_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_1038_li=Improved performance when using lob files in directories (however this is still disabled by default)
changelog_1039_li=H2 Console\: autocomplete didn't work with very large scripts. Fixed.
changelog_1040_li=Fulltext search\: new method SEARCH_DATA that returns the column names and primary keys as arrays.
changelog_1041_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_1042_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_1043_li=H2 Console\: remote connections were very slow because getHostName/getRemoteHost was used. Fixed (now using getHostAddress/getRemoteAddr.
changelog_1044_li=H2 Console\: on Linux, Firefox, Konqueror, or Opera (in this order) are now started if available. This has been tested on Ubuntu.
changelog_1045_li=H2 Console\: the start window works better with IKVM
changelog_1046_li=H2 Console\: improved compatibility with Safari (Safari requires keep-alive)
changelog_1047_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_1048_li=SELECT UNION with a different number of ORDER BY columns did throw an ArrayIndexOutOfBoundsException.
changelog_1049_li=When using a view, the column precision was changed to the default scale for some data types.
changelog_1050_li=CSVWRITE now supports a 'null string' that is used for parsing and writing NULL.
changelog_1051_li=Some long running queries could not be cancelled.
changelog_1052_li=Queries with many outer join tables were very slow. Fixed.
changelog_1053_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_1054_li=UPDATE SET column\=DEFAULT is now supported.
changelog_1055_h2=Version 1.0.67 (2008-02-22)
changelog_1056_li=New function FILE_READ to read a file or from an URL. Both binary and text data is supported.
changelog_1057_li=CREATE TABLE AS SELECT now supports specifying the column list and data types.
changelog_1058_li=Connecting to a TCP server and at shutting it down at the same time could cause a Java level deadlock.
changelog_1059_li=A user now has all rights on his own local temporary tables.
changelog_1060_li=The CSV tool now supports a custom lineSeparator.
changelog_1061_li=When using multiple connections, empty space was reused too early sometimes. This could corrupt the database when recovering.
changelog_1062_li=The H2 Console has been translated to Dutch. Thanks a lot to Remco Schoen\!
changelog_1063_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_1064_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_1065_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_1066_li=The value cache is now a soft reference cache. This should help save memory.
changelog_1067_li=CREATE INDEX on a table with many rows could run out of memory. Fixed.
changelog_1068_li=Large result sets are now a bit faster.
changelog_1069_li=ALTER TABLE ALTER COLUMN RESTART and ALTER SEQUENCE now support parameters (any expressions).
changelog_1070_li=When setting the base directory on the command line, the user directory prefix ('~') was ignored.
changelog_1071_li=The DbStarter servlet didn't start the TCP listener even if configured.
changelog_1072_li=Statement.setQueryTimeout() is now supported.
changelog_1073_li=New session setting QUERY_TIMEOUT, and new system property h2.maxQueryTimeout.
changelog_1074_li=Changing the transaction log level (SET LOG) is now written to the trace file by default.
changelog_1075_li=In a SQL script, primary key constraints are now ordered before foreign key constraints.
changelog_1076_li=It was not possible to create a referential constraint to a table in a different schema in some situations.
changelog_1077_li=The H2 Console was slow when the database contains many tables. Now the column names are not shown in this case.
changelog_1078_h2=Version 1.0.66 (2008-02-02)
changelog_1079_li=There is a new online error analyzer tool.
changelog_1080_li=H2 Console\: stack traces are now links to the source code in the source repository (H2 database only).
changelog_1081_li=CHAR data type equals comparison was case insensitive instead of case sensitive.
changelog_1082_li=The exception 'Value too long for column' now includes the data.
changelog_1083_li=The table name was missing in the documentation of CREATE INDEX.
changelog_1084_li=Better support for IKVM (www.ikvm.net)\: the H2 Console now opens a browser window.
changelog_1085_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_1086_li=The exception "Hexadecimal string contains non-hex character" was not always thrown when it should have been. Fixed.
changelog_1087_li=The H2 Console now provides a link to the documentation when an error occurs (H2 databases only so far).
changelog_1088_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_1089_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_1090_li=For compatibility with other databases the column default (COLUMN_DEF) for columns without default is now null (it was an empty string).
changelog_1091_li=Statements that contain very large subqueries (where the subquery result does not fit in memory) are now faster.
changelog_1092_li=Variables\: large objects (CLOB and BLOB) that don't fit in memory did not work correctly when used as variables.
changelog_1093_li=Fulltext search is now supported in named in-memory databases.
changelog_1094_li=H2 Console\: multiple consecutive spaces in the setting name did not work. Fixed.
changelog_1095_h2=Version 1.0.65 (2008-01-18)
changelog_1096_li=The build (ant) now automatically switches the source code to the correct version (JDK 1.4/1.5 or 1.6).
changelog_1097_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_1098_li=The performance for DROP and DROP ALL OBJECTS has been improved.
changelog_1099_li=The ChangePassword API has been improved.
changelog_1100_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_1101_li=The Ukrainian translation has been improved.
changelog_1102_li=CALL statements can now be used in batch updates and called using Statement.executeUpdate.
changelog_1103_li=New read-only setting CREATE_BUILD (the build number of the database engine that created the database).
changelog_1104_li=The optimizer did not use multi column indexes for range queries in some cases. Fixed.
changelog_1105_li=The H2 Console now calls DataSource.getConnection() instead of DataSource.getConnection(user, password) when user name and password are not specified.
changelog_1106_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_1107_li=Batch update\: Calling BatchUpdateException.printStackTrace() could result in out of memory. Fixed.
changelog_1108_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_1109_li=The performance for large result sets in the server mode has been improved.
changelog_1110_li=The setting h2.serverSmallResultSetSize has been renamed to h2.serverResultSetFetchSize.
changelog_1111_li=The SCRIPT command now uses multi-row insert statements to save space except if the option SIMPLE is used.
changelog_1112_li=The SCRIPT command did not split up CLOB data correctly. Fixed.
changelog_1113_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_1114_li=DROP ALL OBJECTS did not drop user defined aggregate functions and domains.
changelog_1115_li=PostgreSQL compatibility\: COUNT(T.*) is now supported.
changelog_1116_li=LIKE comparisons are now faster.
changelog_1117_li=Encrypted databases are now faster.
changelog_1118_h2=Version 1.0.64 (2007-12-27)
changelog_1119_li=3-way union queries with prepared statement or views could return the wrong results. Fixed.
changelog_1120_li=The PostgreSQL ODBC driver did not work in the last release due to a parser regression. Fixed.
changelog_1121_li=CSV tool\: some escape/separator character combinations did not work. Fixed.
changelog_1122_li=CSV tool\: the character \# could not be used as a separator when reading.
changelog_1123_li=Recovery\: when the index file is corrupt, now the database deletes it and re-creates it automatically.
changelog_1124_li=The MVCC mode did not work well with in-memory databases. Fixed.
changelog_1125_li=The FTP server now supports a event listener. Thanks Fulvio Biondi for the help\!
changelog_1126_li=New system function CANCEL_SESSION to cancel the currently executing statement of another session.
changelog_1127_li=The database now supports an exclusive mode. In exclusive mode, new connections are rejected.
changelog_1128_li=H2 Console\: when editing result sets, columns can now be set to null. The text 'null' must be escaped using '\=null'.
changelog_1129_li=New built-in functions RPAD and LPAD.
changelog_1130_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_1131_li=The Ukrainian translation was not working in the last release. Fixed.
changelog_1132_li=Creating many tables (many hundreds) was slow. Fixed.
changelog_1133_li=Opening a database with many indexes (thousands) was slow. Fixed.
changelog_1134_li=H2 Console / autocomplete\: Ctrl+Space now shows the list in all modes.
changelog_1135_li=The method Trigger.init has been changed\: the parameters 'before' and 'type', have been added to the init method.
changelog_1136_li=The performance has been improved for ResultSet methods with column name.
changelog_1137_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_1138_li=The H2 Console has been translated to Turkish. Thanks a lot to Ridvan Agar\!
changelog_1139_li=Improved debugging support\: toString methods of most object now return a meaningful text.
changelog_1140_li=The classes DbStarter and WebServlet have been moved to src/main.
changelog_1141_li=The column INFORMATION_SCHEMA.TRIGGERS.SQL now contains the CREATE TRIGGER statement.
changelog_1142_li=Loading classes and calling methods can be restricted using the new system property h2.allowedClasses.
changelog_1143_li=The database could not be used in Java applets due to security exceptions. Fixed.
changelog_1144_h2=Version 1.0.63 (2007-12-02)
changelog_1145_li=The SecurePassword example has been improved.
changelog_1146_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_1147_li=The native fulltext search was not working properly after re-connecting.
changelog_1148_li=Improved FTP server\: now the PORT command is supported.
changelog_1149_li=Temporary views (FROM(...)) with UNION didn't work if nested. Fixed.
changelog_1150_li=Performance optimization for IN(...) and IN(SELECT...), currently disabled by default. To enable, use java -Dh2.optimizeInJoin\=true
changelog_1151_li=The H2 Console has been translated to Ukrainian by Igor Dobrovolskyi. Thanks a lot\!
changelog_1152_li=New function TABLE_DISTINCT.
changelog_1153_li=Using LIMIT with values close to Integer.MAX_VALUE didn't work correctly.
changelog_1154_li=Certain setting in the Server didn't work (http\://code.google.com/p/h2database/issues/detail?id\=7).
changelog_1155_h2=Version 1.0.62 (2007-11-25)
changelog_1156_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_1157_li=MVCC\: now an exception is thrown when an application tries to change the MVCC setting while the database is already open.
changelog_1158_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_1159_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_1160_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_1161_li=Duplicate column names were not detected when renaming columns. Fixed.
changelog_1162_li=The console did not display multiple embedded spaces in text correctly. Fixed.
changelog_1163_li=Google Android support\: use 'ant codeswitchAndroid' to switch the source code to Android.
changelog_1164_li=Values of type ARRAY are now sorted as in PostgreSQL.
changelog_1165_li=In the cluster mode, could not connect if only one server was running (last release only). Fixed.
changelog_1166_li=The performance of large CSV operations has been improved.
changelog_1167_li=Now using custom toString() for most JDBC objects and commands.
changelog_1168_li=Nested temporary views (SELECT * FROM (SELECT ...)) with parameters didn't work in some cases. Fixed.
changelog_1169_li=CSV\: Using an empty field delimiter didn't work (a workaround was using char(0)). Fixed.
changelog_1170_li=A patch for Apache DDL Utils is available at https\://issues.apache.org/jira/browse/DDLUTILS-185
changelog_1171_li=The default value for h2.emergencySpaceInitial is now 256 KB (to speed up creating encrypted databases)
changelog_1172_li=Eduardo Velasques has translated the H2 Console and the error messages to Brazilian Portuguese. Thanks a lot\!
changelog_1173_li=Creating a table from GROUP_CONCAT didn't work if the data was longer than 255 characters
changelog_1174_h2=Version 1.0.61 (2007-11-10)
changelog_1175_li=The Lucene Fulltext implementation is now compiled and included in the h2.jar. Requires Lucene 2.2.
changelog_1176_li=Added more tests. The code coverage is now at 83%.
changelog_1177_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_1178_li=The MODE used to be a global setting, now it is a database level setting.
changelog_1179_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_1180_li=Math operations using unknown data types (for example -? and ?+?) are now interpreted as decimal.
changelog_1181_li=INSTR, LOCATE\: backward searching is not supported by using a negative start position.
changelog_1182_li=Can now open a database stored in a jar or zip file (for example, jdbc\:h2\:zip\:c\:/temp/h2.zip\!/test).
changelog_1183_li=Files access now uses an API (FileSystem, FileObject), this will simplify adding other file systems and features (for example replication).
changelog_1184_li=Vlad Alexahin has translated H2 Console to Russian. Thanks a lot\!
changelog_1185_li=Descending indexes are now supported. This is useful when sorting columns descending, for example by creation date.
changelog_1186_li=Solved a Java level deadlock in the DatabaseCloser.
changelog_1187_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_1188_li=MVCC\: The system property h2.mvcc has been removed. A few bugs have been fixed, and new tests have been added.
changelog_1189_h2=Version 1.0.60 (2007-10-20)
changelog_1190_li=JdbcXAConnection\: starting a transaction before getting the connection didn't switch off autocommit.
changelog_1191_li=User defined aggregate functions are not supported.
changelog_1192_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_1193_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_1194_li=Linked tables\: now tables in non-default schemas are supported as well
changelog_1195_li=New Italian translation from PierPaolo Ucchino. Thanks a lot\!
changelog_1196_li=CSV\: New methods to set the escape character and field delimiter in the Csv tool and the CSVWRITE and CSVREAD methods.
changelog_1197_li=Prepared statements could not be used after data definition statements (creating tables and so on). Fixed.
changelog_1198_li=PreparedStatement.setMaxRows could not be changed to a higher value after the statement was executed.
changelog_1199_li=The H2 Console could not connect twice to the same H2 embedded database at the same time. Fixed.
changelog_1200_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_1201_h2=Version 1.0.59 (2007-10-03)
changelog_1202_li=When the data type was unknown in a subquery, sometimes the wrong exception (ArrayIndexOutOfBounds) was thrown. Fixed.
changelog_1203_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_1204_li=Multi-threaded kernel (MULTI_THREADED\=1)\: A synchronization problem has been fixed.
changelog_1205_li=A PreparedStatement that was cancelled could not be reused. Fixed.
changelog_1206_li=H2 Console\: Progress information when logging into a H2 embedded database (useful when opening a database is slow).
changelog_1207_li=When the database was closed while logging was disabled (LOG 0), re-opening the database was slow. Fixed.
changelog_1208_li=Fulltext search is now documented (in the Tutorial).
changelog_1209_li=The Console did not refresh the table list if the CREATE TABLE statement started with a comment. Fixed.
changelog_1210_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_1211_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_1212_li=REGEXP compatibility\: So far String.matches was used, but for compatibility with MySQL, now Matcher.find is used.
changelog_1213_li=SCRIPT\: the SQL statements in the result set now include the terminating semicolon as well. Simplifies copy and paste.
changelog_1214_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_1215_li=Views with subqueries as tables and queries with nested subqueries as tables did not always work. Fixed.
changelog_1216_li=Compatibility\: comparing columns with constants that are out of range does not throw an exception.
changelog_1217_h2=Version 1.0.58 (2007-09-15)
changelog_1218_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_1219_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_1220_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_1221_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_1222_li=When comparing TINYINT or SMALLINT columns against constants, the index was not used. Fixed.
changelog_1223_li=Maven 2\: new version are now automatically synced with the central repositories.
changelog_1224_li=The default value for MAX_MEMORY_UNDO is now 100000.
changelog_1225_li=The documentation indexer does no longer index Japanese pages. If somebody knows how to split Japanese into words please post it.
changelog_1226_li=Oracle compatibility\: SYSDATE now returns a timestamp. CHR(..) is now an alias for CHAR(..).
changelog_1227_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_1228_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_1229_li=Optimization for COLUMN IN(.., NULL) if the column does not allow NULL values.
changelog_1230_li=Using spaces in column and table aliases was not supported when used inside a view or temporary view.
changelog_1231_li=The version (build) number is now included in the manifest file.
changelog_1232_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_1233_li=The database file sizes are now increased at most 32 MB at any time.
changelog_1234_li=New method DatabaseEventListener.opened that is called just after opening a database.
changelog_1235_li=When using the Console with Internet Explorer 6.0 or 7.0, a Javascript error was thrown after clearing the query.
changelog_1236_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_1237_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_1238_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_1239_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_1240_li=For PgServer, character encoding other than UTF-8 did not work correctly. Fixed.
changelog_1241_li=Using a function in a GROUP BY expression that is used in a view as a condition did not always work.
changelog_1242_h2=Version 1.0.57 (2007-08-25)
changelog_1243_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_1244_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_1245_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_1246_li=Opening large read-only databases was very slow. Fixed.
changelog_1247_li=New Japanese translation of the error messages thanks to Ikemoto Masahiro. Thanks a lot\!
changelog_1248_li=Disabling / enabling referential integrity for a table can now be used inside a transaction.
changelog_1249_li=Rights checking for dynamic tables (SELECT * FROM (SELECT ...)) did not work. Fixed.
changelog_1250_li=Creating more than 10 views that depend on each other was very slow. Reconnecting was slow as well. Fixed.
changelog_1251_li=When used as as Servlet, the H2 Console did not work with SSL (using Tomcat). Fixed.
changelog_1252_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_1253_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_1254_li=Some unit tests failed on Linux because the file system works differently. The unit tests are fixed and should work now.
changelog_1255_li=Can now incrementally translate the documentation. See also FAQ.
changelog_1256_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_1257_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_1258_li=Google translate did not work for the H2 homepage. It should be fixed now.
changelog_1259_li=The CONVERT function did not work with views when using UNION.
changelog_1260_li=The build now issues a warning if the source code is switched to the wrong version.
changelog_1261_li=The default lock mode is now read committed instead of serialized.
changelog_1262_li=PG server\: data was truncated when reading large VARCHAR columns and decimal columns.
changelog_1263_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_1264_li=Some file operations didn't work for files in the root directory. Fixed.
changelog_1265_li=In the Restore tool, the parameter -file did not work. Fixed.
changelog_1266_li=Two-phase commit\: commit with transaction name was only supported in the recovery scan. Now it is always supported.
changelog_1267_li=The column name C_CURRENT_TIMESTAMP did not work in the last release.
changelog_1268_li=OpenOffice compatibility\: support database name in column names.
download_1000_h1=Downloads
download_1001_h3=Version 1.0.69 (2008-03-29, Current)
download_1002_a=Windows Installer
......@@ -1166,10 +1177,12 @@ installation_1023_td=docs/html
installation_1024_td=HTML pages
installation_1025_td=docs/javadoc
installation_1026_td=Javadoc files
installation_1027_td=service
installation_1028_td=Tools to run the database as a Windows Service
installation_1029_td=src
installation_1030_td=Source files
installation_1027_td=ext
installation_1028_td=External dependencies (downloaded when building)
installation_1029_td=service
installation_1030_td=Tools to run the database as a Windows Service
installation_1031_td=src
installation_1032_td=Source files
license_1000_h1=License
license_1001_h2=Summary and License FAQ
license_1002_p=This license is a modified version of the MPL 1.1 available at <a href\="http\://www.mozilla.org/MPL">www.mozilla.org/MPL</a> , the changes are
......@@ -2256,9 +2269,12 @@ roadmap_1371_li=Use a default delay of 1 second before closing a database.
roadmap_1372_li=Maven\: upload source code and javadocs as well
roadmap_1373_li=Write (log) to system table before adding to internal data structures
roadmap_1374_li=Support very large deletes and updates
roadmap_1375_h2=Not Planned
roadmap_1376_li=HSQLDB (did) support this\: select id i from test where i>0 (other databases don't). Supporting it may break compatibility.
roadmap_1377_li=String.intern (so that Strings can be compared with \=\=) will not be used because some VMs have problems when used extensively.
roadmap_1375_li=Doclet (javadocs)\: constructors are not listed
roadmap_1376_li=Support direct lookup for MIN and MAX when using WHERE (see todo.txt / Direct Lookup)
roadmap_1377_li=Support other array types (String[], double[]) in PreparedStatement.setObject(int, Object);
roadmap_1378_h2=Not Planned
roadmap_1379_li=HSQLDB (did) support this\: select id i from test where i>0 (other databases don't). Supporting it may break compatibility.
roadmap_1380_li=String.intern (so that Strings can be compared with \=\=) will not be used because some VMs have problems when used extensively.
search_1000_b=Search\:
search_1001_td=Highlight keyword(s)
search_1002_a=Home
......
Manifest-Version: 1.0
Implementation-Title: H2 Database Engine
Implementation-URL: http://www.h2database.com
Implementation-Version: ${version}
Build-Jdk: ${buildJdk}
Created-By: ${createdBy}
${mainClassTag}
......@@ -150,6 +150,7 @@ public class BackupCommand extends Prepared {
}
return f;
}
public boolean needRecompile() {
return false;
}
......
......@@ -87,6 +87,8 @@ public class Constants {
public static final int VERSION_MAJOR = 1;
public static final int VERSION_MINOR = 0;
public static final String VERSION = VERSION_MAJOR + "." + VERSION_MINOR + "." + BUILD_ID;
public static final int FILE_BLOCK_SIZE = 16;
public static final String MAGIC_FILE_HEADER_TEXT = "-- H2 0.5/T -- ".substring(0, FILE_BLOCK_SIZE - 1) + "\n";
......@@ -95,8 +97,8 @@ public class Constants {
public static final int VERSION_JDBC_MAJOR = 3;
public static final int VERSION_JDBC_MINOR = 0;
public static String getVersion() {
return VERSION_MAJOR + "." + VERSION_MINOR + "." + BUILD_ID + " (" + BUILD + ")";
public static String getFullVersion() {
return VERSION+ " (" + BUILD + ")";
}
public static final int DEFAULT_SERVER_PORT = 9092; // this is also in the docs
......
......@@ -65,7 +65,7 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
*/
public String getDatabaseProductVersion() {
debugCodeCall("getDatabaseProductVersion");
return Constants.getVersion();
return Constants.getFullVersion();
}
/**
......@@ -86,7 +86,7 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
*/
public String getDriverVersion() {
debugCodeCall("getDriverVersion");
return Constants.getVersion();
return Constants.getFullVersion();
}
/**
......
......@@ -216,7 +216,7 @@ public class TraceObject {
buff.append(i + 1);
buff.append(": ");
ParameterInterface p = (ParameterInterface) params.get(i);
if (p == null) {
if (p == null || p.getParamValue() == null) {
buff.append("unset");
} else {
buff.append(p.getParamValue().getSQL());
......
......@@ -262,7 +262,7 @@ public class PgServer implements Service {
}
public static String getVersion() {
return "PostgreSQL 8.1.4 server protocol using H2 " + Constants.getVersion();
return "PostgreSQL 8.1.4 server protocol using H2 " + Constants.getFullVersion();
}
public static Timestamp getStartTime() {
......
......@@ -32,9 +32,11 @@ import java.util.HashSet;
import org.h2.constant.SysProperties;
import org.h2.engine.ConnectionInfo;
import org.h2.jdbc.JdbcConnection;
import org.h2.message.Message;
import org.h2.util.IOUtils;
import org.h2.util.JdbcUtils;
import org.h2.util.ObjectUtils;
import org.h2.util.Resources;
import org.h2.util.ScriptReader;
/**
......@@ -605,7 +607,11 @@ public class PgServerThread implements Runnable {
}
}
}
r = new InputStreamReader(PgServerThread.class.getResourceAsStream("pg_catalog.sql"));
try {
r = new InputStreamReader(new ByteArrayInputStream(Resources.get("/org/h2/server/pg/pg_catalog.sql")));
} catch (IOException e) {
throw Message.convertIOException(e, "Can not read pg_catalog resource");
}
ScriptReader reader = new ScriptReader(new BufferedReader(r));
while (true) {
String sql = reader.readStatement();
......
......@@ -1033,7 +1033,7 @@ class WebThread extends Thread implements DatabaseEventListener {
writer.println("<html><head><link rel=\"stylesheet\" type=\"text/css\" href=\"stylesheet.css\" /></head>");
writer.println("<body><h2>Opening Database</h2>URL: " + PageParser.escapeHtml(url) + "<br />");
writer.println("User: " + PageParser.escapeHtml(user) + "<br />");
writer.println("Version: " + Constants.getVersion() + "<br /><br />");
writer.println("Version: " + Constants.getFullVersion() + "<br /><br />");
writer.flush();
log("Start...");
}
......@@ -1168,7 +1168,7 @@ class WebThread extends Thread implements DatabaseEventListener {
result = getStackTrace(0, t, false);
}
} else {
result = "Executing Java code is not allowed, use command line parameters -webScript true";
result = "Executing Java code is not allowed, use command line parameter -webScript";
}
} else if ("@AUTOCOMMIT TRUE".equals(sql)) {
conn.setAutoCommit(true);
......@@ -1266,28 +1266,10 @@ class WebThread extends Thread implements DatabaseEventListener {
out.println(importCode);
out.println("public class Java { public static Object run() throws Throwable {" + code + "}}");
out.close();
Process p = Runtime.getRuntime().exec("javac Java.java");
InputStream processIn = p.getInputStream();
InputStream processErrorIn = p.getErrorStream();
StringBuffer buff = new StringBuffer();
while (true) {
int c = processIn.read();
if (c == -1) {
break;
}
buff.append((char) c);
}
while (true) {
int c = processErrorIn.read();
if (c == -1) {
break;
}
buff.append((char) c);
}
String error = buff.toString().trim();
if (error.length() > 0) {
throw new Exception("Error compiling: " + error);
}
Class javacClass = Class.forName("com.sun.tools.javac.Main");
Method compile = javacClass.getMethod("compile", new Class[] { String[].class });
Object javac = javacClass.newInstance();
compile.invoke(javac, new Object[] { new String[]{"Java.java"}});
byte[] data = new byte[(int) classFile.length()];
DataInputStream in = new DataInputStream(new FileInputStream(classFile));
in.readFully(data);
......
......@@ -696,7 +696,7 @@ public class MetaTable extends Table {
add(rows, new String[]{"info.BUILD_ID", "" + Constants.BUILD_ID});
add(rows, new String[]{"info.VERSION_MAJOR", "" + Constants.VERSION_MAJOR});
add(rows, new String[]{"info.VERSION_MINOR", "" + Constants.VERSION_MINOR});
add(rows, new String[]{"info.VERSION", "" + Constants.getVersion()});
add(rows, new String[]{"info.VERSION", "" + Constants.getFullVersion()});
if (session.getUser().getAdmin()) {
String[] settings = new String[]{
"java.runtime.version",
......
......@@ -28,10 +28,9 @@ import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import org.h2.util.IOUtils;
import org.h2.util.Resources;
import java.io.IOException;
import java.io.InputStream;
//## AWT end ##
import java.sql.SQLException;
......@@ -142,12 +141,11 @@ ShutdownHandler {
}
private Image loadImage(String name) throws IOException {
InputStream in = Console.class.getResourceAsStream(name);
if (in != null) {
byte[] imageData = IOUtils.readBytesAndClose(in, -1);
return Toolkit.getDefaultToolkit().createImage(imageData);
byte[] imageData = Resources.get(name);
if (imageData == null) {
return null;
}
return null;
return Toolkit.getDefaultToolkit().createImage(imageData);
}
/**
......
......@@ -113,7 +113,7 @@ public class Shell {
private void promptLoop() {
out.println();
out.println("Welcome to H2 Shell " + Constants.getVersion());
out.println("Welcome to H2 Shell " + Constants.getFullVersion());
out.println("Exit with Ctrl+C");
if (conn != null) {
showHelp();
......
......@@ -6,6 +6,7 @@
package org.h2.util;
import java.io.BufferedWriter;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileWriter;
......@@ -13,6 +14,8 @@ import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.HashMap;
import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;
/**
* This class is responsible to read resources and generate the
......@@ -23,8 +26,40 @@ public class Resources {
private static final HashMap FILES = new HashMap();
static {
ResourceData.load();
if (!loadFromZip()) {
ResourceData.load();
}
}
private static boolean loadFromZip() {
InputStream in = Resources.class.getResourceAsStream("data.zip");
if (in == null) {
return false;
}
ZipInputStream zipIn = new ZipInputStream(in);
try {
while (true) {
ZipEntry entry = zipIn.getNextEntry();
if (entry == null) {
break;
}
String entryName = entry.getName();
if (!entryName.startsWith("/")) {
entryName = "/" + entryName;
}
ByteArrayOutputStream out = new ByteArrayOutputStream();
IOUtils.copy(zipIn, out);
zipIn.closeEntry();
FILES.put(entryName, out.toByteArray());
}
zipIn.close();
} catch (IOException e) {
// if this happens we have a real problem
e.printStackTrace();
}
return true;
}
public static void main(String[] args) throws Exception {
String inDir = args.length > 0 ? args[0] : null;
......
......@@ -17,6 +17,7 @@ import org.h2.tools.SimpleResultSet;
* This sample application shows how to use the CSV tool
* to write CSV (comma separated values) files, and
* how to use the tool to read such files.
* See also the section CSV (Comma Separated Values) Support in the Tutorial.
*/
public class CsvSample {
......
......@@ -159,6 +159,42 @@ java org.h2.test.TestAll timer
/*
build.sh
run.sh
jdbc:h2:zip:source.zip!/source
The database is read only [90097-69] 90097/90097 (Help)
org.h2.jdbc.JdbcSQLException: The database is read only [90097-69]
at org.h2.message.Message.getSQLException(Message.java:91)
at org.h2.message.Message.getSQLException(Message.java:95)
at org.h2.message.Message.getSQLException(Message.java:73)
at org.h2.message.Message.getSQLException(Message.java:116)
at org.h2.engine.Database.checkWritingAllowed(Database.java:1401)
at org.h2.log.LogSystem.add(LogSystem.java:410)
at org.h2.store.DiskFile.addRecord(DiskFile.java:867)
at org.h2.store.Storage.addRecord(Storage.java:141)
at org.h2.index.ScanIndex.add(ScanIndex.java:115)
at org.h2.table.TableData.addRow(TableData.java:97)
at org.h2.engine.Database.addMeta(Database.java:685)
at org.h2.engine.Database.addDatabaseObject(Database.java:759)
at org.h2.engine.Database.setMasterUser(Database.java:1364)
at org.h2.engine.Engine.openSession(Engine.java:63)
at org.h2.engine.Engine.getSession(Engine.java:104)
at org.h2.engine.Session.createSession(Session.java:203)
at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:976)
timebomb should interrupt all threads
Thread[] list = new Thread[1000];
Thread.currentThread().getThreadGroup().enumerate(list);
for (int i = 0; i < list.length; i++) {
Thread t = list[i];
if (t != null && t != Thread.currentThread()) {
System.out.println("interrupting " + t.toString());
t.interrupt();
test case for out of memory (try to corrupt the database using out of memory)
Caused by: java.lang.Error: read len -1170950400
at org.h2.message.Message.getInternalError(Message.java:128)
at org.h2.store.FileStore.readFully(FileStore.java:210)
......@@ -233,9 +269,19 @@ Add where required // TODO: change in version 1.1
http://www.w3schools.com/sql/
History:
The servlet and lucene jar files are now automatically downloaded in the build.
The servlet and lucene jar files are now automatically downloaded when building.
The code switch tool has been replaced by a simpler tool called
SwitchSource that just uses find and replace.
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.
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.
Roadmap:
......
/*
* Copyright 2004-2008 H2 Group. Licensed under the H2 License, Version 1.0
* (license2)
* Initial Developer: H2 Group
*/
package org.h2.build;
import java.io.File;
import java.io.IOException;
import java.util.List;
import org.h2.build.code.SwitchSource;
/**
* The implementation of the pure Java build.
*/
public class Build extends BuildBase {
public static void main(String[] args) {
new Build().run(args);
}
public void all() {
jarSmall();
javadoc();
docs();
}
public void docs() {
copy("docs", getFiles("src/docsrc/index.html"), "src/docsrc");
java("org.h2.build.code.CheckJavadoc", null);
java("org.h2.build.code.CheckTextFiles", null);
java("org.h2.build.doc.GenerateDoc", null);
java("org.h2.build.i18n.PrepareTranslation", null);
java("org.h2.build.i18n.PrepareTranslation", null);
java("org.h2.build.indexer.Indexer", null);
java("org.h2.build.doc.MergeDocs", null);
java("org.h2.build.doc.WebSite", null);
java("org.h2.build.doc.LinkChecker", null);
java("org.h2.build.doc.XMLChecker", null);
java("org.h2.build.doc.SpellChecker", null);
}
public void javadoc() {
delete("docs");
mkdir("docs/javadoc");
javadoc(new String[] { "-sourcepath", "src/main", "org.h2.jdbc", "org.h2.jdbcx",
"org.h2.tools", "org.h2.api", "org.h2.constant",
"-doclet", "org.h2.build.doclet.Doclet" });
copy("docs/javadoc", getFiles("src/docsrc/javadoc"), "src/docsrc/javadoc");
}
public void resources() {
List files = getFiles("src/main");
files = filterFiles(files, false, "*.java");
files = filterFiles(files, false, "*/package.html");
files = filterFiles(files, false, "*/java.sql.Driver");
zip("target/org/h2/util/data.zip", "src/main", files, true, false);
}
private void manifest(String mainClassName) {
String manifest = new String(readFile(new File("src/main/META-INF/MANIFEST.MF")));
String version = getStaticField("org.h2.engine.Constants", "VERSION");
manifest = replaceAll(manifest, "${version}", version);
manifest = replaceAll(manifest, "${buildJdk}", getJavaSpecVersion());
String createdBy = System.getProperty("java.runtime.version") + " (" + System.getProperty("java.vm.vendor")
+ ")";
manifest = replaceAll(manifest, "${createdBy}", createdBy);
String mainClassTag = manifest == null ? "" : "Main-Class: " + mainClassName;
manifest = replaceAll(manifest, "${mainClassTag}", mainClassTag);
writeFile(new File("target/META-INF/MANIFEST.MF"), manifest.getBytes());
}
public void jar() {
compile();
manifest("org.h2.tools.Console");
List files = getFiles("target");
files = filterFiles(files, false, "target/org/h2/dev/*");
files = filterFiles(files, false, "target/org/h2/build/*");
files = filterFiles(files, false, "target/org/h2/samples/*");
files = filterFiles(files, false, "target/org/h2/test/*");
files = filterFiles(files, false, "*.bat");
files = filterFiles(files, false, "*.txt");
jar("target/h2.jar", "target", files);
}
public void jarSmall() {
compile(false);
List files = getFiles("target");
files = filterFiles(files, false, "target/org/h2/dev/*");
files = filterFiles(files, false, "target/org/h2/build/*");
files = filterFiles(files, false, "target/org/h2/samples/*");
files = filterFiles(files, false, "target/org/h2/test/*");
files = filterFiles(files, false, "*.bat");
files = filterFiles(files, false, "*.txt");
files = filterFiles(files, false, "target/META-INF/*");
zip("target/h2classes.zip", "target", files, true, true);
manifest("org.h2.tools.Console\nClass-Path: h2classes.zip");
files = getFiles("target/h2classes.zip");
files.addAll(getFiles("target/META-INF"));
jar("target/h2small.jar", "target", files);
}
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",
"3fc542fe8bb8164e8d3e840fe7403bc0518053c0");
download("ext/lucene-core-2.2.0.jar",
"http://repo1.maven.org/maven2/org/apache/lucene/lucene-core/2.2.0/lucene-core-2.2.0.jar",
"47b6eee2e17bd68911e7045896a1c09de0b2dda8");
}
public void compile() {
compile(true);
}
private void compile(boolean debugInfo) {
try {
SwitchSource.main(new String[] { "-dir", "src", "-auto" });
} catch (IOException e) {
throw new Error(e);
}
clean();
resources();
download();
String classpath = "target" + File.pathSeparatorChar + "ext/servlet-api-2.4.jar" + File.pathSeparatorChar
+ "ext/lucene-core-2.2.0.jar" + File.pathSeparator + System.getProperty("java.home")
+ "/../lib/tools.jar";
List files = getFiles("src/main");
if (debugInfo) {
javac(new String[] { "-d", "target", "-sourcepath", "src/main", "-classpath", classpath }, files);
} else {
javac(new String[] { "-g:none", "-d", "target", "-sourcepath", "src/main", "-classpath", classpath }, files);
}
files = getFiles("src/test");
files.addAll(getFiles("src/tools"));
javac(new String[] { "-d", "target", "-sourcepath", "src/test" + File.pathSeparator + "src/tools",
"-classpath", classpath }, files);
files = getFiles("src/main/META-INF/services");
copy("target", files, "src/main");
files = getFiles("src/installer");
files = filterFiles(files, true, "*.bat");
copy("target", files, "src/installer");
files = getFiles("src/test");
files = filterFiles(files, false, "*.java");
files = filterFiles(files, false, "*/package.html");
copy("target", files, "src/test");
}
public void clean() {
delete("target");
delete("docs");
mkdir("target");
mkdir("docs");
}
public void test() {
}
}
/*
* Copyright 2004-2008 H2 Group. Licensed under the H2 License, Version 1.0
* (license2)
* Initial Developer: H2 Group
*/
package org.h2.build;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintStream;
import java.io.RandomAccessFile;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.net.URL;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.jar.JarOutputStream;
import java.util.zip.CRC32;
import java.util.zip.Deflater;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;
/**
* This class is a complete pure Java build tool. It allows to build this
* project without any external dependencies except a JDK.
* Advantages: ability to debug the build, extensible, flexible,
* no XML, a bit faster.
*/
public class BuildBase {
protected PrintStream out = System.out;
protected void run(String[] args) {
long time = System.currentTimeMillis();
if (args.length == 0) {
all();
} else {
for (int i = 0; i < args.length; i++) {
String a = args[i];
Method m = null;
try {
m = getClass().getMethod(a, new Class[0]);
} catch (Exception e) {
out.println("Unknown target: " + a);
projectHelp();
break;
}
out.println("Running target " + a);
try {
try {
m.invoke(this, new Object[0]);
} catch (InvocationTargetException e) {
throw e.getTargetException();
}
} catch (Throwable e) {
throw new Error(e);
}
}
}
out.println("Done in " + (System.currentTimeMillis() - time) + " ms");
}
protected void all() {
projectHelp();
}
protected void projectHelp() {
Method[] methods = getClass().getDeclaredMethods();
out.println("Targets:");
for (int i = 0; i < methods.length; i++) {
Method m = methods[i];
if ((m.getModifiers() & Modifier.STATIC) == 0 && m.getParameterTypes().length == 0) {
out.println(m.getName());
}
}
out.println();
}
private int exec(String command, String[] args) {
try {
out.print(command);
for (int i = 0; args != null && i < args.length; i++) {
out.print(" ");
out.print(args[i]);
}
out.println();
Process p = Runtime.getRuntime().exec(command, args);
copy(p.getInputStream(), out);
copy(p.getErrorStream(), out);
return p.exitValue();
} catch (Exception e) {
throw new Error("Error: " + e, e);
}
}
private void copy(InputStream in, OutputStream out) throws IOException {
while (true) {
int x = in.read();
if (x < 0) {
return;
}
out.write(x);
}
}
protected String getStaticField(String className, String fieldName) {
try {
Class clazz = Class.forName(className);
Field field = clazz.getField(fieldName);
return field.get(null).toString();
} catch (Exception e) {
throw new Error("Can not read field " + className + "." + fieldName, e);
}
}
protected void copy(String targetDir, List files, String baseDir) {
File target = new File(targetDir);
File base = new File(baseDir);
out.println("Copying " + files.size() + " files to " + target.getPath());
String basePath = base.getPath();
for (int i = 0; i < files.size(); i++) {
File f = (File) files.get(i);
File t = new File(target, removeBase(basePath, f.getPath()));
byte[] data = readFile(f);
t.getParentFile().mkdirs();
writeFile(t, data);
}
}
protected void javadoc(String[] args) {
int result;
try {
Class clazz = Class.forName("com.sun.tools.javadoc.Main");
Method execute = clazz.getMethod("execute", new Class[] { String[].class });
result = ((Integer) execute.invoke(null, new Object[] { args })).intValue();
} catch (Exception e) {
result = exec("javadoc", args);
}
if (result != 0) {
throw new Error("An error occured");
}
}
private String convertBytesToString(byte[] value) {
StringBuffer buff = new StringBuffer(value.length * 2);
for (int i = 0; i < value.length; i++) {
int c = value[i] & 0xff;
buff.append(Integer.toString(c >> 4, 16));
buff.append(Integer.toString(c & 0xf, 16));
}
return buff.toString();
}
private String getSHA1(byte[] data) {
MessageDigest md;
try {
md = MessageDigest.getInstance("SHA-1");
return convertBytesToString(md.digest(data));
} catch (NoSuchAlgorithmException e) {
throw new Error(e);
}
}
protected void download(String target, String fileURL, String sha1Checksum) {
File targetFile = new File(target);
if (targetFile.exists()) {
return;
}
targetFile.getParentFile().mkdirs();
ByteArrayOutputStream buff = new ByteArrayOutputStream();
try {
out.println("Downloading " + fileURL);
URL url = new URL(fileURL);
InputStream in = new BufferedInputStream(url.openStream());
long last = System.currentTimeMillis();
int len = 0;
while (true) {
long now = System.currentTimeMillis();
if (now > last + 1000) {
out.println("Downloaded " + len + " bytes");
last = now;
}
int x = in.read();
len++;
if (x < 0) {
break;
}
buff.write(x);
}
} catch (IOException e) {
throw new Error("Error downloading", e);
}
byte[] data = buff.toByteArray();
String got = getSHA1(data);
if (sha1Checksum == null) {
out.println("SHA1 checksum: " + got);
} else {
if (!got.equals(sha1Checksum)) {
throw new Error("SHA1 checksum mismatch");
}
}
writeFile(targetFile, data);
}
protected List getFiles(String path) {
ArrayList list = new ArrayList();
addFiles(list, new File(path));
return list;
}
private void addFiles(List list, File file) {
if (file.getName().startsWith(".svn")) {
} else if (file.isDirectory()) {
File[] files = file.listFiles();
for (int i = 0; i < files.length; i++) {
addFiles(list, files[i]);
}
} else {
list.add(file);
}
}
protected List filterFiles(List files, boolean keep, String mask) {
boolean start = false;
if (mask.endsWith("*")) {
mask = mask.substring(0, mask.length() - 1);
start = true;
} else if (mask.startsWith("*")) {
mask = mask.substring(1);
}
if (mask.indexOf('*') >= 0) {
throw new Error("Unsupported mask, may only start or end with *:" + mask);
}
// normalize / and \
mask = new File(mask).getPath();
ArrayList list = new ArrayList();
for (int i = 0; i < files.size(); i++) {
File f = (File) files.get(i);
String path = f.getPath();
boolean match = start ? path.startsWith(mask) : path.endsWith(mask);
if (match == keep) {
list.add(f);
}
}
return list;
}
private String removeBase(String basePath, String path) {
if (path.startsWith(basePath)) {
path = path.substring(basePath.length());
}
path = path.replace('\\', '/');
if (path.startsWith("/")) {
path = path.substring(1);
}
return path;
}
protected void writeFile(File file, byte[] data) {
try {
RandomAccessFile ra = new RandomAccessFile(file, "rw");
ra.write(data);
ra.close();
} catch (IOException e) {
throw new Error("Error writing to file " + file, e);
}
}
protected byte[] readFile(File file) {
try {
RandomAccessFile ra = new RandomAccessFile(file, "r");
long len = ra.length();
if (len >= Integer.MAX_VALUE) {
throw new Error("File " + file.getPath() + " is too large");
}
byte[] buffer = new byte[(int) len];
ra.readFully(buffer);
ra.close();
return buffer;
} catch (IOException e) {
throw new Error("Error reading from file " + file, e);
}
}
private String getSuffix(String fileName) {
int idx = fileName.lastIndexOf('.');
return idx < 0 ? "" : fileName.substring(idx);
}
protected void jar(String destFile, String basePath, List files) {
zipOrJar(destFile, basePath, files, false, false, true);
}
protected void zip(String destFile, String basePath, List files, boolean storeOnly, boolean sortBySuffix) {
zipOrJar(destFile, basePath, files, storeOnly, sortBySuffix, false);
}
protected void zipOrJar(String destFile, String basePath, List files, boolean storeOnly, boolean sortBySuffix, boolean jar) {
if (sortBySuffix) {
// for better compressibility, sort by suffix, then name
Collections.sort(files, new Comparator() {
public int compare(Object o1, Object o2) {
String p1 = ((File) o1).getPath();
String p2 = ((File) o2).getPath();
int comp = getSuffix(p1).compareTo(getSuffix(p2));
if (comp == 0) {
comp = p1.compareTo(p2);
}
return comp;
}
});
}
new File(destFile).getParentFile().mkdirs();
// normalize the path (replace / with \ if required)
basePath = new File(basePath).getPath();
try {
OutputStream out = new BufferedOutputStream(new FileOutputStream(destFile));
ZipOutputStream zipOut;
if (jar) {
zipOut = new JarOutputStream(out);
} else {
zipOut = new ZipOutputStream(out);
}
if (storeOnly) {
zipOut.setMethod(ZipOutputStream.STORED);
}
zipOut.setLevel(Deflater.BEST_COMPRESSION);
for (int i = 0; i < files.size(); i++) {
File file = (File) files.get(i);
String fileName = file.getPath();
String entryName = removeBase(basePath, fileName);
byte[] data = readFile(file);
ZipEntry entry = new ZipEntry(entryName);
CRC32 crc = new CRC32();
crc.update(data);
entry.setSize(file.length());
entry.setCrc(crc.getValue());
zipOut.putNextEntry(entry);
zipOut.write(data);
zipOut.closeEntry();
}
zipOut.closeEntry();
zipOut.close();
} catch (IOException e) {
throw new Error("Error creating file " + destFile, e);
}
}
protected String getJavaSpecVersion() {
return System.getProperty("java.specification.version");
}
private List getPaths(List files) {
ArrayList list = new ArrayList(files.size());
for (int i = 0; i < files.size(); i++) {
list.add(((File) files.get(i)).getPath());
}
return list;
}
protected void javac(String[] args, List files) {
out.println("Compiling " + files.size() + " classes");
ArrayList argList = new ArrayList(Arrays.asList(args));
argList.addAll(getPaths(filterFiles(files, true, ".java")));
args = new String[argList.size()];
argList.toArray(args);
int result;
try {
Class clazz = Class.forName("com.sun.tools.javac.Main");
Method compile = clazz.getMethod("compile", new Class[] { String[].class });
Object instance = clazz.newInstance();
result = ((Integer) compile.invoke(instance, new Object[] { args })).intValue();
} catch (Exception e) {
e.printStackTrace();
result = exec("javac", args);
}
if (result != 0) {
throw new Error("An error occured");
}
}
protected void java(String className, String[] args) {
out.println("Executing " + className);
try {
Method main = Class.forName(className).getMethod("main", new Class[] { String[].class });
main.invoke(null, new Object[] { args });
} catch (Exception e) {
throw new Error(e);
}
}
protected void mkdir(String dir) {
if (!new File(dir).mkdirs()) {
throw new Error("Can not create directory " + dir);
}
}
protected void delete(String path) {
out.println("Deleting " + path);
delete(new File(path));
}
private void delete(File f) {
if (f.exists()) {
if (f.isDirectory()) {
File[] list = f.listFiles();
for (int i = 0; i < list.length; i++) {
delete(list[i]);
}
}
if (!f.delete()) {
throw new Error("Can not delete " + f.getPath());
}
}
}
protected String replaceAll(String s, String before, String after) {
int index = 0;
while (true) {
int next = s.indexOf(before, index);
if (next < 0) {
return s;
}
s = s.substring(0, next) + after + s.substring(next + before.length());
index = next + after.length();
}
}
}
......@@ -21,9 +21,10 @@ public class CheckTextFiles {
new CheckTextFiles().run();
}
String[] suffixCheck = new String[] { "html", "jsp", "js", "css", "bat", "nsi", "java", "txt", "properties", "sql",
"xml", "csv", "Driver" };
String[] suffixIgnore = new String[] { "gif", "png", "odg", "ico", "sxd", "layout", "res", "win", "jar", "task", "svg" };
String[] suffixCheck = new String[] { "html", "jsp", "js", "css", "bat", "nsi",
"java", "txt", "properties", "sql", "xml", "csv", "Driver" };
String[] suffixIgnore = new String[] { "gif", "png", "odg", "ico", "sxd",
"layout", "res", "win", "jar", "task", "svg", "MF" };
boolean failOnError;
boolean allowTab, allowCR = true, allowTrailingSpaces = true;
int spacesPerTab = 4;
......
/*
* Copyright 2004-2008 H2 Group. Licensed under the H2 License, Version 1.0
* (license2)
* Initial Developer: H2 Group
*/
package org.h2.build.code;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.RandomAccessFile;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Enumeration;
import java.util.Properties;
import java.util.Vector;
/**
* This application allows to switch source code to different 'modes', so that
* it can be compiled for different JDKs.
*/
public class CodeSwitch {
// TODO codeswitch: compatibility with ant 'Replace' task is possible
private boolean recurse;
private ArrayList list = new ArrayList();
private ArrayList switchOn = new ArrayList();
private ArrayList switchOff = new ArrayList();
private ArrayList switches = new ArrayList();
private byte[] file;
private String endOfLine;
private ArrayList lines;
private boolean changed;
public static void main(String[] argv) throws Exception {
new CodeSwitch().run(argv);
}
private void run(String[] a) throws Exception {
if (a.length == 0) {
showUsage();
return;
}
String propertiesFile = null, property = null, value = null;
boolean path = false;
recurse = true;
for (int i = 0; i < a.length; i++) {
String p = a[i];
if (p.startsWith("+")) {
switchOn.add(p.substring(1));
} else if (p.startsWith("-r+")) {
// (default)
recurse = true;
} else if (p.startsWith("-r-")) {
recurse = false;
} else if (p.startsWith("-set")) {
propertiesFile = a[++i];
property = a[++i];
value = a[++i];
} else if (p.startsWith("-")) {
switchOff.add(p.substring(1));
} else {
addDir(p, true);
path = true;
}
}
if (!path) {
printError("no path specified");
showUsage();
}
process();
if (switchOff.size() == 0 && switchOn.size() == 0) {
printSwitches();
}
if (propertiesFile != null) {
setProperty(propertiesFile, property, value);
}
}
private static class SortedProperties extends Properties {
private static final long serialVersionUID = 3926204645298674434L;
public synchronized Enumeration keys() {
Vector v = new Vector(keySet());
Collections.sort(v);
return v.elements();
}
}
private void setProperty(String propertiesFile, String property, String value) throws IOException {
SortedProperties prop = new SortedProperties();
InputStream in = new BufferedInputStream(new FileInputStream(propertiesFile));
prop.load(in);
in.close();
prop.setProperty(property, value);
OutputStream out = new BufferedOutputStream(new FileOutputStream(propertiesFile));
prop.store(out, null);
out.close();
}
private void showUsage() {
String className = getClass().getName();
System.out.println("Usage: java " + className + " [-r+] [-r-] paths [+|-][labels] [-set file property value]");
System.out.println("If no labels are specified then all used");
System.out.println("labels in the source code are shown.");
System.out.println("-r+ recurse subdirectories (default)");
System.out.println("-r- do not recurse subdirectories");
System.out.println("-set will update a value in a properties file after switching");
System.out.println("Use +MODE to switch on code labeled MODE");
System.out.println("Use -MODE to switch off code labeled MODE");
System.out.println("Path: Any number of path or files may be specified.");
System.out.println(" Use . for the current directory (including sub-directories).");
System.out.println("Example: java " + className + " +JAVA2 .");
System.out.println("This example switches on code labeled JAVA2 in all *.java files");
System.out.println("in the current directory and all subdirectories.");
}
private void process() {
int len = list.size();
for (int i = 0; i < len; i++) {
String fileName = (String) list.get(i);
if (!processFile(fileName)) {
System.out.println("in file " + fileName + " - this file is skipped");
}
}
}
private void printSwitches() {
System.out.println("Used labels:");
for (int i = 0; i < switches.size(); i++) {
System.out.println((String) (switches.get(i)));
}
}
private void addDir(String path, boolean recurseMore) {
File f = new File(path);
if (f.isFile() && path.endsWith(".java")) {
list.add(path);
} else if (f.isDirectory()) {
if (recurse || recurseMore) {
// one recursion at least
String[] files = f.list();
for (int i = 0; i < files.length; i++) {
addDir(path + File.separatorChar + files[i], false);
}
}
}
}
// lines are terminated with \r, \n or \r\n
private void breakIntoLines() {
lines = new ArrayList();
int len = file.length;
int last = 0;
int cr = 0, lf = 0, crlf = 0;
for (int i = 0; i < len; i++) {
byte c = file[i];
if (c == '\r' || c == '\n') {
if (c == '\r') {
if (i < len - 1 && file[i + 1] == '\n') {
i++;
crlf++;
} else {
cr++;
}
} else {
lf++;
}
if (i < len) {
lines.add(new String(file, last, i - last + 1));
last = i + 1;
}
}
}
if (cr > lf && cr > crlf) {
endOfLine = "\r";
} else if (lf > crlf) {
endOfLine = "\n";
} else {
endOfLine = "\r\n";
}
lines.add(new String(file, last, len - last));
}
private String getLine(int line) {
return (String) lines.get(line);
}
private void insertLine(int line, String s) {
lines.add(line, s);
changed = true;
}
private void removeLine(int line) {
lines.remove(line);
changed = true;
}
private boolean processFile(String name) {
File f = new File(name);
boolean off = false;
boolean working = false;
int state = 0;
try {
long rawLen = f.length();
if (rawLen > Integer.MAX_VALUE) {
printError("Files bigger than Integer.MAX_VALUE are not supported");
return false;
}
int len = (int) rawLen;
file = new byte[len];
RandomAccessFile read = new RandomAccessFile(f, "r");
read.readFully(file);
read.close();
breakIntoLines();
changed = false;
for (int i = 0; i < lines.size(); i++) {
String line = getLine(i);
String lineTrim = line.trim();
if (working) {
if (lineTrim.startsWith("/*") || lineTrim.startsWith("*/")) {
removeLine(i);
i--;
continue;
}
}
if (lineTrim.startsWith("//#")) {
if (lineTrim.startsWith("//#ifdef ")) {
if (state != 0) {
printError("//#ifdef not allowed inside " + "//#ifdef");
return false;
}
state = 1;
String s = lineTrim.substring(9);
boolean switchedOn = false;
boolean switchedOff = false;
if (switchOn.indexOf(s) != -1) {
switchedOn = true;
}
if (switchOff.indexOf(s) != -1) {
switchedOff = true;
}
if (s.indexOf("&&") != -1) {
switchedOn = true;
s += "&&";
while (s.length() > 0) {
int id = s.indexOf("&&");
if (id == -1) {
break;
}
String s1 = s.substring(0, id).trim();
s = s.substring(id + 2).trim();
if (switches.indexOf(s1) == -1) {
switches.add(s1);
switchedOn = false;
}
if (switchOn.indexOf(s1) == -1) {
switchedOff = true;
switchedOn = false;
}
if (switchOff.indexOf(s1) != -1) {
switchedOff = true;
switchedOn = false;
}
}
}
if (switchedOn) {
working = true;
off = false;
} else if (switchedOff) {
working = true;
insertLine(++i, "/*" + endOfLine);
off = true;
}
if (switches.indexOf(s) == -1) {
switches.add(s);
}
} else if (lineTrim.startsWith("//#else")) {
if (state != 1) {
printError("//#else without " + "//#ifdef");
return false;
}
state = 2;
if (working) {
if (off) {
insertLine(++i, "*/" + endOfLine);
off = false;
} else {
insertLine(++i, "/*" + endOfLine);
off = true;
}
}
} else if (lineTrim.startsWith("//#endif")) {
if (state == 0) {
printError("//#endif without " + "//#ifdef");
return false;
}
state = 0;
if (working && off) {
insertLine(i++, "*/" + endOfLine);
}
working = false;
}
}
}
if (state != 0) {
printError("//#endif missing");
return false;
}
if (changed) {
File fileNew = new File(name + ".new");
FileWriter write = new FileWriter(fileNew);
for (int i = 0; i < lines.size(); i++) {
write.write(getLine(i));
}
write.close();
File fileBack = new File(name + ".bak");
fileBack.delete();
f.renameTo(fileBack);
File fileCopy = new File(name);
fileNew.renameTo(fileCopy);
fileBack.delete();
System.out.println(name);
}
return true;
} catch (Exception e) {
printError(e);
return false;
}
}
private static void printError(Exception e) {
e.printStackTrace();
}
private static void printError(String s) {
System.out.println("ERROR: " + s);
}
}
......@@ -33,7 +33,7 @@ public class SpellChecker {
private boolean printDictionary = false;
private boolean addToDictionary;
private static final String[] SUFFIX = new String[] { "html", "java", "sql", "txt", "xml", "jsp", "css", "bat",
"csv", "xml", "js", "Driver", "properties", "task", "" };
"csv", "xml", "js", "Driver", "properties", "task", "MF", "" };
private static final String[] IGNORE = new String[] { "dev", "nsi", "gif", "png", "odg", "ico", "sxd", "zip",
"bz2", "rc", "layout", "res", "dll", "jar", "svg" };
private static final String PREFIX_IGNORE = "abc";
......
......@@ -64,7 +64,7 @@ classes classification classloader classloaders classpath clause clazz clean
cleaned cleaner clear cleared clearing clearly clears cleartext click clicked
clicking client clients clientside clob clock clone close closed closely closer
closes closing clubs cluster clustered clustering cmd cmu cnt coalesce code
codebase codebook coded codehaus codes codist coffee col coldrick coll
codebase codebook coded codehaus codes codeswitch codist coffee col coldrick coll
collaborative collapse collateral collation collations collator collators collect
collected collecting collection collections collector colon color cols colspan
column columnlist columns com combination combinations combinatorics combine
......@@ -490,4 +490,6 @@ hider ikvmc invert recycle filtering lesser recycled assertion runner teradata
christian lgpl elapsed ncr disposed heureuse tera years retrieves unlocked
selecting vista everywhere locations zones fragment svg thought constructors
doubles validating matched established accu accum stats resetting parallel
delays guess downloaded jars
\ No newline at end of file
delays guess downloaded jars advantages interrupt javen sourcepath unneeded
compressibility ext crc enumerate components mkdir jant downloading mismatch
timebomb
\ No newline at end of file
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Copyright 2004-2008 H2 Group. Licensed under the H2 License, Version 1.0 (http://h2database.com/html/license.html).
Initial Developer: H2 Group
-->
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
Javadoc package documentation
</title></head><body style="font: 9pt/130% Tahoma, Arial, Helvetica, sans-serif; font-weight: normal;">
The pure Java build system and implementation.
</body></html>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论