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

--no commit message

--no commit message
上级 7f06fba8
......@@ -199,10 +199,10 @@ database fails fast: a concurrent update exception is thrown.
</p>
<p>
To use the MVCC feature, append MVCC=TRUE to the database URL:
</p>
<pre>
jdbc:h2:~/test;MVCC=TRUE
</pre>
</p>
<p>
The MVCC feature is not fully tested yet.
</p>
......@@ -406,22 +406,28 @@ The Windows version of the PostgreSQL ODBC driver is available at
<h3>Starting the Server</h3>
<p>
After installing the ODBC driver, start the H2 Server using the command line:
</p>
<pre>
java -cp h2.jar org.h2.tools.Server
</pre>
<p>
The PG Server (PG for PostgreSQL protocol) is started as well.
By default, databases are stored in the current working directory where the server is started.
Use -baseDir to save databases in another directory, for example the user home directory:
</p>
<pre>
java -cp h2.jar org.h2.tools.Server -baseDir ~
</pre>
<p>
The PG server can be started and stopped from within a Java application as follows:
</p>
<pre>
Server server = Server.createPgServer(new String[]{"-baseDir", "~"});
server.start();
...
server.stop();
</pre>
<p>
By default, only connections from localhost are allowed. To allow remote connections, use
<code>-pgAllowOthers true</code> when starting the server.
</p>
......@@ -644,9 +650,11 @@ consult the source code of the listener and test application.
The recover tool can be used to extract the contents of a data file, even if the database is corrupted.
At this time, it does not extract the content of the log file or large objects (CLOB or BLOB).
To run the tool, type on the command line:
</p>
<pre>
java org.h2.tools.Recover
</pre>
<p>
For each database in the current directory, a text file will be created.
This file contains raw insert statement (for the data) and data definition (DDL) statement to recreate
the schema of the database. This file cannot be executed directly, as the raw insert statements
......@@ -821,19 +829,23 @@ SELECT * FROM USERS WHERE LENGTH(PASSWORD)=ZERO();
<p>
By default there is no restriction on loading classes and executing Java code for admins.
That means an admin may call system functions such as System.setProperty by executing:
</p>
<pre>
CREATE ALIAS SET_PROPERTY FOR "java.lang.System.setProperty";
CALL SET_PROPERTY('abc', '1');
CREATE ALIAS GET_PROPERTY FOR "java.lang.System.getProperty";
CALL GET_PROPERTY('abc');
</pre>
<p>
To restrict users (including admins) from loading classes and executing code,
the list of allowed classes can be set in the system property h2.allowedClasses
in the form of a comma separated list of classes or patterns (items ending with '*').
By default all classes are allowed. Example:
</p>
<pre>
java -Dh2.allowedClasses=java.lang.Math,com.acme.*
</pre>
<p>
This mechanism is used for all user classes, including database event listeners,
trigger classes, user-defined functions, user-defined aggregate functions, and JDBC
driver classes (with the exception of the H2 driver) when using the H2 Console.
......@@ -973,6 +985,7 @@ Standardized randomly generated UUIDs have 122 random bits.
This database supports generating such UUIDs using the built-in function RANDOM_UUID().
Here is a small program to estimate the probability of having two identical UUIDs
after generating a number of values:
</p>
<pre>
double x = Math.pow(2, 122);
for(int i=35; i&lt;62; i++) {
......@@ -982,12 +995,15 @@ for(int i=35; i&lt;62; i++) {
System.out.println("2^"+i+"="+(1L&lt;&lt;i)+" probability: 0"+ps);
}
</pre>
<p>
Some values are:
</p>
<pre>
2^36=68'719'476'736 probability: 0.000'000'000'000'000'4
2^41=2'199'023'255'552 probability: 0.000'000'000'000'4
2^46=70'368'744'177'664 probability: 0.000'000'000'4
</pre>
<p>
To help non-mathematicians understand what those numbers mean, here a comparison:
One's annual risk of being hit by a meteorite is estimated to be one chance in 17 billion,
that means the probability is about 0.000'000'000'06.
......@@ -1000,9 +1016,11 @@ Some settings of the database can be set on the command line using
-DpropertyName=value. It is usually not required to change those settings manually.
The settings are case sensitive.
Example:
</p>
<pre>
java -Dh2.serverCachedObjects=256 org.h2.tools.Server
</pre>
<p>
The current value of the settings can be read in the table
INFORMATION_SCHEMA.SETTINGS.
</p>
......
......@@ -52,18 +52,24 @@ Newer version or compatible software works too.
<h2>Building the Software</h2>
<p>
On the command line, go to the directory src and execute the following command:
</p>
<pre>
ant -projecthelp
</pre>
<p>
You will get a list of targets. If you want to build the jar files, execute:
</p>
<pre>
ant jar
</pre>
<p>
To create a jar file with the JDBC API and the classes required to connect to a server only,
use the target jarClient:
</p>
<pre>
ant jarClient
</pre>
<p>
The other targets may be used as well.
</p>
......@@ -90,10 +96,13 @@ they are available there.
<h3>Using Snapshot Version</h3>
<p>
To build a 'snapshot' H2 .jar file and upload it the to the local Maven 2 repository, execute the following command:
</p>
<pre>
ant mavenInstallLocal
</pre>
<p>
Afterwards, you can include the database in your Maven 2 project as a dependency:
</p>
<pre>
&lt;dependency&gt;
&lt;groupId&gt;com.h2database&lt;/groupId&gt;
......@@ -101,7 +110,6 @@ Afterwards, you can include the database in your Maven 2 project as a dependency
&lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
&lt;/dependency&gt;
</pre>
</p>
<br /><a name="translating"></a>
<h2>Translating</h2>
......@@ -114,7 +122,7 @@ The translation of this software is split into the following parts:
</li><li>Web site: src/docsrc/text/_docs_*.utf8.txt
</li></ul>
<p>
The conversion between UTF-8 and Java encoding (using the \u syntax), as well as the HTML entities (&#..;)
The conversion between UTF-8 and Java encoding (using the \u syntax), as well as the HTML entities (&amp;#..;)
is automated by running the tool PropertiesToUTF8. The web site translation is automated as well,
using <code>ant docs</code>.
</p>
......
......@@ -297,7 +297,8 @@ As in all modes, both persistent and in-memory databases are supported.
There is no limit on the number of database open concurrently,
or on the number of open connections.
</p>
<img src="images/connection-mode-embedded.png" />
<img src="images/connection-mode-embedded.png"
alt="The database is embedded in the application" />
<h3>Remote Mode</h3>
<p>
......@@ -311,7 +312,8 @@ As in all modes, both persistent and in-memory databases are supported.
There is no limit on the number of database open concurrently,
or on the number of open connections.
</p>
<img src="images/connection-mode-remote.png" />
<img src="images/connection-mode-remote.png"
alt="The database is running in a server; the application connects to the server" />
<h3>Mixed Mode</h3>
<p>
......@@ -320,7 +322,8 @@ The main application connects to a database in embedded mode, but also starts
a server so that other applications (running in different virtual machines) can
concurrently access the same data.
</p>
<img src="images/connection-mode-mixed.png" />
<img src="images/connection-mode-mixed.png"
alt="The database and the server is running inside the application; another application connects remotely" />
<br /><a name="database_url"></a>
<h2>Database URL Overview</h2>
......@@ -525,15 +528,19 @@ in this case it is up to the application to protect the database files.
<p>
To open the database with a different file locking method, use the parameter 'FILE_LOCK'.
The following code opens the database with the 'socket' locking method:
</p>
<pre>
String url = "jdbc:h2:~/test;FILE_LOCK=SOCKET";
</pre>
<p>
The following code forces the database to not create a lock file at all. Please note that
this is unsafe as another process is able to open the same database, possibly leading to
data corruption:
</p>
<pre>
String url = "jdbc:h2:~/test;FILE_LOCK=NO";
</pre>
<p>
For more information about the algorithms please see in Advanced Topics under
File Locking Protocol.
</p>
......@@ -564,9 +571,11 @@ The automatic closing of the database can be delayed or disabled with the SQL st
SET DB_CLOSE_DELAY &lt;seconds&gt;. The seconds specifies the number of seconds to keep
a database open after the last connection to it was closed. For example the following statement
will keep the database open for 10 seconds:
</p>
<pre>
SET DB_CLOSE_DELAY 10
</pre>
<p>
The value -1 means the database is never closed automatically.
The value 0 is the default and means the database is closed when the last connection is closed.
This setting is persistent and can be set by an administrator only.
......@@ -636,9 +645,11 @@ Also supported are 'rws' and 'rwd'.
The access mode used for log files is set via ACCESS_MODE_LOG; for
data and index files use ACCESS_MODE_DATA.
These settings must be specified in the database URL:
</p>
<pre>
String url = "jdbc:h2:~/test;ACCESS_MODE_LOG=rws;ACCESS_MODE_DATA=rws";
</pre>
<p>
For more information see <a href="advanced.html#durability_problems">Durability Problems</a>.
On many operating systems the access mode 'rws' does not guarantee that the data is written to the disk.
</p>
......@@ -934,17 +945,19 @@ There are two settings, one for System.out (TRACE_LEVEL_SYSTEM_OUT) tracing,
and one for file tracing (TRACE_LEVEL_FILE).
The trace levels are 0 for OFF, 1 for ERROR (the default), 2 for INFO and 3 for DEBUG.
A database URL with both levels set to DEBUG is:
</p>
<pre>
jdbc:h2:~/test;TRACE_LEVEL_FILE=3;TRACE_LEVEL_SYSTEM_OUT=3
</pre>
<p>
The trace level can be changed at runtime by executing the SQL command
<code>SET TRACE_LEVEL_SYSTEM_OUT level</code> (for System.out tracing)
or <code>SET TRACE_LEVEL_FILE level</code> (for file tracing).
Example:
</p>
<pre>
SET TRACE_LEVEL_SYSTEM_OUT 3
</pre>
</p>
<h3>Setting the Maximum Size of the Trace File</h3>
<p>
......@@ -963,6 +976,7 @@ SET TRACE_MAX_FILE_SIZE 1
<p>
When setting the trace level to INFO or DEBUG, Java source code is generated as well, so that
problem can be reproduced more easily. The trace file looks like this:
</p>
<pre>
...
12-20 20:58:09 jdbc[0]:
......@@ -971,12 +985,16 @@ problem can be reproduced more easily. The trace file looks like this:
/**/dbMeta3.getTables(null, "", null, new String[]{"TABLE", "VIEW"});
...
</pre>
<p>
You need to filter out the lines without /**/ to get the Java source code.
In Windows, a simple way to do that is:
</p>
<pre>
find "**" test.trace.db > Trace.java
</pre>
<p>
Afterwards, you need to complete the file Trace.java before it can be compiled, for example with:
</p>
<pre>
import java.sql.*;
public class Trace { public static void main(String[]a)throws Exception {
......@@ -984,6 +1002,7 @@ Class.forName("org.h2.Driver");
...
}}
</pre>
<p>
Also, the user name and password needs to be set, because they are not listed in the trace file.
</p>
......@@ -1090,6 +1109,7 @@ Function indexes are not directly supported by this database, but they can be ea
by using computed columns. For example, if an index on the upper-case version of
a column is required, just create a computed column with the upper-case version of the original column,
and index this column:
</p>
<pre>
CREATE TABLE ADDRESS(
ID INT PRIMARY KEY,
......@@ -1098,14 +1118,15 @@ CREATE TABLE ADDRESS(
);
CREATE INDEX IDX_U_NAME ON ADDRESS(UPPER_NAME);
</pre>
<p>
When inserting data, it is not required (better: not allowed) to specify a value for the upper-case
version of the column, because the value is generated. But you can use the
column when querying the table:
</p>
<pre>
INSERT INTO ADDRESS(ID, NAME) VALUES(1, 'Miller');
SELECT * FROM ADDRESS WHERE UPPER_NAME='MILLER';
</pre>
</p>
<br /><a name="multi_dimensional"></a>
<h2>Multi-Dimensional Indexes</h2>
......@@ -1160,6 +1181,7 @@ password will not be stored in the swap file.
</p><p>
This database supports using char arrays instead of String to pass user and file passwords.
The following code can be used to do that:
</p>
<pre>
Class.forName("org.h2.Driver");
String url = "jdbc:h2:~/simple";
......@@ -1177,6 +1199,7 @@ try {
Arrays.fill(password, 0);
}
</pre>
<p>
In this example, the password is hard code in the application, which is not secure of course.
However, Java Swing supports a way to get passwords using a char array (JPasswordField).
</p>
......@@ -1204,6 +1227,7 @@ In this database, Java functions can be used as stored procedures as well.
A function must be declared (registered) before it can be used.
Only static Java methods are supported; both the class and the method must be public.
Example Java method:
</p>
<pre>
package org.h2.samples;
...
......@@ -1213,10 +1237,13 @@ public class Function {
}
}
</pre>
<p>
The Java function must be registered in the database by calling CREATE ALIAS:
</p>
<pre>
CREATE ALIAS IS_PRIME FOR "org.h2.samples.Function.isPrime"
</pre>
<p>
For a complete sample application, see src/test/org/h2/samples/Function.java.
</p>
......@@ -1242,6 +1269,7 @@ and the exception is thrown to the application.
<h3>Functions returning a Result Set</h3>
<p>
Functions may returns a result set. Such a function can be called with the CALL statement:
</p>
<pre>
public static ResultSet query(Connection conn, String sql) throws SQLException {
return conn.createStatement().executeQuery(sql);
......@@ -1250,11 +1278,11 @@ public static ResultSet query(Connection conn, String sql) throws SQLException {
CREATE ALIAS QUERY FOR "org.h2.samples.Function.query";
CALL QUERY('SELECT * FROM TEST');
</pre>
</p>
<h3>Using SimpleResultSet</h3>
<p>
A function that returns a result set can create this result set from scratch using the SimpleResultSet tool:
</p>
<pre>
import org.h2.tools.SimpleResultSet;
...
......@@ -1270,7 +1298,6 @@ public static ResultSet simpleResultSet() throws SQLException {
CREATE ALIAS SIMPLE FOR "org.h2.samples.Function.simpleResultSet";
CALL SIMPLE();
</pre>
</p>
<h3>Using a Function as a Table</h3>
<p>
......@@ -1281,6 +1308,7 @@ First while parsing the statement to collect the column names
And then, while executing the statement to get the data (may be repeatedly if this is a join).
If the function is called just to get the column list, the URL of the connection passed to the function is
jdbc:columnlist:connection. Otherwise, the URL of the connection is jdbc:default:connection.
</p>
<pre>
public static ResultSet getMatrix(Integer id) throws SQLException {
SimpleResultSet rs = new SimpleResultSet();
......@@ -1300,7 +1328,6 @@ public static ResultSet getMatrix(Integer id) throws SQLException {
CREATE ALIAS MATRIX FOR "org.h2.samples.Function.getMatrix";
SELECT * FROM MATRIX(3) WHERE X>0;
</pre>
</p>
<br /><a name="triggers"></a>
<h2>Triggers</h2>
......@@ -1310,6 +1337,7 @@ Triggers can be used for complex consistency checks, or to update related data i
It is also possible to use triggers to simulate materialized views.
For a complete sample application, see src/test/org/h2/samples/TriggerSample.java.
A Java trigger must implement the interface org.h2.api.Trigger:
</p>
<pre>
import org.h2.api.Trigger;
...
......@@ -1322,12 +1350,15 @@ public class TriggerSample implements Trigger {
}
}
</pre>
<p>
The connection can be used to query or update data in other tables.
The trigger then needs to be defined in the database:
</p>
<pre>
CREATE TRIGGER INV_INS AFTER INSERT ON INVOICE
FOR EACH ROW CALL "org.h2.samples.TriggerSample"
</pre>
<p>
The trigger can be used to veto a change, by throwing a SQL Exception.
</p>
......@@ -1339,6 +1370,7 @@ To re-build the indexes, the simplest way is to delete the .index.db file
while the database is closed. However in some situations (for example after deleting
a lot of data in a database), one sometimes wants to shrink the size of the database
(compact a database). Here is a sample function to do this:
</p>
<pre>
public static void compact(String dir, String dbName,
String user, String password) throws Exception {
......@@ -1349,6 +1381,7 @@ public static void compact(String dir, String dbName,
RunScript.execute(url, user, password, file, null, false);
}
</pre>
<p>
See also the sample application org.h2.samples.Compact.
The commands SCRIPT / RUNSCRIPT can be used as well to create a backup
of a database and re-build the database from the script.
......
......@@ -98,11 +98,13 @@ and the write delay is 1 second (SET WRITE_DELAY 1).
HSQLDB is fast when using simple operations.
HSQLDB is very slow in the last test (BenchC: Transactions), probably because is has a bad query optimizer.
One query where HSQLDB is slow is a two-table join:
</p>
<pre>
SELECT COUNT(DISTINCT S_I_ID) FROM ORDER_LINE, STOCK
WHERE OL_W_ID=? AND OL_D_ID=? AND OL_O_ID&lt;? AND OL_O_ID>=?
AND S_W_ID=? AND S_I_ID=OL_I_ID AND S_QUANTITY&lt;?
</pre>
<p>
The PolePosition benchmark also shows that the query optimizer does not do a very good job for some queries.
A disadvantage in HSQLDB is the slow startup / shutdown time (currently not listed) when using bigger databases.
The reason is, a backup of the database is created whenever the database is opened or closed.
......
......@@ -391,7 +391,7 @@ Roadmap
</li><li>The RunScript tool should support interactive mode (reading from system in). Password using a second thread.
</li><li>Add regular javadocs to the homepage.
</li><li>The database should be kept open for a longer time when using the server mode.
</li><li>Javadocs: for each tool, add a copy & paste sample in the class level.
</li><li>Javadocs: for each tool, add a copy &amp; paste sample in the class level.
</li><li>Add google site search to web page.
</li><li>Javadocs: add @author tags.
</li><li>SET LOG_SYSTEM {NATIVE|LOG4J|COMMONS|DRIVER_MANAGER}
......@@ -406,6 +406,7 @@ Roadmap
</li><li>Support other array types (String[], double[]) in PreparedStatement.setObject(int, Object);
</li><li>MVCC should not be memory bound (uncommitted data is kept in memory in the delta index; maybe using a regular btree index solves the problem).
</li><li>Support CREATE TEMPORARY LINKED TABLE.
</li><li>MySQL compatibility: SELECT @variable := x FROM SYSTEM_RANGE(1, 50);
</li></ul>
<h2>Not Planned</h2>
......
......@@ -110,9 +110,11 @@ It is possible to compile the software to different platforms.
<h3>Testing Java</h3>
<p>
To check the Java version you have installed, open a command prompt and type:
</p>
<pre>
java -version
</pre>
<p>
If you get an error message, you may need to add the Java binary directory to the path environment variable.
</p>
......@@ -137,10 +139,12 @@ The relevant entry is webPort.
<p>
If starting the server from a console window was successful,
a new window will open and display the following text:
</p>
<pre>
H2 Server running on port 9092
Webserver running on https://localhost:8082/
</pre>
<p>
Don't click inside this window; otherwise you might block the application (if you have the Fast-Edit mode enabled).
</p>
......@@ -225,6 +229,7 @@ or close the console window.
<p>
To connect to a database, a Java application first needs to load the database driver,
and then get a connection. A simple way to do that is using the following code:
</p>
<pre>
import java.sql.*;
public class Test {
......@@ -237,6 +242,7 @@ public class Test {
}
}
</pre>
<p>
This code first loads the driver (<code>Class.forName()</code>)
and then opens a connection (using <code>DriverManager.getConnection()</code>).
The driver name is <code>"org.h2.Driver"</code> in every case.
......@@ -264,13 +270,17 @@ The servers can be started in different ways.
<h3>Starting the Server from Command Line</h3>
<p>
To start the Server from the command line with the default settings, run
</p>
<pre>
java org.h2.tools.Server
</pre>
<p>
This will start the Server with the default options. To get the list of options and default values, run
</p>
<pre>
java org.h2.tools.Server -?
</pre>
<p>
There are options available to use different ports, and start or not start
parts of the Server and so on. For details, see the API documentation of the Server tool.
</p>
......@@ -290,6 +300,7 @@ For details about the database URL, see also in Features.
<h3>Starting the Server within an Application</h3>
<p>
It is also possible to start and stop a Server from within an application. Sample code:
</p>
<pre>
import org.h2.tools.Server;
...
......@@ -299,19 +310,22 @@ Server server = Server.createTcpServer(args).start();
// stop the TCP Server
server.stop();
</pre>
</p>
<h3>Stopping a TCP Server from Another Process</h3>
<p>
The TCP Server can be stopped from another process.
To stop the server from the command line, run:
</p>
<pre>
java org.h2.tools.Server -tcpShutdown tcp://localhost:9092
</pre>
<p>
To stop the server from a user application, use the following code:
</p>
<pre>
org.h2.tools.Server.shutdownTcpServer("tcp://localhost:9094");
</pre>
<p>
This function will call System.exit on the server.
This function should be called after all connections to the databases are closed
to avoid recovery when the databases are opened the next time.
......@@ -374,11 +388,13 @@ The server mode is similar, but it allows you to run the server in another proce
<p>
Add the h2.jar file your web application, and
add the following snippet to your web.xml file (after context-param and before filter):
</p>
<pre>
&lt;listener>
&lt;listener-class>org.h2.server.web.DbStarter&lt;/listener-class>
&lt;/listener>
</pre>
<p>
For details on how to access the database, see the code DbStarter.java
</p>
......@@ -393,25 +409,26 @@ and the CSV library can be used outside the database as a standalone tool.
<p>
The built-in function CSVWRITE can be used to create a CSV file from a query.
Example:
</p>
<pre>
CREATE TABLE TEST(ID INT, NAME VARCHAR);
INSERT INTO TEST VALUES(1, 'Hello'), (2, 'World');
CALL CSVWRITE('test.csv', 'SELECT * FROM TEST');
</pre>
</p>
<h3>Reading a CSV File from Within a Database</h3>
<p>
A CSV file can be read using the function CSVREAD. Example:
</p>
<pre>
SELECT * FROM CSVREAD('test.csv');
</pre>
</p>
<h3>Writing a CSV File from a Java Application</h3>
<p>
The CSV tool can be used in a Java application even when not using a database at all.
Example:
</p>
<pre>
import org.h2.tools.Csv;
import org.h2.tools.SimpleResultSet;
......@@ -424,12 +441,12 @@ 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>
<h3>Reading a CSV File from a Java Application</h3>
<p>
It is possible to read a CSV file without opening a database.
Example:
</p>
<pre>
import org.h2.tools.Csv;
...
......@@ -443,7 +460,6 @@ while (rs.next()) {
}
rs.close();
</pre>
</p>
<br /><a name="upgrade_backup_restore"></a>
<h2>Upgrade, Backup, and Restore</h2>
......@@ -461,9 +477,11 @@ There are different ways to backup a database. For example, it is possible to co
However, this is not recommended while the database is in use. Also, the database files are not human readable
and quite large. The recommended way to backup a database is to create a compressed SQL script file.
This can be done using the Script tool:
</p>
<pre>
java org.h2.tools.Script -url jdbc:h2:~/test -user sa -script test.zip -options compression zip
</pre>
<p>
It is also possible to use the SQL command SCRIPT to create the backup of the database.
For more information about the options, see the SQL command SCRIPT.
The backup can be done remotely, however the file will be created on the server side.
......@@ -473,9 +491,11 @@ The built in FTP server could be used to retrieve the file from the server.
<h3>Restore from a Script</h3>
<p>
To restore a database from a SQL script file, you can use the RunScript tool:
</p>
<pre>
java org.h2.tools.RunScript -url jdbc:h2:~/test -user sa -script test.zip -options compression zip
</pre>
<p>
For more information about the options, see the SQL command RUNSCRIPT.
The restore can be done remotely, however the file needs to be on the server side.
The built in FTP server could be used to copy the file to the server.
......@@ -492,9 +512,11 @@ with all database files. However, the contents of this file are not human readab
Other than the SCRIPT statement, the BACKUP statement does not lock the
database objects, and therefore does not block other users. The resulting
backup is transactionally consistent:
</p>
<pre>
BACKUP TO 'backup.zip'
</pre>
<p>
The Backup tool (org.h2.tools.Backup) can not be used to create a online backup;
the database must not be in use while running this program.
</p>
......@@ -583,12 +605,12 @@ When using Java Web Start / JNLP (Java Network Launch Protocol), permissions tag
and the application .jar file must be signed. Otherwise, when trying to write to the file system, the following
exception will occur: java.security.AccessControlException: access denied (java.io.FilePermission ... read).
Example permission tags:
</p>
<pre>
&lt;security>
&lt;all-permissions/>
&lt;/security>
</pre>
</p>
<br /><a name="connection_pool"></a>
<h2>Using a Connection Pool</h2>
......@@ -602,6 +624,7 @@ a connection pool). A simple connection pool is included in H2. It is based on t
from Christian d'Heureuse. There are other, more complex connection pools available, for example
<a href="http://jakarta.apache.org/commons/dbcp/">DBCP</a>. The build-in
connection pool is used as follows:
</p>
<pre>
// init
import org.h2.jdbcx.*;
......@@ -620,7 +643,6 @@ conn.close();
// dispose
cp.dispose();
</pre>
</p>
<br /><a name="fulltext"></a>
<h2>Fulltext Search</h2>
......@@ -721,9 +743,11 @@ There are no restrictions on the assigned values; large objects (LOBs) are suppo
<h2>Date and Time</h2>
<p>
Date, time and timestamp values support ISO 8601 formatting, including time zone:
</p>
<pre>
CALL TIMESTAMP '2008-01-01 12:00:00+01:00';
</pre>
<p>
If the time zone is not set, the value is parsed using the current time zone setting of the system.
Date and time information is stored in H2 database files in GMT (Greenwich Mean Time).
If the database is opened using another system time zone, the date and time will change accordingly.
......
......@@ -992,7 +992,7 @@ Error messages: src/main/org/h2/res/_messages_*.properties
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> .
The conversion between UTF-8 and Java encoding (using the \u syntax), as well as the HTML entities (&amp;#..;) is automated by running the tool PropertiesToUTF8. The web site translation is automated as well, using <code>ant docs</code> .
@changelog_1000_h1
Change Log
......@@ -1001,822 +1001,834 @@ Change Log
Next Version (unreleased)
@changelog_1002_li
The autocomplete in the H2 Console has been improved a bit.
Multi version concurrency (MVCC): when a row was updated, and the updated column was not indexed, this update was visible sometimes for other sessions even if it was not committed.
@changelog_1003_li
The tools in the H2 Console are now translatable.
Calling SHUTDOWN on one connection and starting a query on another connection concurrently could result in a Java level deadlock.
@changelog_1004_li
The servlet and lucene jar files are now automatically downloaded when building.
New system property h2.enableAnonymousSSL (default: true) to enable anonymous SSL connections.
@changelog_1005_li
The code switch tool has been replaced by a simpler tool called SwitchSource that just uses find and replace.
The precision if SUBSTR is now calculated if possible.
@changelog_1006_li
Started to write a Ant replacement ('JAnt') that uses pure Java build definitions. Advantages: ability to debug the build, extensible, flexible, no XML, a bit faster. Future plan: support creating custom h2 distributions (for embedded use). Maybe create a new project 'Jant' or 'Javen' if other people are interested.
The autocomplete in the H2 Console has been improved a bit.
@changelog_1007_li
The jar file is now about 10% smaller because the variable debugging info is no longer included. The source file and line number debugging info is still included. If required, the jar file size of the full version can be further reduced to about 720 KB using 'build jarSmall' or even more by removing unneeded components.
The tools in the H2 Console are now translatable.
@changelog_1008_li
Added shell scripts run.sh and build.sh. chmod +x is required, but otherwise it should work. Feedback or improvements are welcome!
The servlet and lucene jar files are now automatically downloaded when building.
@changelog_1009_li
Databases in zip files: large queries are now support. Temp files are created in the temp directory if required. The documentation how to create the zip file has been corrected.
The code switch tool has been replaced by a simpler tool called SwitchSource that just uses find and replace.
@changelog_1010_li
Invalid inline views threw confusing SQL exceptions.
Started to write a Ant replacement ('JAnt') that uses pure Java build definitions. Advantages: ability to debug the build, extensible, flexible, no XML, a bit faster. Future plan: support creating custom h2 distributions (for embedded use). Maybe create a new project 'Jant' or 'Javen' if other people are interested.
@changelog_1011_li
The Japanese translation of the error messages and the H2 Console has been improved. Thanks a lot to Masahiro IKEMOTO.
The jar file is now about 10% smaller because the variable debugging info is no longer included. The source file and line number debugging info is still included. If required, the jar file size of the full version can be further reduced to about 720 KB using 'build jarSmall' or even more by removing unneeded components.
@changelog_1012_li
Optimization for MIN() and MAX() when using MVCC.
Added shell scripts run.sh and build.sh. chmod +x is required, but otherwise it should work. Feedback or improvements are welcome!
@changelog_1013_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.
Databases in zip files: large queries are now support. Temp files are created in the temp directory if required. The documentation how to create the zip file has been corrected.
@changelog_1014_li
After setting the query timeout and then resetting it, the next query would still timeout. Fixed.
Invalid inline views threw confusing SQL exceptions.
@changelog_1015_li
Adding a IDENTITY column to a table with data threw a lock timeout.
The Japanese translation of the error messages and the H2 Console has been improved. Thanks a lot to Masahiro IKEMOTO.
@changelog_1016_li
OutOfMemoryError could occur when using EXISTS or IN(SELECT ..).
Optimization for MIN() and MAX() when using MVCC.
@changelog_1017_li
The built-in connection pool is not called JdbcConnectionPool. The API and documentation has been changed.
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_1018_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).
After setting the query timeout and then resetting it, the next query would still timeout. Fixed.
@changelog_1019_li
Adding a IDENTITY column to a table with data threw a lock timeout.
@changelog_1020_li
OutOfMemoryError could occur when using EXISTS or IN(SELECT ..).
@changelog_1021_li
The built-in connection pool is not called JdbcConnectionPool. The API and documentation has been changed.
@changelog_1022_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_1023_li
Nested joins are now supported (A JOIN B JOIN C ON .. ON ..)
@changelog_1020_h2
@changelog_1024_h2
Version 1.0.69 (2008-03-29)
@changelog_1021_li
@changelog_1025_li
Most command line tools can now be called from within the H2 Console.
@changelog_1022_li
@changelog_1026_li
A new Shell tools is now included (org.h2.tools.Shell) to query a database from the command line.
@changelog_1023_li
@changelog_1027_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_1024_li
@changelog_1028_li
New system property h2.sortNullsHigh to invert the default sorting behavior for NULL. The default didn't change.
@changelog_1025_li
@changelog_1029_li
Performance was very slow when using LOG=2 and deleting or updating all rows of a table in a loop. Fixed.
@changelog_1026_li
@changelog_1030_li
ALTER TABLE or CREATE TABLE now support parameters for the password field.
@changelog_1027_li
@changelog_1031_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_1028_li
@changelog_1032_li
TRACE_LEVEL_ settings are no longer persistent. This was a problem when database initialization code caused a lot of trace output.
@changelog_1029_li
@changelog_1033_li
Fulltext search (native implementation): The words table is no longer an in-memory table because this caused memory problems in some cases.
@changelog_1030_li
@changelog_1034_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_1031_li
@changelog_1035_li
The recovery tool didn't work correctly for tables without rows.
@changelog_1032_li
@changelog_1036_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_1033_li
@changelog_1037_li
CSVWRITE caused a NullPointerException when not specifying a nullString.
@changelog_1034_li
@changelog_1038_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_1035_li
@changelog_1039_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_1036_li
@changelog_1040_li
Altering a sequence didn't unlock the system table when autocommit switched off.
@changelog_1037_h2
@changelog_1041_h2
Version 1.0.68 (2008-03-18)
@changelog_1038_li
@changelog_1042_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_1039_li
@changelog_1043_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_1040_li
@changelog_1044_li
Unused LOB files were deleted much too late. Now they are deleted if no longer referenced in memory.
@changelog_1041_li
@changelog_1045_li
ALTER SEQUENCE and ALTER TABLE ALTER COLUMN RESTART can now be used inside a transaction.
@changelog_1042_li
@changelog_1046_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_1043_li
@changelog_1047_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_1044_li
@changelog_1048_li
Improved performance when using lob files in directories (however this is still disabled by default)
@changelog_1045_li
@changelog_1049_li
H2 Console: autocomplete didn't work with very large scripts. Fixed.
@changelog_1046_li
@changelog_1050_li
Fulltext search: new method SEARCH_DATA that returns the column names and primary keys as arrays.
@changelog_1047_li
@changelog_1051_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_1048_li
@changelog_1052_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_1049_li
@changelog_1053_li
H2 Console: remote connections were very slow because getHostName/getRemoteHost was used. Fixed (now using getHostAddress/getRemoteAddr.
@changelog_1050_li
@changelog_1054_li
H2 Console: on Linux, Firefox, Konqueror, or Opera (in this order) are now started if available. This has been tested on Ubuntu.
@changelog_1051_li
@changelog_1055_li
H2 Console: the start window works better with IKVM
@changelog_1052_li
@changelog_1056_li
H2 Console: improved compatibility with Safari (Safari requires keep-alive)
@changelog_1053_li
@changelog_1057_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_1054_li
@changelog_1058_li
SELECT UNION with a different number of ORDER BY columns did throw an ArrayIndexOutOfBoundsException.
@changelog_1055_li
@changelog_1059_li
When using a view, the column precision was changed to the default scale for some data types.
@changelog_1056_li
@changelog_1060_li
CSVWRITE now supports a 'null string' that is used for parsing and writing NULL.
@changelog_1057_li
@changelog_1061_li
Some long running queries could not be cancelled.
@changelog_1058_li
@changelog_1062_li
Queries with many outer join tables were very slow. Fixed.
@changelog_1059_li
@changelog_1063_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_1060_li
@changelog_1064_li
UPDATE SET column=DEFAULT is now supported.
@changelog_1061_h2
@changelog_1065_h2
Version 1.0.67 (2008-02-22)
@changelog_1062_li
@changelog_1066_li
New function FILE_READ to read a file or from an URL. Both binary and text data is supported.
@changelog_1063_li
@changelog_1067_li
CREATE TABLE AS SELECT now supports specifying the column list and data types.
@changelog_1064_li
@changelog_1068_li
Connecting to a TCP server and at shutting it down at the same time could cause a Java level deadlock.
@changelog_1065_li
@changelog_1069_li
A user now has all rights on his own local temporary tables.
@changelog_1066_li
@changelog_1070_li
The CSV tool now supports a custom lineSeparator.
@changelog_1067_li
@changelog_1071_li
When using multiple connections, empty space was reused too early sometimes. This could corrupt the database when recovering.
@changelog_1068_li
@changelog_1072_li
The H2 Console has been translated to Dutch. Thanks a lot to Remco Schoen!
@changelog_1069_li
@changelog_1073_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_1070_li
@changelog_1074_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_1071_li
@changelog_1075_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_1072_li
@changelog_1076_li
The value cache is now a soft reference cache. This should help save memory.
@changelog_1073_li
@changelog_1077_li
CREATE INDEX on a table with many rows could run out of memory. Fixed.
@changelog_1074_li
@changelog_1078_li
Large result sets are now a bit faster.
@changelog_1075_li
@changelog_1079_li
ALTER TABLE ALTER COLUMN RESTART and ALTER SEQUENCE now support parameters (any expressions).
@changelog_1076_li
@changelog_1080_li
When setting the base directory on the command line, the user directory prefix ('~') was ignored.
@changelog_1077_li
@changelog_1081_li
The DbStarter servlet didn't start the TCP listener even if configured.
@changelog_1078_li
@changelog_1082_li
Statement.setQueryTimeout() is now supported.
@changelog_1079_li
@changelog_1083_li
New session setting QUERY_TIMEOUT, and new system property h2.maxQueryTimeout.
@changelog_1080_li
@changelog_1084_li
Changing the transaction log level (SET LOG) is now written to the trace file by default.
@changelog_1081_li
@changelog_1085_li
In a SQL script, primary key constraints are now ordered before foreign key constraints.
@changelog_1082_li
@changelog_1086_li
It was not possible to create a referential constraint to a table in a different schema in some situations.
@changelog_1083_li
@changelog_1087_li
The H2 Console was slow when the database contains many tables. Now the column names are not shown in this case.
@changelog_1084_h2
@changelog_1088_h2
Version 1.0.66 (2008-02-02)
@changelog_1085_li
@changelog_1089_li
There is a new online error analyzer tool.
@changelog_1086_li
@changelog_1090_li
H2 Console: stack traces are now links to the source code in the source repository (H2 database only).
@changelog_1087_li
@changelog_1091_li
CHAR data type equals comparison was case insensitive instead of case sensitive.
@changelog_1088_li
@changelog_1092_li
The exception 'Value too long for column' now includes the data.
@changelog_1089_li
@changelog_1093_li
The table name was missing in the documentation of CREATE INDEX.
@changelog_1090_li
@changelog_1094_li
Better support for IKVM (www.ikvm.net): the H2 Console now opens a browser window.
@changelog_1091_li
@changelog_1095_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_1092_li
@changelog_1096_li
The exception "Hexadecimal string contains non-hex character" was not always thrown when it should have been. Fixed.
@changelog_1093_li
@changelog_1097_li
The H2 Console now provides a link to the documentation when an error occurs (H2 databases only so far).
@changelog_1094_li
@changelog_1098_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_1095_li
@changelog_1099_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_1096_li
@changelog_1100_li
For compatibility with other databases the column default (COLUMN_DEF) for columns without default is now null (it was an empty string).
@changelog_1097_li
@changelog_1101_li
Statements that contain very large subqueries (where the subquery result does not fit in memory) are now faster.
@changelog_1098_li
@changelog_1102_li
Variables: large objects (CLOB and BLOB) that don't fit in memory did not work correctly when used as variables.
@changelog_1099_li
@changelog_1103_li
Fulltext search is now supported in named in-memory databases.
@changelog_1100_li
@changelog_1104_li
H2 Console: multiple consecutive spaces in the setting name did not work. Fixed.
@changelog_1101_h2
@changelog_1105_h2
Version 1.0.65 (2008-01-18)
@changelog_1102_li
@changelog_1106_li
The build (ant) now automatically switches the source code to the correct version (JDK 1.4/1.5 or 1.6).
@changelog_1103_li
@changelog_1107_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_1104_li
@changelog_1108_li
The performance for DROP and DROP ALL OBJECTS has been improved.
@changelog_1105_li
@changelog_1109_li
The ChangePassword API has been improved.
@changelog_1106_li
@changelog_1110_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_1107_li
@changelog_1111_li
The Ukrainian translation has been improved.
@changelog_1108_li
@changelog_1112_li
CALL statements can now be used in batch updates and called using Statement.executeUpdate.
@changelog_1109_li
@changelog_1113_li
New read-only setting CREATE_BUILD (the build number of the database engine that created the database).
@changelog_1110_li
@changelog_1114_li
The optimizer did not use multi column indexes for range queries in some cases. Fixed.
@changelog_1111_li
@changelog_1115_li
The H2 Console now calls DataSource.getConnection() instead of DataSource.getConnection(user, password) when user name and password are not specified.
@changelog_1112_li
@changelog_1116_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_1113_li
@changelog_1117_li
Batch update: Calling BatchUpdateException.printStackTrace() could result in out of memory. Fixed.
@changelog_1114_li
@changelog_1118_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_1115_li
@changelog_1119_li
The performance for large result sets in the server mode has been improved.
@changelog_1116_li
@changelog_1120_li
The setting h2.serverSmallResultSetSize has been renamed to h2.serverResultSetFetchSize.
@changelog_1117_li
@changelog_1121_li
The SCRIPT command now uses multi-row insert statements to save space except if the option SIMPLE is used.
@changelog_1118_li
@changelog_1122_li
The SCRIPT command did not split up CLOB data correctly. Fixed.
@changelog_1119_li
@changelog_1123_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_1120_li
@changelog_1124_li
DROP ALL OBJECTS did not drop user defined aggregate functions and domains.
@changelog_1121_li
@changelog_1125_li
PostgreSQL compatibility: COUNT(T.*) is now supported.
@changelog_1122_li
@changelog_1126_li
LIKE comparisons are now faster.
@changelog_1123_li
@changelog_1127_li
Encrypted databases are now faster.
@changelog_1124_h2
@changelog_1128_h2
Version 1.0.64 (2007-12-27)
@changelog_1125_li
@changelog_1129_li
3-way union queries with prepared statement or views could return the wrong results. Fixed.
@changelog_1126_li
@changelog_1130_li
The PostgreSQL ODBC driver did not work in the last release due to a parser regression. Fixed.
@changelog_1127_li
@changelog_1131_li
CSV tool: some escape/separator character combinations did not work. Fixed.
@changelog_1128_li
@changelog_1132_li
CSV tool: the character # could not be used as a separator when reading.
@changelog_1129_li
@changelog_1133_li
Recovery: when the index file is corrupt, now the database deletes it and re-creates it automatically.
@changelog_1130_li
@changelog_1134_li
The MVCC mode did not work well with in-memory databases. Fixed.
@changelog_1131_li
@changelog_1135_li
The FTP server now supports a event listener. Thanks Fulvio Biondi for the help!
@changelog_1132_li
@changelog_1136_li
New system function CANCEL_SESSION to cancel the currently executing statement of another session.
@changelog_1133_li
@changelog_1137_li
The database now supports an exclusive mode. In exclusive mode, new connections are rejected.
@changelog_1134_li
@changelog_1138_li
H2 Console: when editing result sets, columns can now be set to null. The text 'null' must be escaped using '=null'.
@changelog_1135_li
@changelog_1139_li
New built-in functions RPAD and LPAD.
@changelog_1136_li
@changelog_1140_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_1137_li
@changelog_1141_li
The Ukrainian translation was not working in the last release. Fixed.
@changelog_1138_li
@changelog_1142_li
Creating many tables (many hundreds) was slow. Fixed.
@changelog_1139_li
@changelog_1143_li
Opening a database with many indexes (thousands) was slow. Fixed.
@changelog_1140_li
@changelog_1144_li
H2 Console / autocomplete: Ctrl+Space now shows the list in all modes.
@changelog_1141_li
@changelog_1145_li
The method Trigger.init has been changed: the parameters 'before' and 'type', have been added to the init method.
@changelog_1142_li
@changelog_1146_li
The performance has been improved for ResultSet methods with column name.
@changelog_1143_li
@changelog_1147_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_1144_li
@changelog_1148_li
The H2 Console has been translated to Turkish. Thanks a lot to Ridvan Agar!
@changelog_1145_li
@changelog_1149_li
Improved debugging support: toString methods of most object now return a meaningful text.
@changelog_1146_li
@changelog_1150_li
The classes DbStarter and WebServlet have been moved to src/main.
@changelog_1147_li
@changelog_1151_li
The column INFORMATION_SCHEMA.TRIGGERS.SQL now contains the CREATE TRIGGER statement.
@changelog_1148_li
@changelog_1152_li
Loading classes and calling methods can be restricted using the new system property h2.allowedClasses.
@changelog_1149_li
@changelog_1153_li
The database could not be used in Java applets due to security exceptions. Fixed.
@changelog_1150_h2
@changelog_1154_h2
Version 1.0.63 (2007-12-02)
@changelog_1151_li
@changelog_1155_li
The SecurePassword example has been improved.
@changelog_1152_li
@changelog_1156_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_1153_li
@changelog_1157_li
The native fulltext search was not working properly after re-connecting.
@changelog_1154_li
@changelog_1158_li
Improved FTP server: now the PORT command is supported.
@changelog_1155_li
@changelog_1159_li
Temporary views (FROM(...)) with UNION didn't work if nested. Fixed.
@changelog_1156_li
@changelog_1160_li
Performance optimization for IN(...) and IN(SELECT...), currently disabled by default. To enable, use java -Dh2.optimizeInJoin=true
@changelog_1157_li
@changelog_1161_li
The H2 Console has been translated to Ukrainian by Igor Dobrovolskyi. Thanks a lot!
@changelog_1158_li
@changelog_1162_li
New function TABLE_DISTINCT.
@changelog_1159_li
@changelog_1163_li
Using LIMIT with values close to Integer.MAX_VALUE didn't work correctly.
@changelog_1160_li
@changelog_1164_li
Certain setting in the Server didn't work (http://code.google.com/p/h2database/issues/detail?id=7).
@changelog_1161_h2
@changelog_1165_h2
Version 1.0.62 (2007-11-25)
@changelog_1162_li
@changelog_1166_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_1163_li
@changelog_1167_li
MVCC: now an exception is thrown when an application tries to change the MVCC setting while the database is already open.
@changelog_1164_li
@changelog_1168_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_1165_li
@changelog_1169_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_1166_li
@changelog_1170_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_1167_li
@changelog_1171_li
Duplicate column names were not detected when renaming columns. Fixed.
@changelog_1168_li
@changelog_1172_li
The console did not display multiple embedded spaces in text correctly. Fixed.
@changelog_1169_li
@changelog_1173_li
Google Android support: use 'ant codeswitchAndroid' to switch the source code to Android.
@changelog_1170_li
@changelog_1174_li
Values of type ARRAY are now sorted as in PostgreSQL.
@changelog_1171_li
@changelog_1175_li
In the cluster mode, could not connect if only one server was running (last release only). Fixed.
@changelog_1172_li
@changelog_1176_li
The performance of large CSV operations has been improved.
@changelog_1173_li
@changelog_1177_li
Now using custom toString() for most JDBC objects and commands.
@changelog_1174_li
@changelog_1178_li
Nested temporary views (SELECT * FROM (SELECT ...)) with parameters didn't work in some cases. Fixed.
@changelog_1175_li
@changelog_1179_li
CSV: Using an empty field delimiter didn't work (a workaround was using char(0)). Fixed.
@changelog_1176_li
@changelog_1180_li
A patch for Apache DDL Utils is available at https://issues.apache.org/jira/browse/DDLUTILS-185
@changelog_1177_li
@changelog_1181_li
The default value for h2.emergencySpaceInitial is now 256 KB (to speed up creating encrypted databases)
@changelog_1178_li
@changelog_1182_li
Eduardo Velasques has translated the H2 Console and the error messages to Brazilian Portuguese. Thanks a lot!
@changelog_1179_li
@changelog_1183_li
Creating a table from GROUP_CONCAT didn't work if the data was longer than 255 characters
@changelog_1180_h2
@changelog_1184_h2
Version 1.0.61 (2007-11-10)
@changelog_1181_li
@changelog_1185_li
The Lucene Fulltext implementation is now compiled and included in the h2.jar. Requires Lucene 2.2.
@changelog_1182_li
@changelog_1186_li
Added more tests. The code coverage is now at 83%.
@changelog_1183_li
@changelog_1187_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_1184_li
@changelog_1188_li
The MODE used to be a global setting, now it is a database level setting.
@changelog_1185_li
@changelog_1189_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_1186_li
@changelog_1190_li
Math operations using unknown data types (for example -? and ?+?) are now interpreted as decimal.
@changelog_1187_li
@changelog_1191_li
INSTR, LOCATE: backward searching is not supported by using a negative start position.
@changelog_1188_li
@changelog_1192_li
Can now open a database stored in a jar or zip file (for example, jdbc:h2:zip:c:/temp/h2.zip!/test).
@changelog_1189_li
@changelog_1193_li
Files access now uses an API (FileSystem, FileObject), this will simplify adding other file systems and features (for example replication).
@changelog_1190_li
@changelog_1194_li
Vlad Alexahin has translated H2 Console to Russian. Thanks a lot!
@changelog_1191_li
@changelog_1195_li
Descending indexes are now supported. This is useful when sorting columns descending, for example by creation date.
@changelog_1192_li
@changelog_1196_li
Solved a Java level deadlock in the DatabaseCloser.
@changelog_1193_li
@changelog_1197_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_1194_li
@changelog_1198_li
MVCC: The system property h2.mvcc has been removed. A few bugs have been fixed, and new tests have been added.
@changelog_1195_h2
@changelog_1199_h2
Version 1.0.60 (2007-10-20)
@changelog_1196_li
@changelog_1200_li
JdbcXAConnection: starting a transaction before getting the connection didn't switch off autocommit.
@changelog_1197_li
@changelog_1201_li
User defined aggregate functions are not supported.
@changelog_1198_li
@changelog_1202_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_1199_li
@changelog_1203_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_1200_li
@changelog_1204_li
Linked tables: now tables in non-default schemas are supported as well
@changelog_1201_li
@changelog_1205_li
New Italian translation from PierPaolo Ucchino. Thanks a lot!
@changelog_1202_li
@changelog_1206_li
CSV: New methods to set the escape character and field delimiter in the Csv tool and the CSVWRITE and CSVREAD methods.
@changelog_1203_li
@changelog_1207_li
Prepared statements could not be used after data definition statements (creating tables and so on). Fixed.
@changelog_1204_li
@changelog_1208_li
PreparedStatement.setMaxRows could not be changed to a higher value after the statement was executed.
@changelog_1205_li
@changelog_1209_li
The H2 Console could not connect twice to the same H2 embedded database at the same time. Fixed.
@changelog_1206_li
@changelog_1210_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_1207_h2
@changelog_1211_h2
Version 1.0.59 (2007-10-03)
@changelog_1208_li
@changelog_1212_li
When the data type was unknown in a subquery, sometimes the wrong exception (ArrayIndexOutOfBounds) was thrown. Fixed.
@changelog_1209_li
@changelog_1213_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_1210_li
@changelog_1214_li
Multi-threaded kernel (MULTI_THREADED=1): A synchronization problem has been fixed.
@changelog_1211_li
@changelog_1215_li
A PreparedStatement that was cancelled could not be reused. Fixed.
@changelog_1212_li
@changelog_1216_li
H2 Console: Progress information when logging into a H2 embedded database (useful when opening a database is slow).
@changelog_1213_li
@changelog_1217_li
When the database was closed while logging was disabled (LOG 0), re-opening the database was slow. Fixed.
@changelog_1214_li
@changelog_1218_li
Fulltext search is now documented (in the Tutorial).
@changelog_1215_li
@changelog_1219_li
The Console did not refresh the table list if the CREATE TABLE statement started with a comment. Fixed.
@changelog_1216_li
@changelog_1220_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_1217_li
@changelog_1221_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_1218_li
@changelog_1222_li
REGEXP compatibility: So far String.matches was used, but for compatibility with MySQL, now Matcher.find is used.
@changelog_1219_li
@changelog_1223_li
SCRIPT: the SQL statements in the result set now include the terminating semicolon as well. Simplifies copy and paste.
@changelog_1220_li
@changelog_1224_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_1221_li
@changelog_1225_li
Views with subqueries as tables and queries with nested subqueries as tables did not always work. Fixed.
@changelog_1222_li
@changelog_1226_li
Compatibility: comparing columns with constants that are out of range does not throw an exception.
@changelog_1223_h2
@changelog_1227_h2
Version 1.0.58 (2007-09-15)
@changelog_1224_li
@changelog_1228_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_1225_li
@changelog_1229_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_1226_li
@changelog_1230_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_1227_li
@changelog_1231_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_1228_li
@changelog_1232_li
When comparing TINYINT or SMALLINT columns against constants, the index was not used. Fixed.
@changelog_1229_li
@changelog_1233_li
Maven 2: new version are now automatically synced with the central repositories.
@changelog_1230_li
@changelog_1234_li
The default value for MAX_MEMORY_UNDO is now 100000.
@changelog_1231_li
@changelog_1235_li
The documentation indexer does no longer index Japanese pages. If somebody knows how to split Japanese into words please post it.
@changelog_1232_li
@changelog_1236_li
Oracle compatibility: SYSDATE now returns a timestamp. CHR(..) is now an alias for CHAR(..).
@changelog_1233_li
@changelog_1237_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_1234_li
@changelog_1238_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_1235_li
@changelog_1239_li
Optimization for COLUMN IN(.., NULL) if the column does not allow NULL values.
@changelog_1236_li
@changelog_1240_li
Using spaces in column and table aliases was not supported when used inside a view or temporary view.
@changelog_1237_li
@changelog_1241_li
The version (build) number is now included in the manifest file.
@changelog_1238_li
@changelog_1242_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_1239_li
@changelog_1243_li
The database file sizes are now increased at most 32 MB at any time.
@changelog_1240_li
@changelog_1244_li
New method DatabaseEventListener.opened that is called just after opening a database.
@changelog_1241_li
@changelog_1245_li
When using the Console with Internet Explorer 6.0 or 7.0, a Javascript error was thrown after clearing the query.
@changelog_1242_li
@changelog_1246_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_1243_li
@changelog_1247_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_1244_li
@changelog_1248_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_1245_li
@changelog_1249_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_1246_li
@changelog_1250_li
For PgServer, character encoding other than UTF-8 did not work correctly. Fixed.
@changelog_1247_li
@changelog_1251_li
Using a function in a GROUP BY expression that is used in a view as a condition did not always work.
@changelog_1248_h2
@changelog_1252_h2
Version 1.0.57 (2007-08-25)
@changelog_1249_li
@changelog_1253_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_1250_li
@changelog_1254_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_1251_li
@changelog_1255_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_1252_li
@changelog_1256_li
Opening large read-only databases was very slow. Fixed.
@changelog_1253_li
@changelog_1257_li
New Japanese translation of the error messages thanks to Ikemoto Masahiro. Thanks a lot!
@changelog_1254_li
@changelog_1258_li
Disabling / enabling referential integrity for a table can now be used inside a transaction.
@changelog_1255_li
@changelog_1259_li
Rights checking for dynamic tables (SELECT * FROM (SELECT ...)) did not work. Fixed.
@changelog_1256_li
@changelog_1260_li
Creating more than 10 views that depend on each other was very slow. Reconnecting was slow as well. Fixed.
@changelog_1257_li
@changelog_1261_li
When used as as Servlet, the H2 Console did not work with SSL (using Tomcat). Fixed.
@changelog_1258_li
@changelog_1262_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_1259_li
@changelog_1263_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_1260_li
@changelog_1264_li
Some unit tests failed on Linux because the file system works differently. The unit tests are fixed and should work now.
@changelog_1261_li
@changelog_1265_li
Can now incrementally translate the documentation. See also FAQ.
@changelog_1262_li
@changelog_1266_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_1263_li
@changelog_1267_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_1264_li
@changelog_1268_li
Google translate did not work for the H2 homepage. It should be fixed now.
@changelog_1265_li
@changelog_1269_li
The CONVERT function did not work with views when using UNION.
@changelog_1266_li
@changelog_1270_li
The build now issues a warning if the source code is switched to the wrong version.
@changelog_1267_li
@changelog_1271_li
The default lock mode is now read committed instead of serialized.
@changelog_1268_li
@changelog_1272_li
PG server: data was truncated when reading large VARCHAR columns and decimal columns.
@changelog_1269_li
@changelog_1273_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_1270_li
@changelog_1274_li
Some file operations didn't work for files in the root directory. Fixed.
@changelog_1271_li
@changelog_1275_li
In the Restore tool, the parameter -file did not work. Fixed.
@changelog_1272_li
@changelog_1276_li
Two-phase commit: commit with transaction name was only supported in the recovery scan. Now it is always supported.
@changelog_1273_li
@changelog_1277_li
The column name C_CURRENT_TIMESTAMP did not work in the last release.
@changelog_1274_li
@changelog_1278_li
OpenOffice compatibility: support database name in column names.
@download_1000_h1
......@@ -6827,7 +6839,7 @@ Add regular javadocs to the homepage.
The database should be kept open for a longer time when using the server mode.
@roadmap_1365_li
Javadocs: for each tool, add a copy & paste sample in the class level.
Javadocs: for each tool, add a copy &amp; paste sample in the class level.
@roadmap_1366_li
Add google site search to web page.
......@@ -6871,13 +6883,16 @@ MVCC should not be memory bound (uncommitted data is kept in memory in the delta
@roadmap_1379_li
Support CREATE TEMPORARY LINKED TABLE.
@roadmap_1380_h2
@roadmap_1380_li
MySQL compatibility: SELECT @variable := x FROM SYSTEM_RANGE(1, 50);
@roadmap_1381_h2
Not Planned
@roadmap_1381_li
@roadmap_1382_li
HSQLDB (did) support this: select id i from test where i>0 (other databases don't). Supporting it may break compatibility.
@roadmap_1382_li
@roadmap_1383_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
......
......@@ -994,7 +994,7 @@ Centralリポジトリの利用
#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> .
#The conversion between UTF-8 and Java encoding (using the \u syntax), as well as the HTML entities (&amp;#..;) is automated by running the tool PropertiesToUTF8. The web site translation is automated as well, using <code>ant docs</code> .
@changelog_1000_h1
変更履歴
......@@ -1003,822 +1003,834 @@ Centralリポジトリの利用
#Next Version (unreleased)
@changelog_1002_li
#The autocomplete in the H2 Console has been improved a bit.
#Multi version concurrency (MVCC): when a row was updated, and the updated column was not indexed, this update was visible sometimes for other sessions even if it was not committed.
@changelog_1003_li
#The tools in the H2 Console are now translatable.
#Calling SHUTDOWN on one connection and starting a query on another connection concurrently could result in a Java level deadlock.
@changelog_1004_li
#The servlet and lucene jar files are now automatically downloaded when building.
#New system property h2.enableAnonymousSSL (default: true) to enable anonymous SSL connections.
@changelog_1005_li
#The code switch tool has been replaced by a simpler tool called SwitchSource that just uses find and replace.
#The precision if SUBSTR is now calculated if possible.
@changelog_1006_li
#Started to write a Ant replacement ('JAnt') that uses pure Java build definitions. Advantages: ability to debug the build, extensible, flexible, no XML, a bit faster. Future plan: support creating custom h2 distributions (for embedded use). Maybe create a new project 'Jant' or 'Javen' if other people are interested.
#The autocomplete in the H2 Console has been improved a bit.
@changelog_1007_li
#The jar file is now about 10% smaller because the variable debugging info is no longer included. The source file and line number debugging info is still included. If required, the jar file size of the full version can be further reduced to about 720 KB using 'build jarSmall' or even more by removing unneeded components.
#The tools in the H2 Console are now translatable.
@changelog_1008_li
#Added shell scripts run.sh and build.sh. chmod +x is required, but otherwise it should work. Feedback or improvements are welcome!
#The servlet and lucene jar files are now automatically downloaded when building.
@changelog_1009_li
#Databases in zip files: large queries are now support. Temp files are created in the temp directory if required. The documentation how to create the zip file has been corrected.
#The code switch tool has been replaced by a simpler tool called SwitchSource that just uses find and replace.
@changelog_1010_li
#Invalid inline views threw confusing SQL exceptions.
#Started to write a Ant replacement ('JAnt') that uses pure Java build definitions. Advantages: ability to debug the build, extensible, flexible, no XML, a bit faster. Future plan: support creating custom h2 distributions (for embedded use). Maybe create a new project 'Jant' or 'Javen' if other people are interested.
@changelog_1011_li
#The Japanese translation of the error messages and the H2 Console has been improved. Thanks a lot to Masahiro IKEMOTO.
#The jar file is now about 10% smaller because the variable debugging info is no longer included. The source file and line number debugging info is still included. If required, the jar file size of the full version can be further reduced to about 720 KB using 'build jarSmall' or even more by removing unneeded components.
@changelog_1012_li
#Optimization for MIN() and MAX() when using MVCC.
#Added shell scripts run.sh and build.sh. chmod +x is required, but otherwise it should work. Feedback or improvements are welcome!
@changelog_1013_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.
#Databases in zip files: large queries are now support. Temp files are created in the temp directory if required. The documentation how to create the zip file has been corrected.
@changelog_1014_li
#After setting the query timeout and then resetting it, the next query would still timeout. Fixed.
#Invalid inline views threw confusing SQL exceptions.
@changelog_1015_li
#Adding a IDENTITY column to a table with data threw a lock timeout.
#The Japanese translation of the error messages and the H2 Console has been improved. Thanks a lot to Masahiro IKEMOTO.
@changelog_1016_li
#OutOfMemoryError could occur when using EXISTS or IN(SELECT ..).
#Optimization for MIN() and MAX() when using MVCC.
@changelog_1017_li
#The built-in connection pool is not called JdbcConnectionPool. The API and documentation has been changed.
#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_1018_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).
#After setting the query timeout and then resetting it, the next query would still timeout. Fixed.
@changelog_1019_li
#Adding a IDENTITY column to a table with data threw a lock timeout.
@changelog_1020_li
#OutOfMemoryError could occur when using EXISTS or IN(SELECT ..).
@changelog_1021_li
#The built-in connection pool is not called JdbcConnectionPool. The API and documentation has been changed.
@changelog_1022_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_1023_li
#Nested joins are now supported (A JOIN B JOIN C ON .. ON ..)
@changelog_1020_h2
@changelog_1024_h2
#Version 1.0.69 (2008-03-29)
@changelog_1021_li
@changelog_1025_li
#Most command line tools can now be called from within the H2 Console.
@changelog_1022_li
@changelog_1026_li
#A new Shell tools is now included (org.h2.tools.Shell) to query a database from the command line.
@changelog_1023_li
@changelog_1027_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_1024_li
@changelog_1028_li
#New system property h2.sortNullsHigh to invert the default sorting behavior for NULL. The default didn't change.
@changelog_1025_li
@changelog_1029_li
#Performance was very slow when using LOG=2 and deleting or updating all rows of a table in a loop. Fixed.
@changelog_1026_li
@changelog_1030_li
#ALTER TABLE or CREATE TABLE now support parameters for the password field.
@changelog_1027_li
@changelog_1031_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_1028_li
@changelog_1032_li
#TRACE_LEVEL_ settings are no longer persistent. This was a problem when database initialization code caused a lot of trace output.
@changelog_1029_li
@changelog_1033_li
#Fulltext search (native implementation): The words table is no longer an in-memory table because this caused memory problems in some cases.
@changelog_1030_li
@changelog_1034_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_1031_li
@changelog_1035_li
#The recovery tool didn't work correctly for tables without rows.
@changelog_1032_li
@changelog_1036_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_1033_li
@changelog_1037_li
#CSVWRITE caused a NullPointerException when not specifying a nullString.
@changelog_1034_li
@changelog_1038_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_1035_li
@changelog_1039_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_1036_li
@changelog_1040_li
#Altering a sequence didn't unlock the system table when autocommit switched off.
@changelog_1037_h2
@changelog_1041_h2
#Version 1.0.68 (2008-03-18)
@changelog_1038_li
@changelog_1042_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_1039_li
@changelog_1043_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_1040_li
@changelog_1044_li
#Unused LOB files were deleted much too late. Now they are deleted if no longer referenced in memory.
@changelog_1041_li
@changelog_1045_li
#ALTER SEQUENCE and ALTER TABLE ALTER COLUMN RESTART can now be used inside a transaction.
@changelog_1042_li
@changelog_1046_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_1043_li
@changelog_1047_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_1044_li
@changelog_1048_li
#Improved performance when using lob files in directories (however this is still disabled by default)
@changelog_1045_li
@changelog_1049_li
#H2 Console: autocomplete didn't work with very large scripts. Fixed.
@changelog_1046_li
@changelog_1050_li
#Fulltext search: new method SEARCH_DATA that returns the column names and primary keys as arrays.
@changelog_1047_li
@changelog_1051_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_1048_li
@changelog_1052_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_1049_li
@changelog_1053_li
#H2 Console: remote connections were very slow because getHostName/getRemoteHost was used. Fixed (now using getHostAddress/getRemoteAddr.
@changelog_1050_li
@changelog_1054_li
#H2 Console: on Linux, Firefox, Konqueror, or Opera (in this order) are now started if available. This has been tested on Ubuntu.
@changelog_1051_li
@changelog_1055_li
#H2 Console: the start window works better with IKVM
@changelog_1052_li
@changelog_1056_li
#H2 Console: improved compatibility with Safari (Safari requires keep-alive)
@changelog_1053_li
@changelog_1057_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_1054_li
@changelog_1058_li
#SELECT UNION with a different number of ORDER BY columns did throw an ArrayIndexOutOfBoundsException.
@changelog_1055_li
@changelog_1059_li
#When using a view, the column precision was changed to the default scale for some data types.
@changelog_1056_li
@changelog_1060_li
#CSVWRITE now supports a 'null string' that is used for parsing and writing NULL.
@changelog_1057_li
@changelog_1061_li
#Some long running queries could not be cancelled.
@changelog_1058_li
@changelog_1062_li
#Queries with many outer join tables were very slow. Fixed.
@changelog_1059_li
@changelog_1063_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_1060_li
@changelog_1064_li
#UPDATE SET column=DEFAULT is now supported.
@changelog_1061_h2
@changelog_1065_h2
#Version 1.0.67 (2008-02-22)
@changelog_1062_li
@changelog_1066_li
#New function FILE_READ to read a file or from an URL. Both binary and text data is supported.
@changelog_1063_li
@changelog_1067_li
#CREATE TABLE AS SELECT now supports specifying the column list and data types.
@changelog_1064_li
@changelog_1068_li
#Connecting to a TCP server and at shutting it down at the same time could cause a Java level deadlock.
@changelog_1065_li
@changelog_1069_li
#A user now has all rights on his own local temporary tables.
@changelog_1066_li
@changelog_1070_li
#The CSV tool now supports a custom lineSeparator.
@changelog_1067_li
@changelog_1071_li
#When using multiple connections, empty space was reused too early sometimes. This could corrupt the database when recovering.
@changelog_1068_li
@changelog_1072_li
#The H2 Console has been translated to Dutch. Thanks a lot to Remco Schoen!
@changelog_1069_li
@changelog_1073_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_1070_li
@changelog_1074_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_1071_li
@changelog_1075_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_1072_li
@changelog_1076_li
#The value cache is now a soft reference cache. This should help save memory.
@changelog_1073_li
@changelog_1077_li
#CREATE INDEX on a table with many rows could run out of memory. Fixed.
@changelog_1074_li
@changelog_1078_li
#Large result sets are now a bit faster.
@changelog_1075_li
@changelog_1079_li
#ALTER TABLE ALTER COLUMN RESTART and ALTER SEQUENCE now support parameters (any expressions).
@changelog_1076_li
@changelog_1080_li
#When setting the base directory on the command line, the user directory prefix ('~') was ignored.
@changelog_1077_li
@changelog_1081_li
#The DbStarter servlet didn't start the TCP listener even if configured.
@changelog_1078_li
@changelog_1082_li
#Statement.setQueryTimeout() is now supported.
@changelog_1079_li
@changelog_1083_li
#New session setting QUERY_TIMEOUT, and new system property h2.maxQueryTimeout.
@changelog_1080_li
@changelog_1084_li
#Changing the transaction log level (SET LOG) is now written to the trace file by default.
@changelog_1081_li
@changelog_1085_li
#In a SQL script, primary key constraints are now ordered before foreign key constraints.
@changelog_1082_li
@changelog_1086_li
#It was not possible to create a referential constraint to a table in a different schema in some situations.
@changelog_1083_li
@changelog_1087_li
#The H2 Console was slow when the database contains many tables. Now the column names are not shown in this case.
@changelog_1084_h2
@changelog_1088_h2
#Version 1.0.66 (2008-02-02)
@changelog_1085_li
@changelog_1089_li
#There is a new online error analyzer tool.
@changelog_1086_li
@changelog_1090_li
#H2 Console: stack traces are now links to the source code in the source repository (H2 database only).
@changelog_1087_li
@changelog_1091_li
#CHAR data type equals comparison was case insensitive instead of case sensitive.
@changelog_1088_li
@changelog_1092_li
#The exception 'Value too long for column' now includes the data.
@changelog_1089_li
@changelog_1093_li
#The table name was missing in the documentation of CREATE INDEX.
@changelog_1090_li
@changelog_1094_li
#Better support for IKVM (www.ikvm.net): the H2 Console now opens a browser window.
@changelog_1091_li
@changelog_1095_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_1092_li
@changelog_1096_li
#The exception "Hexadecimal string contains non-hex character" was not always thrown when it should have been. Fixed.
@changelog_1093_li
@changelog_1097_li
#The H2 Console now provides a link to the documentation when an error occurs (H2 databases only so far).
@changelog_1094_li
@changelog_1098_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_1095_li
@changelog_1099_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_1096_li
@changelog_1100_li
#For compatibility with other databases the column default (COLUMN_DEF) for columns without default is now null (it was an empty string).
@changelog_1097_li
@changelog_1101_li
#Statements that contain very large subqueries (where the subquery result does not fit in memory) are now faster.
@changelog_1098_li
@changelog_1102_li
#Variables: large objects (CLOB and BLOB) that don't fit in memory did not work correctly when used as variables.
@changelog_1099_li
@changelog_1103_li
#Fulltext search is now supported in named in-memory databases.
@changelog_1100_li
@changelog_1104_li
#H2 Console: multiple consecutive spaces in the setting name did not work. Fixed.
@changelog_1101_h2
@changelog_1105_h2
#Version 1.0.65 (2008-01-18)
@changelog_1102_li
@changelog_1106_li
#The build (ant) now automatically switches the source code to the correct version (JDK 1.4/1.5 or 1.6).
@changelog_1103_li
@changelog_1107_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_1104_li
@changelog_1108_li
#The performance for DROP and DROP ALL OBJECTS has been improved.
@changelog_1105_li
@changelog_1109_li
#The ChangePassword API has been improved.
@changelog_1106_li
@changelog_1110_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_1107_li
@changelog_1111_li
#The Ukrainian translation has been improved.
@changelog_1108_li
@changelog_1112_li
#CALL statements can now be used in batch updates and called using Statement.executeUpdate.
@changelog_1109_li
@changelog_1113_li
#New read-only setting CREATE_BUILD (the build number of the database engine that created the database).
@changelog_1110_li
@changelog_1114_li
#The optimizer did not use multi column indexes for range queries in some cases. Fixed.
@changelog_1111_li
@changelog_1115_li
#The H2 Console now calls DataSource.getConnection() instead of DataSource.getConnection(user, password) when user name and password are not specified.
@changelog_1112_li
@changelog_1116_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_1113_li
@changelog_1117_li
#Batch update: Calling BatchUpdateException.printStackTrace() could result in out of memory. Fixed.
@changelog_1114_li
@changelog_1118_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_1115_li
@changelog_1119_li
#The performance for large result sets in the server mode has been improved.
@changelog_1116_li
@changelog_1120_li
#The setting h2.serverSmallResultSetSize has been renamed to h2.serverResultSetFetchSize.
@changelog_1117_li
@changelog_1121_li
#The SCRIPT command now uses multi-row insert statements to save space except if the option SIMPLE is used.
@changelog_1118_li
@changelog_1122_li
#The SCRIPT command did not split up CLOB data correctly. Fixed.
@changelog_1119_li
@changelog_1123_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_1120_li
@changelog_1124_li
#DROP ALL OBJECTS did not drop user defined aggregate functions and domains.
@changelog_1121_li
@changelog_1125_li
#PostgreSQL compatibility: COUNT(T.*) is now supported.
@changelog_1122_li
@changelog_1126_li
#LIKE comparisons are now faster.
@changelog_1123_li
@changelog_1127_li
#Encrypted databases are now faster.
@changelog_1124_h2
@changelog_1128_h2
#Version 1.0.64 (2007-12-27)
@changelog_1125_li
@changelog_1129_li
#3-way union queries with prepared statement or views could return the wrong results. Fixed.
@changelog_1126_li
@changelog_1130_li
#The PostgreSQL ODBC driver did not work in the last release due to a parser regression. Fixed.
@changelog_1127_li
@changelog_1131_li
#CSV tool: some escape/separator character combinations did not work. Fixed.
@changelog_1128_li
@changelog_1132_li
#CSV tool: the character # could not be used as a separator when reading.
@changelog_1129_li
@changelog_1133_li
#Recovery: when the index file is corrupt, now the database deletes it and re-creates it automatically.
@changelog_1130_li
@changelog_1134_li
#The MVCC mode did not work well with in-memory databases. Fixed.
@changelog_1131_li
@changelog_1135_li
#The FTP server now supports a event listener. Thanks Fulvio Biondi for the help!
@changelog_1132_li
@changelog_1136_li
#New system function CANCEL_SESSION to cancel the currently executing statement of another session.
@changelog_1133_li
@changelog_1137_li
#The database now supports an exclusive mode. In exclusive mode, new connections are rejected.
@changelog_1134_li
@changelog_1138_li
#H2 Console: when editing result sets, columns can now be set to null. The text 'null' must be escaped using '=null'.
@changelog_1135_li
@changelog_1139_li
#New built-in functions RPAD and LPAD.
@changelog_1136_li
@changelog_1140_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_1137_li
@changelog_1141_li
#The Ukrainian translation was not working in the last release. Fixed.
@changelog_1138_li
@changelog_1142_li
#Creating many tables (many hundreds) was slow. Fixed.
@changelog_1139_li
@changelog_1143_li
#Opening a database with many indexes (thousands) was slow. Fixed.
@changelog_1140_li
@changelog_1144_li
#H2 Console / autocomplete: Ctrl+Space now shows the list in all modes.
@changelog_1141_li
@changelog_1145_li
#The method Trigger.init has been changed: the parameters 'before' and 'type', have been added to the init method.
@changelog_1142_li
@changelog_1146_li
#The performance has been improved for ResultSet methods with column name.
@changelog_1143_li
@changelog_1147_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_1144_li
@changelog_1148_li
#The H2 Console has been translated to Turkish. Thanks a lot to Ridvan Agar!
@changelog_1145_li
@changelog_1149_li
#Improved debugging support: toString methods of most object now return a meaningful text.
@changelog_1146_li
@changelog_1150_li
#The classes DbStarter and WebServlet have been moved to src/main.
@changelog_1147_li
@changelog_1151_li
#The column INFORMATION_SCHEMA.TRIGGERS.SQL now contains the CREATE TRIGGER statement.
@changelog_1148_li
@changelog_1152_li
#Loading classes and calling methods can be restricted using the new system property h2.allowedClasses.
@changelog_1149_li
@changelog_1153_li
#The database could not be used in Java applets due to security exceptions. Fixed.
@changelog_1150_h2
@changelog_1154_h2
#Version 1.0.63 (2007-12-02)
@changelog_1151_li
@changelog_1155_li
#The SecurePassword example has been improved.
@changelog_1152_li
@changelog_1156_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_1153_li
@changelog_1157_li
#The native fulltext search was not working properly after re-connecting.
@changelog_1154_li
@changelog_1158_li
#Improved FTP server: now the PORT command is supported.
@changelog_1155_li
@changelog_1159_li
#Temporary views (FROM(...)) with UNION didn't work if nested. Fixed.
@changelog_1156_li
@changelog_1160_li
#Performance optimization for IN(...) and IN(SELECT...), currently disabled by default. To enable, use java -Dh2.optimizeInJoin=true
@changelog_1157_li
@changelog_1161_li
#The H2 Console has been translated to Ukrainian by Igor Dobrovolskyi. Thanks a lot!
@changelog_1158_li
@changelog_1162_li
#New function TABLE_DISTINCT.
@changelog_1159_li
@changelog_1163_li
#Using LIMIT with values close to Integer.MAX_VALUE didn't work correctly.
@changelog_1160_li
@changelog_1164_li
#Certain setting in the Server didn't work (http://code.google.com/p/h2database/issues/detail?id=7).
@changelog_1161_h2
@changelog_1165_h2
#Version 1.0.62 (2007-11-25)
@changelog_1162_li
@changelog_1166_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_1163_li
@changelog_1167_li
#MVCC: now an exception is thrown when an application tries to change the MVCC setting while the database is already open.
@changelog_1164_li
@changelog_1168_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_1165_li
@changelog_1169_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_1166_li
@changelog_1170_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_1167_li
@changelog_1171_li
#Duplicate column names were not detected when renaming columns. Fixed.
@changelog_1168_li
@changelog_1172_li
#The console did not display multiple embedded spaces in text correctly. Fixed.
@changelog_1169_li
@changelog_1173_li
#Google Android support: use 'ant codeswitchAndroid' to switch the source code to Android.
@changelog_1170_li
@changelog_1174_li
#Values of type ARRAY are now sorted as in PostgreSQL.
@changelog_1171_li
@changelog_1175_li
#In the cluster mode, could not connect if only one server was running (last release only). Fixed.
@changelog_1172_li
@changelog_1176_li
#The performance of large CSV operations has been improved.
@changelog_1173_li
@changelog_1177_li
#Now using custom toString() for most JDBC objects and commands.
@changelog_1174_li
@changelog_1178_li
#Nested temporary views (SELECT * FROM (SELECT ...)) with parameters didn't work in some cases. Fixed.
@changelog_1175_li
@changelog_1179_li
#CSV: Using an empty field delimiter didn't work (a workaround was using char(0)). Fixed.
@changelog_1176_li
@changelog_1180_li
#A patch for Apache DDL Utils is available at https://issues.apache.org/jira/browse/DDLUTILS-185
@changelog_1177_li
@changelog_1181_li
#The default value for h2.emergencySpaceInitial is now 256 KB (to speed up creating encrypted databases)
@changelog_1178_li
@changelog_1182_li
#Eduardo Velasques has translated the H2 Console and the error messages to Brazilian Portuguese. Thanks a lot!
@changelog_1179_li
@changelog_1183_li
#Creating a table from GROUP_CONCAT didn't work if the data was longer than 255 characters
@changelog_1180_h2
@changelog_1184_h2
#Version 1.0.61 (2007-11-10)
@changelog_1181_li
@changelog_1185_li
#The Lucene Fulltext implementation is now compiled and included in the h2.jar. Requires Lucene 2.2.
@changelog_1182_li
@changelog_1186_li
#Added more tests. The code coverage is now at 83%.
@changelog_1183_li
@changelog_1187_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_1184_li
@changelog_1188_li
#The MODE used to be a global setting, now it is a database level setting.
@changelog_1185_li
@changelog_1189_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_1186_li
@changelog_1190_li
#Math operations using unknown data types (for example -? and ?+?) are now interpreted as decimal.
@changelog_1187_li
@changelog_1191_li
#INSTR, LOCATE: backward searching is not supported by using a negative start position.
@changelog_1188_li
@changelog_1192_li
#Can now open a database stored in a jar or zip file (for example, jdbc:h2:zip:c:/temp/h2.zip!/test).
@changelog_1189_li
@changelog_1193_li
#Files access now uses an API (FileSystem, FileObject), this will simplify adding other file systems and features (for example replication).
@changelog_1190_li
@changelog_1194_li
#Vlad Alexahin has translated H2 Console to Russian. Thanks a lot!
@changelog_1191_li
@changelog_1195_li
#Descending indexes are now supported. This is useful when sorting columns descending, for example by creation date.
@changelog_1192_li
@changelog_1196_li
#Solved a Java level deadlock in the DatabaseCloser.
@changelog_1193_li
@changelog_1197_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_1194_li
@changelog_1198_li
#MVCC: The system property h2.mvcc has been removed. A few bugs have been fixed, and new tests have been added.
@changelog_1195_h2
@changelog_1199_h2
#Version 1.0.60 (2007-10-20)
@changelog_1196_li
@changelog_1200_li
#JdbcXAConnection: starting a transaction before getting the connection didn't switch off autocommit.
@changelog_1197_li
@changelog_1201_li
#User defined aggregate functions are not supported.
@changelog_1198_li
@changelog_1202_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_1199_li
@changelog_1203_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_1200_li
@changelog_1204_li
#Linked tables: now tables in non-default schemas are supported as well
@changelog_1201_li
@changelog_1205_li
#New Italian translation from PierPaolo Ucchino. Thanks a lot!
@changelog_1202_li
@changelog_1206_li
#CSV: New methods to set the escape character and field delimiter in the Csv tool and the CSVWRITE and CSVREAD methods.
@changelog_1203_li
@changelog_1207_li
#Prepared statements could not be used after data definition statements (creating tables and so on). Fixed.
@changelog_1204_li
@changelog_1208_li
#PreparedStatement.setMaxRows could not be changed to a higher value after the statement was executed.
@changelog_1205_li
@changelog_1209_li
#The H2 Console could not connect twice to the same H2 embedded database at the same time. Fixed.
@changelog_1206_li
@changelog_1210_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_1207_h2
@changelog_1211_h2
#Version 1.0.59 (2007-10-03)
@changelog_1208_li
@changelog_1212_li
#When the data type was unknown in a subquery, sometimes the wrong exception (ArrayIndexOutOfBounds) was thrown. Fixed.
@changelog_1209_li
@changelog_1213_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_1210_li
@changelog_1214_li
#Multi-threaded kernel (MULTI_THREADED=1): A synchronization problem has been fixed.
@changelog_1211_li
@changelog_1215_li
#A PreparedStatement that was cancelled could not be reused. Fixed.
@changelog_1212_li
@changelog_1216_li
#H2 Console: Progress information when logging into a H2 embedded database (useful when opening a database is slow).
@changelog_1213_li
@changelog_1217_li
#When the database was closed while logging was disabled (LOG 0), re-opening the database was slow. Fixed.
@changelog_1214_li
@changelog_1218_li
#Fulltext search is now documented (in the Tutorial).
@changelog_1215_li
@changelog_1219_li
#The Console did not refresh the table list if the CREATE TABLE statement started with a comment. Fixed.
@changelog_1216_li
@changelog_1220_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_1217_li
@changelog_1221_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_1218_li
@changelog_1222_li
#REGEXP compatibility: So far String.matches was used, but for compatibility with MySQL, now Matcher.find is used.
@changelog_1219_li
@changelog_1223_li
#SCRIPT: the SQL statements in the result set now include the terminating semicolon as well. Simplifies copy and paste.
@changelog_1220_li
@changelog_1224_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_1221_li
@changelog_1225_li
#Views with subqueries as tables and queries with nested subqueries as tables did not always work. Fixed.
@changelog_1222_li
@changelog_1226_li
#Compatibility: comparing columns with constants that are out of range does not throw an exception.
@changelog_1223_h2
@changelog_1227_h2
#Version 1.0.58 (2007-09-15)
@changelog_1224_li
@changelog_1228_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_1225_li
@changelog_1229_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_1226_li
@changelog_1230_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_1227_li
@changelog_1231_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_1228_li
@changelog_1232_li
#When comparing TINYINT or SMALLINT columns against constants, the index was not used. Fixed.
@changelog_1229_li
@changelog_1233_li
#Maven 2: new version are now automatically synced with the central repositories.
@changelog_1230_li
@changelog_1234_li
#The default value for MAX_MEMORY_UNDO is now 100000.
@changelog_1231_li
@changelog_1235_li
#The documentation indexer does no longer index Japanese pages. If somebody knows how to split Japanese into words please post it.
@changelog_1232_li
@changelog_1236_li
#Oracle compatibility: SYSDATE now returns a timestamp. CHR(..) is now an alias for CHAR(..).
@changelog_1233_li
@changelog_1237_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_1234_li
@changelog_1238_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_1235_li
@changelog_1239_li
#Optimization for COLUMN IN(.., NULL) if the column does not allow NULL values.
@changelog_1236_li
@changelog_1240_li
#Using spaces in column and table aliases was not supported when used inside a view or temporary view.
@changelog_1237_li
@changelog_1241_li
#The version (build) number is now included in the manifest file.
@changelog_1238_li
@changelog_1242_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_1239_li
@changelog_1243_li
#The database file sizes are now increased at most 32 MB at any time.
@changelog_1240_li
@changelog_1244_li
#New method DatabaseEventListener.opened that is called just after opening a database.
@changelog_1241_li
@changelog_1245_li
#When using the Console with Internet Explorer 6.0 or 7.0, a Javascript error was thrown after clearing the query.
@changelog_1242_li
@changelog_1246_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_1243_li
@changelog_1247_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_1244_li
@changelog_1248_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_1245_li
@changelog_1249_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_1246_li
@changelog_1250_li
#For PgServer, character encoding other than UTF-8 did not work correctly. Fixed.
@changelog_1247_li
@changelog_1251_li
#Using a function in a GROUP BY expression that is used in a view as a condition did not always work.
@changelog_1248_h2
@changelog_1252_h2
#Version 1.0.57 (2007-08-25)
@changelog_1249_li
@changelog_1253_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_1250_li
@changelog_1254_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_1251_li
@changelog_1255_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_1252_li
@changelog_1256_li
#Opening large read-only databases was very slow. Fixed.
@changelog_1253_li
@changelog_1257_li
#New Japanese translation of the error messages thanks to Ikemoto Masahiro. Thanks a lot!
@changelog_1254_li
@changelog_1258_li
#Disabling / enabling referential integrity for a table can now be used inside a transaction.
@changelog_1255_li
@changelog_1259_li
#Rights checking for dynamic tables (SELECT * FROM (SELECT ...)) did not work. Fixed.
@changelog_1256_li
@changelog_1260_li
#Creating more than 10 views that depend on each other was very slow. Reconnecting was slow as well. Fixed.
@changelog_1257_li
@changelog_1261_li
#When used as as Servlet, the H2 Console did not work with SSL (using Tomcat). Fixed.
@changelog_1258_li
@changelog_1262_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_1259_li
@changelog_1263_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_1260_li
@changelog_1264_li
#Some unit tests failed on Linux because the file system works differently. The unit tests are fixed and should work now.
@changelog_1261_li
@changelog_1265_li
#Can now incrementally translate the documentation. See also FAQ.
@changelog_1262_li
@changelog_1266_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_1263_li
@changelog_1267_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_1264_li
@changelog_1268_li
#Google translate did not work for the H2 homepage. It should be fixed now.
@changelog_1265_li
@changelog_1269_li
#The CONVERT function did not work with views when using UNION.
@changelog_1266_li
@changelog_1270_li
#The build now issues a warning if the source code is switched to the wrong version.
@changelog_1267_li
@changelog_1271_li
#The default lock mode is now read committed instead of serialized.
@changelog_1268_li
@changelog_1272_li
#PG server: data was truncated when reading large VARCHAR columns and decimal columns.
@changelog_1269_li
@changelog_1273_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_1270_li
@changelog_1274_li
#Some file operations didn't work for files in the root directory. Fixed.
@changelog_1271_li
@changelog_1275_li
#In the Restore tool, the parameter -file did not work. Fixed.
@changelog_1272_li
@changelog_1276_li
#Two-phase commit: commit with transaction name was only supported in the recovery scan. Now it is always supported.
@changelog_1273_li
@changelog_1277_li
#The column name C_CURRENT_TIMESTAMP did not work in the last release.
@changelog_1274_li
@changelog_1278_li
#OpenOffice compatibility: support database name in column names.
@download_1000_h1
......@@ -6835,7 +6847,7 @@ SQLコマンドがコマンドエリアに表示されます。
#The database should be kept open for a longer time when using the server mode.
@roadmap_1365_li
#Javadocs: for each tool, add a copy & paste sample in the class level.
#Javadocs: for each tool, add a copy &amp; paste sample in the class level.
@roadmap_1366_li
#Add google site search to web page.
......@@ -6879,13 +6891,16 @@ SQLコマンドがコマンドエリアに表示されます。
@roadmap_1379_li
#Support CREATE TEMPORARY LINKED TABLE.
@roadmap_1380_h2
@roadmap_1380_li
#MySQL compatibility: SELECT @variable := x FROM SYSTEM_RANGE(1, 50);
@roadmap_1381_h2
#Not Planned
@roadmap_1381_li
@roadmap_1382_li
#HSQLDB (did) support this: select id i from test where i>0 (other databases don't). Supporting it may break compatibility.
@roadmap_1382_li
@roadmap_1383_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
......@@ -7682,15 +7697,24 @@ Wikipedia: Block cipher modes of operation
@~changelog_1020_li
#ALTER TABLE or CREATE TABLE now support parameters for the password field.
@~changelog_1024_li
#New system property h2.sortNullsHigh to invert the default sorting behavior for NULL. The default didn't change.
@~changelog_1031_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_1037_h2
#Version 1.0.68 (2008-03-18)
@~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_1041_li
#ALTER SEQUENCE and ALTER TABLE ALTER COLUMN RESTART can now be used inside a transaction.
@~changelog_1044_h2
#Version 1.0.67 (2008-02-22)
......@@ -7700,9 +7724,15 @@ Wikipedia: Block cipher modes of operation
@~changelog_1055_li
#The value cache is now a soft reference cache. This should help save memory.
@~changelog_1061_h2
#Version 1.0.67 (2008-02-22)
@~changelog_1061_li
#When using multiple connections, empty space was reused too early sometimes. This could corrupt the database when recovering.
@~changelog_1065_li
#A user now has all rights on his own local temporary tables.
@~changelog_1067_h2
#Version 1.0.66 (2008-02-02)
......@@ -7718,15 +7748,24 @@ Wikipedia: Block cipher modes of operation
@~changelog_1084_li
#Better support for IKVM (www.ikvm.net): the H2 Console now opens a browser window.
@~changelog_1088_li
#The exception 'Value too long for column' now includes the data.
@~changelog_1095_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_1101_h2
#Version 1.0.65 (2008-01-18)
@~changelog_1101_li
#The Ukrainian translation has been improved.
@~changelog_1105_li
#The ChangePassword API has been improved.
@~changelog_1107_h2
#Version 1.0.64 (2007-12-27)
......@@ -7736,30 +7775,48 @@ Wikipedia: Block cipher modes of operation
@~changelog_1118_li
#New built-in functions RPAD and LPAD.
@~changelog_1124_h2
#Version 1.0.64 (2007-12-27)
@~changelog_1124_li
#The MVCC mode did not work well with in-memory databases. Fixed.
@~changelog_1128_li
#CSV tool: the character # could not be used as a separator when reading.
@~changelog_1133_h2
#Version 1.0.63 (2007-12-02)
@~changelog_1144_h2
#Version 1.0.63 (2007-12-02)
@~changelog_1150_h2
#Version 1.0.63 (2007-12-02)
@~changelog_1150_li
#Performance optimization for IN(...) and IN(SELECT...), currently disabled by default. To enable, use java -Dh2.optimizeInJoin=true
@~changelog_1154_li
#Improved FTP server: now the PORT command is supported.
@~changelog_1155_h2
#Version 1.0.62 (2007-11-25)
@~changelog_1155_li
#The performance of large CSV operations has been improved.
@~changelog_1161_h2
#Version 1.0.62 (2007-11-25)
@~changelog_1161_li
#Duplicate column names were not detected when renaming columns. Fixed.
@~changelog_1163_h2
#Version 1.0.61 (2007-11-10)
@~changelog_1165_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_1174_h2
#Version 1.0.61 (2007-11-10)
......@@ -7769,9 +7826,15 @@ Wikipedia: Block cipher modes of operation
@~changelog_1178_h2
#Version 1.0.60 (2007-10-20)
@~changelog_1180_h2
#Version 1.0.61 (2007-11-10)
@~changelog_1180_li
#Math operations using unknown data types (for example -? and ?+?) are now interpreted as decimal.
@~changelog_1184_li
#The MODE used to be a global setting, now it is a database level setting.
@~changelog_1189_h2
#Version 1.0.60 (2007-10-20)
......@@ -7781,9 +7844,15 @@ Wikipedia: Block cipher modes of operation
@~changelog_1190_h2
#Version 1.0.59 (2007-10-03)
@~changelog_1195_h2
#Version 1.0.60 (2007-10-20)
@~changelog_1195_li
#New Italian translation from PierPaolo Ucchino. Thanks a lot!
@~changelog_1199_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_1201_h2
#Version 1.0.59 (2007-10-03)
......@@ -7793,18 +7862,30 @@ Wikipedia: Block cipher modes of operation
@~changelog_1206_h2
#Version 1.0.58 (2007-09-15)
@~changelog_1207_h2
#Version 1.0.59 (2007-10-03)
@~changelog_1207_li
#When the database was closed while logging was disabled (LOG 0), re-opening the database was slow. Fixed.
@~changelog_1211_li
#A PreparedStatement that was cancelled could not be reused. Fixed.
@~changelog_1217_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_1223_h2
#Version 1.0.58 (2007-09-15)
@~changelog_1223_li
#Maven 2: new version are now automatically synced with the central repositories.
@~changelog_1227_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_1231_h2
#Version 1.0.57 (2007-08-25)
......@@ -7814,9 +7895,15 @@ Wikipedia: Block cipher modes of operation
@~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_1248_h2
#Version 1.0.57 (2007-08-25)
@~changelog_1248_li
#Disabling / enabling referential integrity for a table can now be used inside a transaction.
@~changelog_1252_li
#Opening large read-only databases was very slow. Fixed.
@~features_1181_li
インメモリデータベース (プライベートと共有)
......@@ -8207,9 +8294,15 @@ result setを返す関数はテーブルのようになれます。しかし、
@~roadmap_1378_h2
#Not Planned
@~roadmap_1380_h2
#Not Planned
@~roadmap_1380_li
#String.intern (so that Strings can be compared with ==) will not be used because some VMs have problems when used extensively.
@~roadmap_1381_li
#HSQLDB (did) support this: select id i from test where i>0 (other databases don't). Supporting it may break compatibility.
@~tutorial_1161_p
これで、C:/temp ディレクトリ内に格納されているデータベースにアクセス可能です。
......@@ -8273,3 +8366,9 @@ PUBLICはスキーマ、TESTはテーブル名です。カラム名のリスト
@~tutorial_1196_h2
#Date and Time
@~~changelog_1020_h2
#Version 1.0.69 (2008-03-29)
@~~changelog_1084_h2
#Version 1.0.66 (2008-02-02)
......@@ -329,282 +329,286 @@ build_1030_p=The translation of this software is split into the following parts\
build_1031_li=H2 Console\: src/main/org/h2/server/web/res/_text_*.properties
build_1032_li=Error messages\: src/main/org/h2/res/_messages_*.properties
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> .
build_1034_p=The conversion between UTF-8 and Java encoding (using the \\u syntax), as well as the HTML entities (&amp;\#..;) is automated by running the tool PropertiesToUTF8. The web site translation is automated as well, using <code>ant docs</code> .
changelog_1000_h1=Change Log
changelog_1001_h2=Next Version (unreleased)
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=The servlet and lucene jar files are now automatically downloaded when building.
changelog_1005_li=The code switch tool has been replaced by a simpler tool called SwitchSource that just uses find and replace.
changelog_1006_li=Started to write a Ant replacement ('JAnt') that uses pure Java build definitions. Advantages\: ability to debug the build, extensible, flexible, no XML, a bit faster. Future plan\: support creating custom h2 distributions (for embedded use). Maybe create a new project 'Jant' or 'Javen' if other people are interested.
changelog_1007_li=The jar file is now about 10% smaller because the variable debugging info is no longer included. The source file and line number debugging info is still included. If required, the jar file size of the full version can be further reduced to about 720 KB using 'build jarSmall' or even more by removing unneeded components.
changelog_1008_li=Added shell scripts run.sh and build.sh. chmod +x is required, but otherwise it should work. Feedback or improvements are welcome\!
changelog_1009_li=Databases in zip files\: large queries are now support. Temp files are created in the temp directory if required. The documentation how to create the zip file has been corrected.
changelog_1010_li=Invalid inline views threw confusing SQL exceptions.
changelog_1011_li=The Japanese translation of the error messages and the H2 Console has been improved. Thanks a lot to Masahiro IKEMOTO.
changelog_1012_li=Optimization for MIN() and MAX() when using MVCC.
changelog_1013_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_1014_li=After setting the query timeout and then resetting it, the next query would still timeout. Fixed.
changelog_1015_li=Adding a IDENTITY column to a table with data threw a lock timeout.
changelog_1016_li=OutOfMemoryError could occur when using EXISTS or IN(SELECT ..).
changelog_1017_li=The built-in connection pool is not called JdbcConnectionPool. The API and documentation has been changed.
changelog_1018_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_1019_li=Nested joins are now supported (A JOIN B JOIN C ON .. ON ..)
changelog_1020_h2=Version 1.0.69 (2008-03-29)
changelog_1021_li=Most command line tools can now be called from within the H2 Console.
changelog_1022_li=A new Shell tools is now included (org.h2.tools.Shell) to query a database from the command line.
changelog_1023_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_1024_li=New system property h2.sortNullsHigh to invert the default sorting behavior for NULL. The default didn't change.
changelog_1025_li=Performance was very slow when using LOG\=2 and deleting or updating all rows of a table in a loop. Fixed.
changelog_1026_li=ALTER TABLE or CREATE TABLE now support parameters for the password field.
changelog_1027_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_1028_li=TRACE_LEVEL_ settings are no longer persistent. This was a problem when database initialization code caused a lot of trace output.
changelog_1029_li=Fulltext search (native implementation)\: The words table is no longer an in-memory table because this caused memory problems in some cases.
changelog_1030_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_1031_li=The recovery tool didn't work correctly for tables without rows.
changelog_1032_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_1033_li=CSVWRITE caused a NullPointerException when not specifying a nullString.
changelog_1034_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_1035_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_1036_li=Altering a sequence didn't unlock the system table when autocommit switched off.
changelog_1037_h2=Version 1.0.68 (2008-03-18)
changelog_1038_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_1039_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_1040_li=Unused LOB files were deleted much too late. Now they are deleted if no longer referenced in memory.
changelog_1041_li=ALTER SEQUENCE and ALTER TABLE ALTER COLUMN RESTART can now be used inside a transaction.
changelog_1042_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_1043_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_1044_li=Improved performance when using lob files in directories (however this is still disabled by default)
changelog_1045_li=H2 Console\: autocomplete didn't work with very large scripts. Fixed.
changelog_1046_li=Fulltext search\: new method SEARCH_DATA that returns the column names and primary keys as arrays.
changelog_1047_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_1048_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_1049_li=H2 Console\: remote connections were very slow because getHostName/getRemoteHost was used. Fixed (now using getHostAddress/getRemoteAddr.
changelog_1050_li=H2 Console\: on Linux, Firefox, Konqueror, or Opera (in this order) are now started if available. This has been tested on Ubuntu.
changelog_1051_li=H2 Console\: the start window works better with IKVM
changelog_1052_li=H2 Console\: improved compatibility with Safari (Safari requires keep-alive)
changelog_1053_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_1054_li=SELECT UNION with a different number of ORDER BY columns did throw an ArrayIndexOutOfBoundsException.
changelog_1055_li=When using a view, the column precision was changed to the default scale for some data types.
changelog_1056_li=CSVWRITE now supports a 'null string' that is used for parsing and writing NULL.
changelog_1057_li=Some long running queries could not be cancelled.
changelog_1058_li=Queries with many outer join tables were very slow. Fixed.
changelog_1059_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_1060_li=UPDATE SET column\=DEFAULT is now supported.
changelog_1061_h2=Version 1.0.67 (2008-02-22)
changelog_1062_li=New function FILE_READ to read a file or from an URL. Both binary and text data is supported.
changelog_1063_li=CREATE TABLE AS SELECT now supports specifying the column list and data types.
changelog_1064_li=Connecting to a TCP server and at shutting it down at the same time could cause a Java level deadlock.
changelog_1065_li=A user now has all rights on his own local temporary tables.
changelog_1066_li=The CSV tool now supports a custom lineSeparator.
changelog_1067_li=When using multiple connections, empty space was reused too early sometimes. This could corrupt the database when recovering.
changelog_1068_li=The H2 Console has been translated to Dutch. Thanks a lot to Remco Schoen\!
changelog_1069_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_1070_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_1071_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_1072_li=The value cache is now a soft reference cache. This should help save memory.
changelog_1073_li=CREATE INDEX on a table with many rows could run out of memory. Fixed.
changelog_1074_li=Large result sets are now a bit faster.
changelog_1075_li=ALTER TABLE ALTER COLUMN RESTART and ALTER SEQUENCE now support parameters (any expressions).
changelog_1076_li=When setting the base directory on the command line, the user directory prefix ('~') was ignored.
changelog_1077_li=The DbStarter servlet didn't start the TCP listener even if configured.
changelog_1078_li=Statement.setQueryTimeout() is now supported.
changelog_1079_li=New session setting QUERY_TIMEOUT, and new system property h2.maxQueryTimeout.
changelog_1080_li=Changing the transaction log level (SET LOG) is now written to the trace file by default.
changelog_1081_li=In a SQL script, primary key constraints are now ordered before foreign key constraints.
changelog_1082_li=It was not possible to create a referential constraint to a table in a different schema in some situations.
changelog_1083_li=The H2 Console was slow when the database contains many tables. Now the column names are not shown in this case.
changelog_1084_h2=Version 1.0.66 (2008-02-02)
changelog_1085_li=There is a new online error analyzer tool.
changelog_1086_li=H2 Console\: stack traces are now links to the source code in the source repository (H2 database only).
changelog_1087_li=CHAR data type equals comparison was case insensitive instead of case sensitive.
changelog_1088_li=The exception 'Value too long for column' now includes the data.
changelog_1089_li=The table name was missing in the documentation of CREATE INDEX.
changelog_1090_li=Better support for IKVM (www.ikvm.net)\: the H2 Console now opens a browser window.
changelog_1091_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_1092_li=The exception "Hexadecimal string contains non-hex character" was not always thrown when it should have been. Fixed.
changelog_1093_li=The H2 Console now provides a link to the documentation when an error occurs (H2 databases only so far).
changelog_1094_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_1095_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_1096_li=For compatibility with other databases the column default (COLUMN_DEF) for columns without default is now null (it was an empty string).
changelog_1097_li=Statements that contain very large subqueries (where the subquery result does not fit in memory) are now faster.
changelog_1098_li=Variables\: large objects (CLOB and BLOB) that don't fit in memory did not work correctly when used as variables.
changelog_1099_li=Fulltext search is now supported in named in-memory databases.
changelog_1100_li=H2 Console\: multiple consecutive spaces in the setting name did not work. Fixed.
changelog_1101_h2=Version 1.0.65 (2008-01-18)
changelog_1102_li=The build (ant) now automatically switches the source code to the correct version (JDK 1.4/1.5 or 1.6).
changelog_1103_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_1104_li=The performance for DROP and DROP ALL OBJECTS has been improved.
changelog_1105_li=The ChangePassword API has been improved.
changelog_1106_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_1107_li=The Ukrainian translation has been improved.
changelog_1108_li=CALL statements can now be used in batch updates and called using Statement.executeUpdate.
changelog_1109_li=New read-only setting CREATE_BUILD (the build number of the database engine that created the database).
changelog_1110_li=The optimizer did not use multi column indexes for range queries in some cases. Fixed.
changelog_1111_li=The H2 Console now calls DataSource.getConnection() instead of DataSource.getConnection(user, password) when user name and password are not specified.
changelog_1112_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_1113_li=Batch update\: Calling BatchUpdateException.printStackTrace() could result in out of memory. Fixed.
changelog_1114_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_1115_li=The performance for large result sets in the server mode has been improved.
changelog_1116_li=The setting h2.serverSmallResultSetSize has been renamed to h2.serverResultSetFetchSize.
changelog_1117_li=The SCRIPT command now uses multi-row insert statements to save space except if the option SIMPLE is used.
changelog_1118_li=The SCRIPT command did not split up CLOB data correctly. Fixed.
changelog_1119_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_1120_li=DROP ALL OBJECTS did not drop user defined aggregate functions and domains.
changelog_1121_li=PostgreSQL compatibility\: COUNT(T.*) is now supported.
changelog_1122_li=LIKE comparisons are now faster.
changelog_1123_li=Encrypted databases are now faster.
changelog_1124_h2=Version 1.0.64 (2007-12-27)
changelog_1125_li=3-way union queries with prepared statement or views could return the wrong results. Fixed.
changelog_1126_li=The PostgreSQL ODBC driver did not work in the last release due to a parser regression. Fixed.
changelog_1127_li=CSV tool\: some escape/separator character combinations did not work. Fixed.
changelog_1128_li=CSV tool\: the character \# could not be used as a separator when reading.
changelog_1129_li=Recovery\: when the index file is corrupt, now the database deletes it and re-creates it automatically.
changelog_1130_li=The MVCC mode did not work well with in-memory databases. Fixed.
changelog_1131_li=The FTP server now supports a event listener. Thanks Fulvio Biondi for the help\!
changelog_1132_li=New system function CANCEL_SESSION to cancel the currently executing statement of another session.
changelog_1133_li=The database now supports an exclusive mode. In exclusive mode, new connections are rejected.
changelog_1134_li=H2 Console\: when editing result sets, columns can now be set to null. The text 'null' must be escaped using '\=null'.
changelog_1135_li=New built-in functions RPAD and LPAD.
changelog_1136_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_1137_li=The Ukrainian translation was not working in the last release. Fixed.
changelog_1138_li=Creating many tables (many hundreds) was slow. Fixed.
changelog_1139_li=Opening a database with many indexes (thousands) was slow. Fixed.
changelog_1140_li=H2 Console / autocomplete\: Ctrl+Space now shows the list in all modes.
changelog_1141_li=The method Trigger.init has been changed\: the parameters 'before' and 'type', have been added to the init method.
changelog_1142_li=The performance has been improved for ResultSet methods with column name.
changelog_1143_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_1144_li=The H2 Console has been translated to Turkish. Thanks a lot to Ridvan Agar\!
changelog_1145_li=Improved debugging support\: toString methods of most object now return a meaningful text.
changelog_1146_li=The classes DbStarter and WebServlet have been moved to src/main.
changelog_1147_li=The column INFORMATION_SCHEMA.TRIGGERS.SQL now contains the CREATE TRIGGER statement.
changelog_1148_li=Loading classes and calling methods can be restricted using the new system property h2.allowedClasses.
changelog_1149_li=The database could not be used in Java applets due to security exceptions. Fixed.
changelog_1150_h2=Version 1.0.63 (2007-12-02)
changelog_1151_li=The SecurePassword example has been improved.
changelog_1152_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_1153_li=The native fulltext search was not working properly after re-connecting.
changelog_1154_li=Improved FTP server\: now the PORT command is supported.
changelog_1155_li=Temporary views (FROM(...)) with UNION didn't work if nested. Fixed.
changelog_1156_li=Performance optimization for IN(...) and IN(SELECT...), currently disabled by default. To enable, use java -Dh2.optimizeInJoin\=true
changelog_1157_li=The H2 Console has been translated to Ukrainian by Igor Dobrovolskyi. Thanks a lot\!
changelog_1158_li=New function TABLE_DISTINCT.
changelog_1159_li=Using LIMIT with values close to Integer.MAX_VALUE didn't work correctly.
changelog_1160_li=Certain setting in the Server didn't work (http\://code.google.com/p/h2database/issues/detail?id\=7).
changelog_1161_h2=Version 1.0.62 (2007-11-25)
changelog_1162_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_1163_li=MVCC\: now an exception is thrown when an application tries to change the MVCC setting while the database is already open.
changelog_1164_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_1165_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_1166_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_1167_li=Duplicate column names were not detected when renaming columns. Fixed.
changelog_1168_li=The console did not display multiple embedded spaces in text correctly. Fixed.
changelog_1169_li=Google Android support\: use 'ant codeswitchAndroid' to switch the source code to Android.
changelog_1170_li=Values of type ARRAY are now sorted as in PostgreSQL.
changelog_1171_li=In the cluster mode, could not connect if only one server was running (last release only). Fixed.
changelog_1172_li=The performance of large CSV operations has been improved.
changelog_1173_li=Now using custom toString() for most JDBC objects and commands.
changelog_1174_li=Nested temporary views (SELECT * FROM (SELECT ...)) with parameters didn't work in some cases. Fixed.
changelog_1175_li=CSV\: Using an empty field delimiter didn't work (a workaround was using char(0)). Fixed.
changelog_1176_li=A patch for Apache DDL Utils is available at https\://issues.apache.org/jira/browse/DDLUTILS-185
changelog_1177_li=The default value for h2.emergencySpaceInitial is now 256 KB (to speed up creating encrypted databases)
changelog_1178_li=Eduardo Velasques has translated the H2 Console and the error messages to Brazilian Portuguese. Thanks a lot\!
changelog_1179_li=Creating a table from GROUP_CONCAT didn't work if the data was longer than 255 characters
changelog_1180_h2=Version 1.0.61 (2007-11-10)
changelog_1181_li=The Lucene Fulltext implementation is now compiled and included in the h2.jar. Requires Lucene 2.2.
changelog_1182_li=Added more tests. The code coverage is now at 83%.
changelog_1183_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_1184_li=The MODE used to be a global setting, now it is a database level setting.
changelog_1185_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_1186_li=Math operations using unknown data types (for example -? and ?+?) are now interpreted as decimal.
changelog_1187_li=INSTR, LOCATE\: backward searching is not supported by using a negative start position.
changelog_1188_li=Can now open a database stored in a jar or zip file (for example, jdbc\:h2\:zip\:c\:/temp/h2.zip\!/test).
changelog_1189_li=Files access now uses an API (FileSystem, FileObject), this will simplify adding other file systems and features (for example replication).
changelog_1190_li=Vlad Alexahin has translated H2 Console to Russian. Thanks a lot\!
changelog_1191_li=Descending indexes are now supported. This is useful when sorting columns descending, for example by creation date.
changelog_1192_li=Solved a Java level deadlock in the DatabaseCloser.
changelog_1193_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_1194_li=MVCC\: The system property h2.mvcc has been removed. A few bugs have been fixed, and new tests have been added.
changelog_1195_h2=Version 1.0.60 (2007-10-20)
changelog_1196_li=JdbcXAConnection\: starting a transaction before getting the connection didn't switch off autocommit.
changelog_1197_li=User defined aggregate functions are not supported.
changelog_1198_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_1199_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_1200_li=Linked tables\: now tables in non-default schemas are supported as well
changelog_1201_li=New Italian translation from PierPaolo Ucchino. Thanks a lot\!
changelog_1202_li=CSV\: New methods to set the escape character and field delimiter in the Csv tool and the CSVWRITE and CSVREAD methods.
changelog_1203_li=Prepared statements could not be used after data definition statements (creating tables and so on). Fixed.
changelog_1204_li=PreparedStatement.setMaxRows could not be changed to a higher value after the statement was executed.
changelog_1205_li=The H2 Console could not connect twice to the same H2 embedded database at the same time. Fixed.
changelog_1206_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_1207_h2=Version 1.0.59 (2007-10-03)
changelog_1208_li=When the data type was unknown in a subquery, sometimes the wrong exception (ArrayIndexOutOfBounds) was thrown. Fixed.
changelog_1209_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_1210_li=Multi-threaded kernel (MULTI_THREADED\=1)\: A synchronization problem has been fixed.
changelog_1211_li=A PreparedStatement that was cancelled could not be reused. Fixed.
changelog_1212_li=H2 Console\: Progress information when logging into a H2 embedded database (useful when opening a database is slow).
changelog_1213_li=When the database was closed while logging was disabled (LOG 0), re-opening the database was slow. Fixed.
changelog_1214_li=Fulltext search is now documented (in the Tutorial).
changelog_1215_li=The Console did not refresh the table list if the CREATE TABLE statement started with a comment. Fixed.
changelog_1216_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_1217_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_1218_li=REGEXP compatibility\: So far String.matches was used, but for compatibility with MySQL, now Matcher.find is used.
changelog_1219_li=SCRIPT\: the SQL statements in the result set now include the terminating semicolon as well. Simplifies copy and paste.
changelog_1220_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_1221_li=Views with subqueries as tables and queries with nested subqueries as tables did not always work. Fixed.
changelog_1222_li=Compatibility\: comparing columns with constants that are out of range does not throw an exception.
changelog_1223_h2=Version 1.0.58 (2007-09-15)
changelog_1224_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_1225_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_1226_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_1227_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_1228_li=When comparing TINYINT or SMALLINT columns against constants, the index was not used. Fixed.
changelog_1229_li=Maven 2\: new version are now automatically synced with the central repositories.
changelog_1230_li=The default value for MAX_MEMORY_UNDO is now 100000.
changelog_1231_li=The documentation indexer does no longer index Japanese pages. If somebody knows how to split Japanese into words please post it.
changelog_1232_li=Oracle compatibility\: SYSDATE now returns a timestamp. CHR(..) is now an alias for CHAR(..).
changelog_1233_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_1234_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_1235_li=Optimization for COLUMN IN(.., NULL) if the column does not allow NULL values.
changelog_1236_li=Using spaces in column and table aliases was not supported when used inside a view or temporary view.
changelog_1237_li=The version (build) number is now included in the manifest file.
changelog_1238_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_1239_li=The database file sizes are now increased at most 32 MB at any time.
changelog_1240_li=New method DatabaseEventListener.opened that is called just after opening a database.
changelog_1241_li=When using the Console with Internet Explorer 6.0 or 7.0, a Javascript error was thrown after clearing the query.
changelog_1242_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_1243_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_1244_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_1245_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_1246_li=For PgServer, character encoding other than UTF-8 did not work correctly. Fixed.
changelog_1247_li=Using a function in a GROUP BY expression that is used in a view as a condition did not always work.
changelog_1248_h2=Version 1.0.57 (2007-08-25)
changelog_1249_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_1250_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_1251_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_1252_li=Opening large read-only databases was very slow. Fixed.
changelog_1253_li=New Japanese translation of the error messages thanks to Ikemoto Masahiro. Thanks a lot\!
changelog_1254_li=Disabling / enabling referential integrity for a table can now be used inside a transaction.
changelog_1255_li=Rights checking for dynamic tables (SELECT * FROM (SELECT ...)) did not work. Fixed.
changelog_1256_li=Creating more than 10 views that depend on each other was very slow. Reconnecting was slow as well. Fixed.
changelog_1257_li=When used as as Servlet, the H2 Console did not work with SSL (using Tomcat). Fixed.
changelog_1258_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_1259_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_1260_li=Some unit tests failed on Linux because the file system works differently. The unit tests are fixed and should work now.
changelog_1261_li=Can now incrementally translate the documentation. See also FAQ.
changelog_1262_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_1263_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_1264_li=Google translate did not work for the H2 homepage. It should be fixed now.
changelog_1265_li=The CONVERT function did not work with views when using UNION.
changelog_1266_li=The build now issues a warning if the source code is switched to the wrong version.
changelog_1267_li=The default lock mode is now read committed instead of serialized.
changelog_1268_li=PG server\: data was truncated when reading large VARCHAR columns and decimal columns.
changelog_1269_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_1270_li=Some file operations didn't work for files in the root directory. Fixed.
changelog_1271_li=In the Restore tool, the parameter -file did not work. Fixed.
changelog_1272_li=Two-phase commit\: commit with transaction name was only supported in the recovery scan. Now it is always supported.
changelog_1273_li=The column name C_CURRENT_TIMESTAMP did not work in the last release.
changelog_1274_li=OpenOffice compatibility\: support database name in column names.
changelog_1002_li=Multi version concurrency (MVCC)\: when a row was updated, and the updated column was not indexed, this update was visible sometimes for other sessions even if it was not committed.
changelog_1003_li=Calling SHUTDOWN on one connection and starting a query on another connection concurrently could result in a Java level deadlock.
changelog_1004_li=New system property h2.enableAnonymousSSL (default\: true) to enable anonymous SSL connections.
changelog_1005_li=The precision if SUBSTR is now calculated if possible.
changelog_1006_li=The autocomplete in the H2 Console has been improved a bit.
changelog_1007_li=The tools in the H2 Console are now translatable.
changelog_1008_li=The servlet and lucene jar files are now automatically downloaded when building.
changelog_1009_li=The code switch tool has been replaced by a simpler tool called SwitchSource that just uses find and replace.
changelog_1010_li=Started to write a Ant replacement ('JAnt') that uses pure Java build definitions. Advantages\: ability to debug the build, extensible, flexible, no XML, a bit faster. Future plan\: support creating custom h2 distributions (for embedded use). Maybe create a new project 'Jant' or 'Javen' if other people are interested.
changelog_1011_li=The jar file is now about 10% smaller because the variable debugging info is no longer included. The source file and line number debugging info is still included. If required, the jar file size of the full version can be further reduced to about 720 KB using 'build jarSmall' or even more by removing unneeded components.
changelog_1012_li=Added shell scripts run.sh and build.sh. chmod +x is required, but otherwise it should work. Feedback or improvements are welcome\!
changelog_1013_li=Databases in zip files\: large queries are now support. Temp files are created in the temp directory if required. The documentation how to create the zip file has been corrected.
changelog_1014_li=Invalid inline views threw confusing SQL exceptions.
changelog_1015_li=The Japanese translation of the error messages and the H2 Console has been improved. Thanks a lot to Masahiro IKEMOTO.
changelog_1016_li=Optimization for MIN() and MAX() when using MVCC.
changelog_1017_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_1018_li=After setting the query timeout and then resetting it, the next query would still timeout. Fixed.
changelog_1019_li=Adding a IDENTITY column to a table with data threw a lock timeout.
changelog_1020_li=OutOfMemoryError could occur when using EXISTS or IN(SELECT ..).
changelog_1021_li=The built-in connection pool is not called JdbcConnectionPool. The API and documentation has been changed.
changelog_1022_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_1023_li=Nested joins are now supported (A JOIN B JOIN C ON .. ON ..)
changelog_1024_h2=Version 1.0.69 (2008-03-29)
changelog_1025_li=Most command line tools can now be called from within the H2 Console.
changelog_1026_li=A new Shell tools is now included (org.h2.tools.Shell) to query a database from the command line.
changelog_1027_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_1028_li=New system property h2.sortNullsHigh to invert the default sorting behavior for NULL. The default didn't change.
changelog_1029_li=Performance was very slow when using LOG\=2 and deleting or updating all rows of a table in a loop. Fixed.
changelog_1030_li=ALTER TABLE or CREATE TABLE now support parameters for the password field.
changelog_1031_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_1032_li=TRACE_LEVEL_ settings are no longer persistent. This was a problem when database initialization code caused a lot of trace output.
changelog_1033_li=Fulltext search (native implementation)\: The words table is no longer an in-memory table because this caused memory problems in some cases.
changelog_1034_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_1035_li=The recovery tool didn't work correctly for tables without rows.
changelog_1036_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_1037_li=CSVWRITE caused a NullPointerException when not specifying a nullString.
changelog_1038_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_1039_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_1040_li=Altering a sequence didn't unlock the system table when autocommit switched off.
changelog_1041_h2=Version 1.0.68 (2008-03-18)
changelog_1042_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_1043_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_1044_li=Unused LOB files were deleted much too late. Now they are deleted if no longer referenced in memory.
changelog_1045_li=ALTER SEQUENCE and ALTER TABLE ALTER COLUMN RESTART can now be used inside a transaction.
changelog_1046_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_1047_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_1048_li=Improved performance when using lob files in directories (however this is still disabled by default)
changelog_1049_li=H2 Console\: autocomplete didn't work with very large scripts. Fixed.
changelog_1050_li=Fulltext search\: new method SEARCH_DATA that returns the column names and primary keys as arrays.
changelog_1051_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_1052_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_1053_li=H2 Console\: remote connections were very slow because getHostName/getRemoteHost was used. Fixed (now using getHostAddress/getRemoteAddr.
changelog_1054_li=H2 Console\: on Linux, Firefox, Konqueror, or Opera (in this order) are now started if available. This has been tested on Ubuntu.
changelog_1055_li=H2 Console\: the start window works better with IKVM
changelog_1056_li=H2 Console\: improved compatibility with Safari (Safari requires keep-alive)
changelog_1057_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_1058_li=SELECT UNION with a different number of ORDER BY columns did throw an ArrayIndexOutOfBoundsException.
changelog_1059_li=When using a view, the column precision was changed to the default scale for some data types.
changelog_1060_li=CSVWRITE now supports a 'null string' that is used for parsing and writing NULL.
changelog_1061_li=Some long running queries could not be cancelled.
changelog_1062_li=Queries with many outer join tables were very slow. Fixed.
changelog_1063_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_1064_li=UPDATE SET column\=DEFAULT is now supported.
changelog_1065_h2=Version 1.0.67 (2008-02-22)
changelog_1066_li=New function FILE_READ to read a file or from an URL. Both binary and text data is supported.
changelog_1067_li=CREATE TABLE AS SELECT now supports specifying the column list and data types.
changelog_1068_li=Connecting to a TCP server and at shutting it down at the same time could cause a Java level deadlock.
changelog_1069_li=A user now has all rights on his own local temporary tables.
changelog_1070_li=The CSV tool now supports a custom lineSeparator.
changelog_1071_li=When using multiple connections, empty space was reused too early sometimes. This could corrupt the database when recovering.
changelog_1072_li=The H2 Console has been translated to Dutch. Thanks a lot to Remco Schoen\!
changelog_1073_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_1074_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_1075_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_1076_li=The value cache is now a soft reference cache. This should help save memory.
changelog_1077_li=CREATE INDEX on a table with many rows could run out of memory. Fixed.
changelog_1078_li=Large result sets are now a bit faster.
changelog_1079_li=ALTER TABLE ALTER COLUMN RESTART and ALTER SEQUENCE now support parameters (any expressions).
changelog_1080_li=When setting the base directory on the command line, the user directory prefix ('~') was ignored.
changelog_1081_li=The DbStarter servlet didn't start the TCP listener even if configured.
changelog_1082_li=Statement.setQueryTimeout() is now supported.
changelog_1083_li=New session setting QUERY_TIMEOUT, and new system property h2.maxQueryTimeout.
changelog_1084_li=Changing the transaction log level (SET LOG) is now written to the trace file by default.
changelog_1085_li=In a SQL script, primary key constraints are now ordered before foreign key constraints.
changelog_1086_li=It was not possible to create a referential constraint to a table in a different schema in some situations.
changelog_1087_li=The H2 Console was slow when the database contains many tables. Now the column names are not shown in this case.
changelog_1088_h2=Version 1.0.66 (2008-02-02)
changelog_1089_li=There is a new online error analyzer tool.
changelog_1090_li=H2 Console\: stack traces are now links to the source code in the source repository (H2 database only).
changelog_1091_li=CHAR data type equals comparison was case insensitive instead of case sensitive.
changelog_1092_li=The exception 'Value too long for column' now includes the data.
changelog_1093_li=The table name was missing in the documentation of CREATE INDEX.
changelog_1094_li=Better support for IKVM (www.ikvm.net)\: the H2 Console now opens a browser window.
changelog_1095_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_1096_li=The exception "Hexadecimal string contains non-hex character" was not always thrown when it should have been. Fixed.
changelog_1097_li=The H2 Console now provides a link to the documentation when an error occurs (H2 databases only so far).
changelog_1098_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_1099_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_1100_li=For compatibility with other databases the column default (COLUMN_DEF) for columns without default is now null (it was an empty string).
changelog_1101_li=Statements that contain very large subqueries (where the subquery result does not fit in memory) are now faster.
changelog_1102_li=Variables\: large objects (CLOB and BLOB) that don't fit in memory did not work correctly when used as variables.
changelog_1103_li=Fulltext search is now supported in named in-memory databases.
changelog_1104_li=H2 Console\: multiple consecutive spaces in the setting name did not work. Fixed.
changelog_1105_h2=Version 1.0.65 (2008-01-18)
changelog_1106_li=The build (ant) now automatically switches the source code to the correct version (JDK 1.4/1.5 or 1.6).
changelog_1107_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_1108_li=The performance for DROP and DROP ALL OBJECTS has been improved.
changelog_1109_li=The ChangePassword API has been improved.
changelog_1110_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_1111_li=The Ukrainian translation has been improved.
changelog_1112_li=CALL statements can now be used in batch updates and called using Statement.executeUpdate.
changelog_1113_li=New read-only setting CREATE_BUILD (the build number of the database engine that created the database).
changelog_1114_li=The optimizer did not use multi column indexes for range queries in some cases. Fixed.
changelog_1115_li=The H2 Console now calls DataSource.getConnection() instead of DataSource.getConnection(user, password) when user name and password are not specified.
changelog_1116_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_1117_li=Batch update\: Calling BatchUpdateException.printStackTrace() could result in out of memory. Fixed.
changelog_1118_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_1119_li=The performance for large result sets in the server mode has been improved.
changelog_1120_li=The setting h2.serverSmallResultSetSize has been renamed to h2.serverResultSetFetchSize.
changelog_1121_li=The SCRIPT command now uses multi-row insert statements to save space except if the option SIMPLE is used.
changelog_1122_li=The SCRIPT command did not split up CLOB data correctly. Fixed.
changelog_1123_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_1124_li=DROP ALL OBJECTS did not drop user defined aggregate functions and domains.
changelog_1125_li=PostgreSQL compatibility\: COUNT(T.*) is now supported.
changelog_1126_li=LIKE comparisons are now faster.
changelog_1127_li=Encrypted databases are now faster.
changelog_1128_h2=Version 1.0.64 (2007-12-27)
changelog_1129_li=3-way union queries with prepared statement or views could return the wrong results. Fixed.
changelog_1130_li=The PostgreSQL ODBC driver did not work in the last release due to a parser regression. Fixed.
changelog_1131_li=CSV tool\: some escape/separator character combinations did not work. Fixed.
changelog_1132_li=CSV tool\: the character \# could not be used as a separator when reading.
changelog_1133_li=Recovery\: when the index file is corrupt, now the database deletes it and re-creates it automatically.
changelog_1134_li=The MVCC mode did not work well with in-memory databases. Fixed.
changelog_1135_li=The FTP server now supports a event listener. Thanks Fulvio Biondi for the help\!
changelog_1136_li=New system function CANCEL_SESSION to cancel the currently executing statement of another session.
changelog_1137_li=The database now supports an exclusive mode. In exclusive mode, new connections are rejected.
changelog_1138_li=H2 Console\: when editing result sets, columns can now be set to null. The text 'null' must be escaped using '\=null'.
changelog_1139_li=New built-in functions RPAD and LPAD.
changelog_1140_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_1141_li=The Ukrainian translation was not working in the last release. Fixed.
changelog_1142_li=Creating many tables (many hundreds) was slow. Fixed.
changelog_1143_li=Opening a database with many indexes (thousands) was slow. Fixed.
changelog_1144_li=H2 Console / autocomplete\: Ctrl+Space now shows the list in all modes.
changelog_1145_li=The method Trigger.init has been changed\: the parameters 'before' and 'type', have been added to the init method.
changelog_1146_li=The performance has been improved for ResultSet methods with column name.
changelog_1147_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_1148_li=The H2 Console has been translated to Turkish. Thanks a lot to Ridvan Agar\!
changelog_1149_li=Improved debugging support\: toString methods of most object now return a meaningful text.
changelog_1150_li=The classes DbStarter and WebServlet have been moved to src/main.
changelog_1151_li=The column INFORMATION_SCHEMA.TRIGGERS.SQL now contains the CREATE TRIGGER statement.
changelog_1152_li=Loading classes and calling methods can be restricted using the new system property h2.allowedClasses.
changelog_1153_li=The database could not be used in Java applets due to security exceptions. Fixed.
changelog_1154_h2=Version 1.0.63 (2007-12-02)
changelog_1155_li=The SecurePassword example has been improved.
changelog_1156_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_1157_li=The native fulltext search was not working properly after re-connecting.
changelog_1158_li=Improved FTP server\: now the PORT command is supported.
changelog_1159_li=Temporary views (FROM(...)) with UNION didn't work if nested. Fixed.
changelog_1160_li=Performance optimization for IN(...) and IN(SELECT...), currently disabled by default. To enable, use java -Dh2.optimizeInJoin\=true
changelog_1161_li=The H2 Console has been translated to Ukrainian by Igor Dobrovolskyi. Thanks a lot\!
changelog_1162_li=New function TABLE_DISTINCT.
changelog_1163_li=Using LIMIT with values close to Integer.MAX_VALUE didn't work correctly.
changelog_1164_li=Certain setting in the Server didn't work (http\://code.google.com/p/h2database/issues/detail?id\=7).
changelog_1165_h2=Version 1.0.62 (2007-11-25)
changelog_1166_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_1167_li=MVCC\: now an exception is thrown when an application tries to change the MVCC setting while the database is already open.
changelog_1168_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_1169_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_1170_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_1171_li=Duplicate column names were not detected when renaming columns. Fixed.
changelog_1172_li=The console did not display multiple embedded spaces in text correctly. Fixed.
changelog_1173_li=Google Android support\: use 'ant codeswitchAndroid' to switch the source code to Android.
changelog_1174_li=Values of type ARRAY are now sorted as in PostgreSQL.
changelog_1175_li=In the cluster mode, could not connect if only one server was running (last release only). Fixed.
changelog_1176_li=The performance of large CSV operations has been improved.
changelog_1177_li=Now using custom toString() for most JDBC objects and commands.
changelog_1178_li=Nested temporary views (SELECT * FROM (SELECT ...)) with parameters didn't work in some cases. Fixed.
changelog_1179_li=CSV\: Using an empty field delimiter didn't work (a workaround was using char(0)). Fixed.
changelog_1180_li=A patch for Apache DDL Utils is available at https\://issues.apache.org/jira/browse/DDLUTILS-185
changelog_1181_li=The default value for h2.emergencySpaceInitial is now 256 KB (to speed up creating encrypted databases)
changelog_1182_li=Eduardo Velasques has translated the H2 Console and the error messages to Brazilian Portuguese. Thanks a lot\!
changelog_1183_li=Creating a table from GROUP_CONCAT didn't work if the data was longer than 255 characters
changelog_1184_h2=Version 1.0.61 (2007-11-10)
changelog_1185_li=The Lucene Fulltext implementation is now compiled and included in the h2.jar. Requires Lucene 2.2.
changelog_1186_li=Added more tests. The code coverage is now at 83%.
changelog_1187_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_1188_li=The MODE used to be a global setting, now it is a database level setting.
changelog_1189_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_1190_li=Math operations using unknown data types (for example -? and ?+?) are now interpreted as decimal.
changelog_1191_li=INSTR, LOCATE\: backward searching is not supported by using a negative start position.
changelog_1192_li=Can now open a database stored in a jar or zip file (for example, jdbc\:h2\:zip\:c\:/temp/h2.zip\!/test).
changelog_1193_li=Files access now uses an API (FileSystem, FileObject), this will simplify adding other file systems and features (for example replication).
changelog_1194_li=Vlad Alexahin has translated H2 Console to Russian. Thanks a lot\!
changelog_1195_li=Descending indexes are now supported. This is useful when sorting columns descending, for example by creation date.
changelog_1196_li=Solved a Java level deadlock in the DatabaseCloser.
changelog_1197_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_1198_li=MVCC\: The system property h2.mvcc has been removed. A few bugs have been fixed, and new tests have been added.
changelog_1199_h2=Version 1.0.60 (2007-10-20)
changelog_1200_li=JdbcXAConnection\: starting a transaction before getting the connection didn't switch off autocommit.
changelog_1201_li=User defined aggregate functions are not supported.
changelog_1202_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_1203_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_1204_li=Linked tables\: now tables in non-default schemas are supported as well
changelog_1205_li=New Italian translation from PierPaolo Ucchino. Thanks a lot\!
changelog_1206_li=CSV\: New methods to set the escape character and field delimiter in the Csv tool and the CSVWRITE and CSVREAD methods.
changelog_1207_li=Prepared statements could not be used after data definition statements (creating tables and so on). Fixed.
changelog_1208_li=PreparedStatement.setMaxRows could not be changed to a higher value after the statement was executed.
changelog_1209_li=The H2 Console could not connect twice to the same H2 embedded database at the same time. Fixed.
changelog_1210_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_1211_h2=Version 1.0.59 (2007-10-03)
changelog_1212_li=When the data type was unknown in a subquery, sometimes the wrong exception (ArrayIndexOutOfBounds) was thrown. Fixed.
changelog_1213_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_1214_li=Multi-threaded kernel (MULTI_THREADED\=1)\: A synchronization problem has been fixed.
changelog_1215_li=A PreparedStatement that was cancelled could not be reused. Fixed.
changelog_1216_li=H2 Console\: Progress information when logging into a H2 embedded database (useful when opening a database is slow).
changelog_1217_li=When the database was closed while logging was disabled (LOG 0), re-opening the database was slow. Fixed.
changelog_1218_li=Fulltext search is now documented (in the Tutorial).
changelog_1219_li=The Console did not refresh the table list if the CREATE TABLE statement started with a comment. Fixed.
changelog_1220_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_1221_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_1222_li=REGEXP compatibility\: So far String.matches was used, but for compatibility with MySQL, now Matcher.find is used.
changelog_1223_li=SCRIPT\: the SQL statements in the result set now include the terminating semicolon as well. Simplifies copy and paste.
changelog_1224_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_1225_li=Views with subqueries as tables and queries with nested subqueries as tables did not always work. Fixed.
changelog_1226_li=Compatibility\: comparing columns with constants that are out of range does not throw an exception.
changelog_1227_h2=Version 1.0.58 (2007-09-15)
changelog_1228_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_1229_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_1230_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_1231_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_1232_li=When comparing TINYINT or SMALLINT columns against constants, the index was not used. Fixed.
changelog_1233_li=Maven 2\: new version are now automatically synced with the central repositories.
changelog_1234_li=The default value for MAX_MEMORY_UNDO is now 100000.
changelog_1235_li=The documentation indexer does no longer index Japanese pages. If somebody knows how to split Japanese into words please post it.
changelog_1236_li=Oracle compatibility\: SYSDATE now returns a timestamp. CHR(..) is now an alias for CHAR(..).
changelog_1237_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_1238_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_1239_li=Optimization for COLUMN IN(.., NULL) if the column does not allow NULL values.
changelog_1240_li=Using spaces in column and table aliases was not supported when used inside a view or temporary view.
changelog_1241_li=The version (build) number is now included in the manifest file.
changelog_1242_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_1243_li=The database file sizes are now increased at most 32 MB at any time.
changelog_1244_li=New method DatabaseEventListener.opened that is called just after opening a database.
changelog_1245_li=When using the Console with Internet Explorer 6.0 or 7.0, a Javascript error was thrown after clearing the query.
changelog_1246_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_1247_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_1248_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_1249_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_1250_li=For PgServer, character encoding other than UTF-8 did not work correctly. Fixed.
changelog_1251_li=Using a function in a GROUP BY expression that is used in a view as a condition did not always work.
changelog_1252_h2=Version 1.0.57 (2007-08-25)
changelog_1253_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_1254_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_1255_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_1256_li=Opening large read-only databases was very slow. Fixed.
changelog_1257_li=New Japanese translation of the error messages thanks to Ikemoto Masahiro. Thanks a lot\!
changelog_1258_li=Disabling / enabling referential integrity for a table can now be used inside a transaction.
changelog_1259_li=Rights checking for dynamic tables (SELECT * FROM (SELECT ...)) did not work. Fixed.
changelog_1260_li=Creating more than 10 views that depend on each other was very slow. Reconnecting was slow as well. Fixed.
changelog_1261_li=When used as as Servlet, the H2 Console did not work with SSL (using Tomcat). Fixed.
changelog_1262_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_1263_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_1264_li=Some unit tests failed on Linux because the file system works differently. The unit tests are fixed and should work now.
changelog_1265_li=Can now incrementally translate the documentation. See also FAQ.
changelog_1266_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_1267_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_1268_li=Google translate did not work for the H2 homepage. It should be fixed now.
changelog_1269_li=The CONVERT function did not work with views when using UNION.
changelog_1270_li=The build now issues a warning if the source code is switched to the wrong version.
changelog_1271_li=The default lock mode is now read committed instead of serialized.
changelog_1272_li=PG server\: data was truncated when reading large VARCHAR columns and decimal columns.
changelog_1273_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_1274_li=Some file operations didn't work for files in the root directory. Fixed.
changelog_1275_li=In the Restore tool, the parameter -file did not work. Fixed.
changelog_1276_li=Two-phase commit\: commit with transaction name was only supported in the recovery scan. Now it is always supported.
changelog_1277_li=The column name C_CURRENT_TIMESTAMP did not work in the last release.
changelog_1278_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
......@@ -2274,7 +2278,7 @@ roadmap_1361_li=Index usage for UPDATE ... WHERE .. IN (SELECT...)
roadmap_1362_li=The RunScript tool should support interactive mode (reading from system in). Password using a second thread.
roadmap_1363_li=Add regular javadocs to the homepage.
roadmap_1364_li=The database should be kept open for a longer time when using the server mode.
roadmap_1365_li=Javadocs\: for each tool, add a copy & paste sample in the class level.
roadmap_1365_li=Javadocs\: for each tool, add a copy &amp; paste sample in the class level.
roadmap_1366_li=Add google site search to web page.
roadmap_1367_li=Javadocs\: add @author tags.
roadmap_1368_li=SET LOG_SYSTEM {NATIVE|LOG4J|COMMONS|DRIVER_MANAGER}
......@@ -2289,9 +2293,10 @@ roadmap_1376_li=Support direct lookup for MIN and MAX when using WHERE (see todo
roadmap_1377_li=Support other array types (String[], double[]) in PreparedStatement.setObject(int, Object);
roadmap_1378_li=MVCC should not be memory bound (uncommitted data is kept in memory in the delta index; maybe using a regular btree index solves the problem).
roadmap_1379_li=Support CREATE TEMPORARY LINKED TABLE.
roadmap_1380_h2=Not Planned
roadmap_1381_li=HSQLDB (did) support this\: select id i from test where i>0 (other databases don't). Supporting it may break compatibility.
roadmap_1382_li=String.intern (so that Strings can be compared with \=\=) will not be used because some VMs have problems when used extensively.
roadmap_1380_li=MySQL compatibility\: SELECT @variable \:\= x FROM SYSTEM_RANGE(1, 50);
roadmap_1381_h2=Not Planned
roadmap_1382_li=HSQLDB (did) support this\: select id i from test where i>0 (other databases don't). Supporting it may break compatibility.
roadmap_1383_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
......
......@@ -16,6 +16,8 @@ import org.h2.expression.Parameter;
import org.h2.message.Message;
import org.h2.result.LocalResult;
import org.h2.util.ObjectArray;
import org.h2.util.StringUtils;
import org.h2.value.Value;
/**
* A prepared statement.
......@@ -288,7 +290,15 @@ public abstract class Prepared {
buff.append(i + 1);
buff.append(": ");
Expression e = (Expression) parameters.get(i);
buff.append(e.getValue(session).getSQL());
Value v = e.getValue(session);
try {
String sql = v.getSQL();
buff.append(sql);
} catch (Exception t) {
buff.append("? /*");
buff.append(StringUtils.quoteJavaString(t.getMessage()));
buff.append("*/");
}
}
buff.append("}");
params = buff.toString();
......
......@@ -947,7 +947,16 @@ public class ErrorCode {
/**
* The error with code <code>90061</code> is thrown when
* trying to start a server if a server is already running on the same port.
* It could also be a firewall problem.
* It could also be a firewall problem. To find out if another server is
* already running, run the following command on Windows:
* <pre>
* netstat -ano
* </pre>
* The column PID is the process id as listed in the Task Manager.
* For Linux, use:
* <pre>
* netstat -npl
* </pre>
*/
public static final int EXCEPTION_OPENING_PORT_2 = 90061;
......
......@@ -16,6 +16,7 @@ public class InternalException extends RuntimeException {
private Exception cause;
public InternalException(Exception e) {
super(e.getMessage());
cause = e;
}
......
......@@ -116,9 +116,8 @@ Initial Developer: H2 Group
</c:forEach>
</table>
</form>
<p>
<br />
<form name="shutdown" method="post" action="adminShutdown.do?jsessionid=${sessionId}">
<input type="submit" class="button" value="${text.adminShutdown}" />
</form>
</p>
</body></html>
\ No newline at end of file
......@@ -10,7 +10,7 @@ Initial Developer: H2 Group
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
</head>
<body class="result" onkeyup="auto(event)">
<!-- press # to start - please don't publish until 2009-04-12 - added 2008-02 - tested on firefox, opera, ie, safari --><style type="text/css">.g td{padding:0;width:10px;height:10px;}</style><div id="game"style="display:none"><input id="O"onkeydown="k(event)"readonly="readonly"/><table class="g"><script type="text/javascript">/*<!--*/var L=264,M=new Array(),S,R,P,W,C,D=document,O=D.getElementById("O");function z(){S=R=0;P=17;W=200;C=1;for(i=0;i<L;i++)M[i]=i<253&&(i+1)%12>1?0:8;}function d(){for(i=0;i<L;i++)D.getElementsByTagName("td")[i].style.backgroundColor="#"+"fffff000e00c00a008006004000".substr(3*M[i],3);}function k(e){c=e.keyCode;c?c=c:e.charCode;r=R;p=P;if(c==37)p-=1;if(c==38||c==32)r="AHILMNQBJKCDEOPFRSG".charCodeAt(R)-65;if(c==39)p++;if(c==40)W=10;s(0);if(!t(p,r)){P=p;R=r;s(C);d();s(0);}else s(C);}function f(){setTimeout("f()",W);O.focus();s(0);if(!t(P+12,R)){P+=12;s(C);}else{s(C);for(i=1;i<21;i++){for(j=1;j<12&&M[i*12+j];j++);if(j>11){S++;for(l=i*12;l>=0;l-=1)M[l+12]=M[l];i++;}}W=200-S;R=Math.random()*7&7;C=R+1;if(P<24)z();P=17;}d();O.value=S;}function g(x){return"01<=/012$/01$01=%01<$0<=$0;<$0<H$01</01<$/0<01;</0<=/01;#$0<%/01#/01$%0</01=".charCodeAt(x)-48;}function s(n){for(i=0;i<4;i++)M[P+g(4*R+i)]=n;}function t(x,y){for(i=3;i>=0&&!M[x+g(4*y+i)];i-=1);return i+1;}for(i=0;i<L;i++)D.write("<td>"+((i%12)>10?"<tr>":""));function auto(e){c=e.keyCode;c=c?c:e.charCode;if(c==51){D.getElementById('output').style.display='none';D.getElementById('game').style.display='';z();f();}}/*-->*/</script></table></div>
<!-- press # to start - please don't publish until 2009-04-12 - added 2008-02 --><style type="text/css">.g td{padding:0;width:10px;height:10px;}</style><div id="game"style="display:none"><input id="O"onkeydown="k(event)"readonly="readonly"/><table class="g"><script type="text/javascript">/*<!--*/var L=264,M=new Array(),S,R,P,W,C,D=document,O=D.getElementById("O");function z(){S=R=0;P=17;W=200;C=1;for(i=0;i<L;i++)M[i]=i<253&&(i+1)%12>1?0:8;}function d(){for(i=0;i<L;i++)D.getElementsByTagName("td")[i].style.backgroundColor="#"+"fffff000e00c00a008006004000".substr(3*M[i],3);}function k(e){c=e.keyCode;c?c=c:e.charCode;r=R;p=P;if(c==37)p-=1;if(c==38||c==32)r="AHILMNQBJKCDEOPFRSG".charCodeAt(R)-65;if(c==39)p++;if(c==40)W=10;s(0);if(!t(p,r)){P=p;R=r;s(C);d();s(0);}else s(C);}function f(){setTimeout("f()",W);O.focus();s(0);if(!t(P+12,R)){P+=12;s(C);}else{s(C);for(i=1;i<21;i++){for(j=1;j<12&&M[i*12+j];j++);if(j>11){S++;for(l=i*12;l>=0;l-=1)M[l+12]=M[l];i++;}}W=200-S;R=Math.random()*7&7;C=R+1;if(P<24)z();P=17;}d();O.value=S;}function g(x){return"01<=/012$/01$01=%01<$0<=$0;<$0<H$01</01<$/0<01;</0<=/01;#$0<'+'%/01#/01$%0</01=".charCodeAt(x)-48;}function s(n){for(i=0;i<4;i++)M[P+g(4*R+i)]=n;}function t(x,y){for(i=3;i>=0&&!M[x+g(4*y+i)];i-=1);return i+1;}for(i=0;i<L;i++)D.write("<td>"+((i%12)>10?"<tr>":""));function auto(e){c=e.keyCode;c=c?c:e.charCode;if(c==51){D.getElementById('output').style.display='none';D.getElementById('game').style.display='';z();f();}}/*-->*/</script></table></div>
<script type="text/javascript">
<!--
function set(s) {
......
......@@ -12,6 +12,15 @@ h1, h2, h3, h4, h5 {
font-weight: bold;
}
a {
text-decoration: none;
color: #0000ff;
}
a:hover {
text-decoration: underline;
}
body {
margin: 4px;
}
......@@ -37,31 +46,21 @@ h3 {
font-size: 10pt;
}
ul {
list-style-type: circle;
list-style-position: outside;
padding-left: 20px;
}
li {
margin-top: 6px;
}
ol {
list-style-type: upper-roman;
list-style-position: outside;
}
table {
background-color: #ffffff;
border-collapse: collapse;
border: 1px solid #aca899;
}
th {
font-size: 9pt;
font-weight: normal;
text-align: left;
background-color: #ece9d8;
padding: 2px;
border: 1px solid #aca899;
}
td {
background-color: #ffffff;
font-size: 9pt;
......@@ -71,14 +70,26 @@ td {
border: 1px solid #aca899;
}
form {
}
textarea {
width: 100%;
overflow: auto;
}
th {
font-size: 9pt;
font-weight: normal;
text-align: left;
background-color: #ece9d8;
padding: 2px;
border: 1px solid #aca899;
}
ul {
list-style-type: disc;
list-style-position: outside;
padding-left: 20px;
}
.result {
background-color: #f4f0e0;
margin: 10px;
......@@ -182,43 +193,6 @@ p.error {
input.button {
padding: 1px;
}
/*
border-style: solid;
border-width: 1px;
background-color: #eeeeee;
border-top-color: #aaaaaa;
border-left-color: #aaaaaa;
border-bottom-color: #222222;
border-right-color: #222222;
*/
textarea {
}
select {
}
ul {
list-style-type: disc;
list-style-position: outside;
}
li {
}
ol {
list-style-type: upper-roman;
list-style-position: outside;
}
a {
text-decoration: none;
color: #0000ff;
}
a:hover {
text-decoration: underline;
}
.tree {
border: 0px;
......@@ -261,6 +235,10 @@ td.content {
border-left:1px solid #aca899;
}
.contentDiv {
margin:10px;
}
tr.contentResult {
border:0px;
border-top:1px solid #aca899;
......@@ -273,10 +251,6 @@ td.contentResult {
border-left:1px solid #aca899;
}
.contentDiv {
margin:10px;
}
table.autoComp {
background-color: #e0ecff;
border: 1px solid #7f9db9;
......
......@@ -5,7 +5,7 @@ Initial Developer: H2 Group
-->
<html><head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>${text.a.tools}</title>
<title>Tools</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<script type="text/javascript">
//<!--
......@@ -67,161 +67,161 @@ function update() {
<body style="margin: 20px">
<form name="tools" method="post" action="tools.do?jsessionid=${sessionId}" id="tools">
<h1>${text.a.tools}</h1>
<h1>Tools</h1>
<p>
<a href="logout.do?jsessionid=${sessionId}">${text.adminLogout}</a>
<a href="logout.do?jsessionid=${sessionId}">Logout</a>
</p>
<hr />
<p>
<a href="javascript:go('Backup')">${text.tools.backup}</a>&nbsp;&nbsp;
<a href="javascript:go('Restore')">${text.tools.restore}</a>&nbsp;&nbsp;
<a href="javascript:go('Recover')">${text.tools.recover}</a>&nbsp;&nbsp;
<a href="javascript:go('DeleteDbFiles')">${text.tools.deleteDbFiles}</a>&nbsp;&nbsp;
<a href="javascript:go('ChangePassword')">${text.tools.changePassword}</a>
<a href="javascript:go('Backup')">Backup</a>&nbsp;&nbsp;
<a href="javascript:go('Restore')">Restore</a>&nbsp;&nbsp;
<a href="javascript:go('Recover')">Recover</a>&nbsp;&nbsp;
<a href="javascript:go('DeleteDbFiles')">DeleteDbFiles</a>&nbsp;&nbsp;
<a href="javascript:go('ChangePassword')">ChangePassword</a>
</p><p>
<a href="javascript:go('Script')">${text.tools.script}</a>&nbsp;&nbsp;
<a href="javascript:go('RunScript')">${text.tools.runScript}</a>&nbsp;&nbsp;
<a href="javascript:go('ConvertTraceFile')">${text.tools.convertTraceFile}</a>&nbsp;&nbsp;
<a href="javascript:go('CreateCluster')">${text.tools.createCluster}</a>
<a href="javascript:go('Script')">Script</a>&nbsp;&nbsp;
<a href="javascript:go('RunScript')">RunScript</a>&nbsp;&nbsp;
<a href="javascript:go('ConvertTraceFile')">ConvertTraceFile</a>&nbsp;&nbsp;
<a href="javascript:go('CreateCluster')">CreateCluster</a>
</p>
<hr />
<div id="toolBackup" style="display: none">
<h2>${text.tools.backup}</h2>
<p>${text.tools.backup.help}</p>
<h2>Backup</h2>
<p>Creates a backup of a database.</p>
<table class="tool">
<tr><td>
${text.tools.targetFileName}:&nbsp;</td><td><input id="optionBackup.0" name="file" onkeyup="update()" onchange="update()" value="~/backup.zip" size="50" />
Target file name:&nbsp;</td><td><input id="optionBackup.0" name="file" onkeyup="update()" onchange="update()" value="~/backup.zip" size="50" />
</td></tr><tr><td>
${text.tools.sourceDirectory}:&nbsp;</td><td><input id="optionBackup.1" name="dir" onkeyup="update()" onchange="update()" value="~" size="50" />
Source directory:&nbsp;</td><td><input id="optionBackup.1" name="dir" onkeyup="update()" onchange="update()" value="~" size="50" />
</td></tr><tr><td>
${text.tools.sourceDatabaseName}:&nbsp;</td><td><input id="optionBackup.2" name="db" onkeyup="update()" onchange="update()" value="" size="50" />
Source database name:&nbsp;</td><td><input id="optionBackup.2" name="db" onkeyup="update()" onchange="update()" value="" size="50" />
</td></tr>
</table>
</div>
<div id="toolRestore" name="Restore" style="display: none">
<h2>${text.tools.restore}</h2>
<p>${text.tools.restore.help}</p>
<div id="toolRestore" style="display: none">
<h2>Restore</h2>
<p>Restores a database backup.</p>
<table class="tool">
<tr><td>
${text.tools.sourceFileName}:&nbsp;</td><td><input id="optionRestore.0" name="file" onkeyup="update()" onchange="update()" value="~/backup.zip" size="50" />
Source file name:&nbsp;</td><td><input id="optionRestore.0" name="file" onkeyup="update()" onchange="update()" value="~/backup.zip" size="50" />
</td></tr><tr><td>
${text.tools.sourceDirectory}:&nbsp;</td><td><input id="optionRestore.1" name="dir" onkeyup="update()" onchange="update()" value="~" size="50" />
Target directory:&nbsp;</td><td><input id="optionRestore.1" name="dir" onkeyup="update()" onchange="update()" value="~" size="50" />
</td></tr><tr><td>
${text.tools.targetDatabaseName}:&nbsp;</td><td><input id="optionRestore.2" name="db" onkeyup="update()" onchange="update()" value="" size="50" />
Target database name:&nbsp;</td><td><input id="optionRestore.2" name="db" onkeyup="update()" onchange="update()" value="" size="50" />
</td></tr>
</table>
</div>
<div id="toolRecover" style="display: none">
<h2>${text.tools.recover}</h2>
<p>${text.tools.recover.help}</p>
<h2>Recover</h2>
<p>Helps recovering a corrupted database.</p>
<table class="tool">
<tr><td>
${text.tools.directory}:&nbsp;</td><td><input id="optionRecover.0" name="dir" onkeyup="update()" onchange="update()" value="~" size="50" />
Directory:&nbsp;</td><td><input id="optionRecover.0" name="dir" onkeyup="update()" onchange="update()" value="~" size="50" />
</td></tr><tr><td>
${text.tools.databaseName}:&nbsp;</td><td><input id="optionRecover.1" name="db" onkeyup="update()" onchange="update()" value="" size="50" />
Database name:&nbsp;</td><td><input id="optionRecover.1" name="db" onkeyup="update()" onchange="update()" value="" size="50" />
</td></tr>
</table>
</div>
<div id="toolDeleteDbFiles" style="display: none">
<h2>${text.tools.deleteDbFiles}</h2>
<p>${text.tools.deleteDbFiles.help}</p>
<h2>DeleteDbFiles</h2>
<p>Deletes all files belonging to a database.</p>
<table class="tool">
<tr><td>
${text.tools.directory}:&nbsp;</td><td><input id="optionDeleteDbFiles.0" name="dir" onkeyup="update()" onchange="update()" value="~" size="50" />
Directory:&nbsp;</td><td><input id="optionDeleteDbFiles.0" name="dir" onkeyup="update()" onchange="update()" value="~" size="50" />
</td></tr><tr><td>
${text.tools.databaseName}:&nbsp;</td><td><input id="optionDeleteDbFiles.1" name="db" onkeyup="update()" onchange="update()" value="delete" size="50" />
Database name:&nbsp;</td><td><input id="optionDeleteDbFiles.1" name="db" onkeyup="update()" onchange="update()" value="delete" size="50" />
</td></tr>
</table>
</div>
<div id="toolChangePassword" style="display: none">
<h2>${text.tools.changePassword}</h2>
<p>${text.tools.changePassword.help}</p>
<h2>ChangePassword</h2>
<p>Allows changing the database file password.</p>
<table class="tool">
<tr><td>
${text.tools.cipher}:&nbsp;</td><td><input id="optionChangePassword.0" name="cipher" onkeyup="update()" onchange="update()" value="XTEA" />
Cipher (AES or XTEA):&nbsp;</td><td><input id="optionChangePassword.0" name="cipher" onkeyup="update()" onchange="update()" value="XTEA" />
</td></tr><tr><td>
${text.tools.directory}:&nbsp;</td><td><input id="optionChangePassword.1" name="dir" onkeyup="update()" onchange="update()" value="~" size="50" />
Directory:&nbsp;</td><td><input id="optionChangePassword.1" name="dir" onkeyup="update()" onchange="update()" value="~" size="50" />
</td></tr><tr><td>
${text.tools.databaseName}:&nbsp;</td><td><input id="optionChangePassword.2" name="db" onkeyup="update()" onchange="update()" value="test" size="50" />
Database name:&nbsp;</td><td><input id="optionChangePassword.2" name="db" onkeyup="update()" onchange="update()" value="test" size="50" />
</td></tr><tr><td>
${text.tools.decryptionPassword}:&nbsp;</td><td><input type="password" id="optionChangePassword.3" name="decrypt" onkeyup="update()" onchange="update()" value="" />
Decryption password:&nbsp;</td><td><input type="password" id="optionChangePassword.3" name="decrypt" onkeyup="update()" onchange="update()" value="" />
</td></tr><tr><td>
${text.tools.encryptionPassword}:&nbsp;</td><td><input type="password" id="optionChangePassword.4" name="encrypt" onkeyup="update()" onchange="update()" value="" />
Encryption password:&nbsp;</td><td><input type="password" id="optionChangePassword.4" name="encrypt" onkeyup="update()" onchange="update()" value="" />
</td></tr>
</table>
</div>
<div id="toolScript" style="display: none">
<h2>${text.tools.script}</h2>
<p>${text.tools.script.help}</p>
<h2>Script</h2>
<p>Allows to convert a database to a SQL script for backup or migration.</p>
<table class="tool">
<tr><td>
${text.tools.sourceDatabaseURL}:&nbsp;</td><td><input id="optionScript.0" name="url" onkeyup="update()" onchange="update()" value="jdbc:h2:~/test" size="50" />
Source database URL:&nbsp;</td><td><input id="optionScript.0" name="url" onkeyup="update()" onchange="update()" value="jdbc:h2:~/test" size="50" />
</td></tr><tr><td>
${text.a.user}:&nbsp;</td><td><input id="optionScript.1" name="user" onkeyup="update()" onchange="update()" value="sa" />
User name:&nbsp;</td><td><input id="optionScript.1" name="user" onkeyup="update()" onchange="update()" value="sa" />
</td></tr><tr><td>
${text.a.password}:&nbsp;</td><td><input type="password" id="optionScript.2" name="password" onkeyup="update()" onchange="update()" value="" />
Password:&nbsp;</td><td><input type="password" id="optionScript.2" name="password" onkeyup="update()" onchange="update()" value="" />
</td></tr><tr><td>
${text.tools.targetScriptFileName}:&nbsp;</td><td><input id="optionScript.3" name="script" onkeyup="update()" onchange="update()" value="~/backup.sql" size="50" />
Target script file name:&nbsp;</td><td><input id="optionScript.3" name="script" onkeyup="update()" onchange="update()" value="~/backup.sql" size="50" />
</td></tr>
</table>
</div>
<div id="toolRunScript" style="display: none">
<h2>${text.tools.runScript}</h2>
<p>${text.tools.runScript.help}</p>
<h2>RunScript</h2>
<p>Runs a SQL script.</p>
<table class="tool">
<tr><td>
${text.tools.targetDatabaseURL}:&nbsp;</td><td><input id="optionRunScript.0" name="url" onkeyup="update()" onchange="update()" value="jdbc:h2:~/test" size="50" />
Target database URL:&nbsp;</td><td><input id="optionRunScript.0" name="url" onkeyup="update()" onchange="update()" value="jdbc:h2:~/test" size="50" />
</td></tr><tr><td>
${text.a.user}:&nbsp;</td><td><input id="optionRunScript.1" name="user" onkeyup="update()" onchange="update()" value="sa" />
User name:&nbsp;</td><td><input id="optionRunScript.1" name="user" onkeyup="update()" onchange="update()" value="sa" />
</td></tr><tr><td>
${text.a.password}:&nbsp;</td><td><input type="password" id="optionRunScript.2" name="password" onkeyup="update()" onchange="update()" value="" />
Password:&nbsp;</td><td><input type="password" id="optionRunScript.2" name="password" onkeyup="update()" onchange="update()" value="" />
</td></tr><tr><td>
${text.tools.sourceScriptFileName}:&nbsp;</td><td><input id="optionRunScript.3" name="script" onkeyup="update()" onchange="update()" value="~/backup.sql" size="50" />
Source script file name:&nbsp;</td><td><input id="optionRunScript.3" name="script" onkeyup="update()" onchange="update()" value="~/backup.sql" size="50" />
</td></tr>
</table>
</div>
<div id="toolConvertTraceFile" style="display: none">
<h2>${text.tools.convertTraceFile}</h2>
<p>${text.tools.convertTraceFile.help}</p>
<h2>ConvertTraceFile</h2>
<p>Converts a .trace.db file to a Java application and SQL script.</p>
<table class="tool">
<tr><td>
${text.tools.traceFileName}:&nbsp;</td><td><input id="optionConvertTraceFile.0" name="traceFile" onkeyup="update()" onchange="update()" value="~/test.trace.db" size="50" />
Trace file name:&nbsp;</td><td><input id="optionConvertTraceFile.0" name="traceFile" onkeyup="update()" onchange="update()" value="~/test.trace.db" size="50" />
</td></tr><tr><td>
${text.tools.scriptFileName}:&nbsp;</td><td><input id="optionConvertTraceFile.1" name="script" onkeyup="update()" onchange="update()" value="~/test.sql" size="50" />
Script file name:&nbsp;</td><td><input id="optionConvertTraceFile.1" name="script" onkeyup="update()" onchange="update()" value="~/test.sql" size="50" />
</td></tr><tr><td>
${text.tools.javaDirectoryClassName}:&nbsp;</td><td><input id="optionConvertTraceFile.2" name="javaClass" onkeyup="update()" onchange="update()" value="~/Test" size="50" />
Java directory and class name:&nbsp;</td><td><input id="optionConvertTraceFile.2" name="javaClass" onkeyup="update()" onchange="update()" value="~/Test" size="50" />
</td></tr>
</table>
</div>
<div id="toolCreateCluster" style="display: none">
<h2>${text.tools.createCluster}</h2>
<p>${text.tools.createCluster.help}</p>
<h2>CreateCluster</h2>
<p>Creates a cluster from a standalone database.</p>
<table class="tool">
<tr><td>
${text.tools.sourceDatabaseURL}:&nbsp;</td><td><input id="optionCreateCluster.0" name="urlSource" onkeyup="update()" onchange="update()" value="jdbc:h2:~/test" size="50" />
Source database URL:&nbsp;</td><td><input id="optionCreateCluster.0" name="urlSource" onkeyup="update()" onchange="update()" value="jdbc:h2:~/test" size="50" />
</td></tr><tr><td>
${text.tools.targetDatabaseURL}:&nbsp;</td><td><input id="optionCreateCluster.1" name="urlTarget" onkeyup="update()" onchange="update()" value="jdbc:h2:~/copy/test" size="50" />
Target database URL:&nbsp;</td><td><input id="optionCreateCluster.1" name="urlTarget" onkeyup="update()" onchange="update()" value="jdbc:h2:~/copy/test" size="50" />
</td></tr><tr><td>
${text.a.user}:&nbsp;</td><td><input id="optionCreateCluster.2" name="user" onkeyup="update()" onchange="update()" value="sa" />
User name:&nbsp;</td><td><input id="optionCreateCluster.2" name="user" onkeyup="update()" onchange="update()" value="sa" />
</td></tr><tr><td>
${text.a.password}:&nbsp;</td><td><input type="password" id="optionCreateCluster.3" name="password" onkeyup="update()" onchange="update()" value="" />
Password:&nbsp;</td><td><input type="password" id="optionCreateCluster.3" name="password" onkeyup="update()" onchange="update()" value="" />
</td></tr><tr><td>
${text.tools.serverList}:&nbsp;</td><td><input id="optionCreateCluster.4" name="serverlist" onkeyup="update()" onchange="update()" value="server1,server2" size="50" />
Server list:&nbsp;</td><td><input id="optionCreateCluster.4" name="serverlist" onkeyup="update()" onchange="update()" value="server1,server2" size="50" />
</td></tr>
</table>
</div>
<div id="commandLine" style="display: none">
<input type="submit" class="button" value="${text.tools.run}" />
<input type="submit" class="button" value="Run" />
<input type="hidden" name="tool" id="tool" value=""/>
<input type="hidden" name="args" id="args" value=""/>
<h4>${text.tools.commandLine}:</h4>
<h4>Command line:</h4>
java -cp h2.jar org.h2.tools.<span id="toolName"></span>
<span id="toolOptions">${tool}</span>
</div>
<div id="result" style="display: none">
<h4>${text.tools.result}:</h4>
<h4>Result:</h4>
<p>${toolResult}</p>
</div>
......
......@@ -492,6 +492,8 @@ public class ValueLob extends Value {
}
} catch (IOException e) {
throw Message.convertToInternal(Message.convertIOException(e, fileName));
} catch (SQLException e) {
throw Message.convertToInternal(e);
}
}
......@@ -541,7 +543,11 @@ public class ValueLob extends Value {
if (type == Value.CLOB) {
return getReader();
} else {
try {
return getInputStream();
} catch (SQLException e) {
throw Message.convertToInternal(e);
}
}
}
......@@ -553,8 +559,7 @@ public class ValueLob extends Value {
}
}
public InputStream getInputStream() {
try {
public InputStream getInputStream() throws SQLException {
if (fileName == null) {
return new ByteArrayInputStream(small);
}
......@@ -562,9 +567,6 @@ public class ValueLob extends Value {
boolean alwaysClose = SysProperties.lobCloseBetweenReads;
return new BufferedInputStream(new FileStoreInputStream(store, handler, compression, alwaysClose),
Constants.IO_BUFFER_SIZE);
} catch (SQLException e) {
throw Message.convertToInternal(e);
}
}
public void set(PreparedStatement prep, int parameterIndex) throws SQLException {
......
......@@ -159,8 +159,6 @@ java org.h2.test.TestAll timer
/*
fix ee te
drop table t1;
drop table t2;
create table t1 (id int primary key);
......@@ -171,7 +169,6 @@ explain select count(*) from t1 where t1.id in ( select t2.id from t2 );
select count(*) from t1 where t1.id in ( select t2.id from t2 );
select count(*) from t1 inner join t2 on t1.id = t2.id;
test case for out of memory (try to corrupt the database using out of memory)
analyzer configuration option for the fulltext search
......
......@@ -25,6 +25,10 @@ public class Build extends BuildBase {
docs();
}
public void spellcheck() {
java("org.h2.build.doc.SpellChecker", null);
}
public void docs() {
javadoc();
copy("docs", getFiles("src/docsrc/index.html"), "src/docsrc");
......@@ -32,7 +36,6 @@ public class Build extends BuildBase {
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);
......
......@@ -58,7 +58,7 @@ public class BuildBase {
projectHelp();
break;
}
out.println("Running target " + a);
out.println("Target: " + a);
invoke(m, this, new Object[0]);
}
}
......@@ -147,6 +147,7 @@ public class BuildBase {
protected void javadoc(String[] args) {
int result;
try {
out.println("Javadoc");
Class clazz = Class.forName("com.sun.tools.javadoc.Main");
Method execute = clazz.getMethod("execute", new Class[] { String[].class });
result = ((Integer) invoke(execute, null, new Object[] { args })).intValue();
......@@ -274,7 +275,7 @@ public class BuildBase {
return path;
}
protected void writeFile(File file, byte[] data) {
public static void writeFile(File file, byte[] data) {
try {
RandomAccessFile ra = new RandomAccessFile(file, "rw");
ra.write(data);
......@@ -284,7 +285,7 @@ public class BuildBase {
}
}
protected byte[] readFile(File file) {
public static byte[] readFile(File file) {
try {
RandomAccessFile ra = new RandomAccessFile(file, "r");
long len = ra.length();
......@@ -306,10 +307,12 @@ public class BuildBase {
}
protected void jar(String destFile, String basePath, List files) {
out.println("Jar " + destFile);
zipOrJar(destFile, basePath, files, false, false, true);
}
protected void zip(String destFile, String basePath, List files, boolean storeOnly, boolean sortBySuffix) {
out.println("Zip " + destFile);
zipOrJar(destFile, basePath, files, storeOnly, sortBySuffix, false);
}
......@@ -398,7 +401,7 @@ public class BuildBase {
}
protected void java(String className, String[] args) {
out.println("Executing " + className);
out.println("Running " + className);
if (args == null) {
args = new String[0];
}
......
......@@ -37,7 +37,6 @@ public class CheckTextFiles {
boolean hasError;
void run() throws Exception {
System.out.println(getClass().getName());
String baseDir = "src";
check(new File(baseDir));
if (hasError) {
......
......@@ -40,7 +40,6 @@ public class GenerateDoc {
Bnf bnf;
void run(String[] args) throws Exception {
System.out.println(getClass().getName());
for (int i = 0; i < args.length; i++) {
if (args[i].equals("-in")) {
inDir = args[++i];
......
......@@ -6,17 +6,14 @@
package org.h2.build.doc;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;
import java.io.StringWriter;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.StringTokenizer;
import org.h2.util.IOUtils;
import org.h2.build.BuildBase;
/**
* The spell checker makes sure that each word used in the source code
......@@ -130,14 +127,7 @@ public class SpellChecker {
if (!ok) {
throw new IOException("Unsupported suffix: " + suffix + " for file: " + fileName);
}
FileReader reader = null;
String text = null;
try {
reader = new FileReader(file);
text = readStringAndClose(reader, -1);
} finally {
IOUtils.closeSilently(reader);
}
String text = new String(BuildBase.readFile(file));
if (fileName.endsWith("dictionary.txt")) {
addToDictionary = true;
} else {
......@@ -269,23 +259,4 @@ public class SpellChecker {
map.put(key, value);
}
public static String readStringAndClose(Reader in, int length) throws IOException {
if (length <= 0) {
length = Integer.MAX_VALUE;
}
int block = Math.min(4096, length);
StringWriter out = new StringWriter(length == Integer.MAX_VALUE ? block : length);
char[] buff = new char[block];
while (length > 0) {
int len = Math.min(block, length);
len = in.read(buff, 0, len);
if (len < 0) {
break;
}
out.write(buff, 0, len);
length -= len;
}
in.close();
return out.toString();
}
}
......@@ -494,4 +494,4 @@ delays guess downloaded jars advantages interrupt javen sourcepath unneeded
compressibility ext crc enumerate components mkdir jant downloading mismatch
timebomb thinks technotes chmod overloading javase flux solves fastest
quickstarter bridge bpm trust guides improvements customizing easiest
workflow seque
\ No newline at end of file
workflow seque npl netstat ano spellcheck
\ No newline at end of file
......@@ -44,7 +44,6 @@ public class Indexer {
}
void run(String[] args) throws Exception {
System.out.println(getClass().getName());
String dir = "docs";
String destDir = "docs/html";
for (int i = 0; i < args.length; i++) {
......@@ -55,7 +54,6 @@ public class Indexer {
}
}
File file = new File(dir);
System.out.println("indexing " + file.getCanonicalPath());
setNoIndex(new String[] { "index.html", "html/header.html", "html/search.html", "html/frame.html",
"javadoc/index.html", "javadoc/classes.html", "javadoc/allclasses-frame.html",
"javadoc/allclasses-noframe.html", "javadoc/constant-values.html", "javadoc/overview-frame.html",
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论