提交 8e8786dc authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 51813804
......@@ -18,13 +18,20 @@ Change Log
<h1>Change Log</h1>
<h2>Next Version (unreleased)</h2>
<ul><li>Row level locking for MVCC is now enabled. The exception
'Concurrent update in table ...' is still thrown, but only after the lock timeout.
<ul><li>Multiple UNION queries could not be used in derived tables.
</li><li>Linked tables can now be read-only.
</li><li>Temporary linked tables are now supported.
</li><li>The optimization for IN(...) is now enabled by default. Use -Dh2.optimizeInJoin=false to disable it.
</li><li>It was possible to create tables in read-only databases.
</li><li>SET SCHEMA_SEARCH_PATH is now documented.
</li><li>SET SCHEMA did not work for views.
</li><li>Row level locking for MVCC is now enabled. The exception
'Concurrent update in table ...' is still thrown, but only after the lock timeout.
</li><li>The maximum log file size setting was ignored for large databases.
</li><li>Multi-Version Concurrency (MVCC) may no longer be used when using
the multi-threaded kernel feature (MULTI_THREADED). An exception is thrown
when trying to connect with both settings. Additional synchronization
is required before those features can be used together.
the multi-threaded kernel feature (MULTI_THREADED). An exception is thrown
when trying to connect with both settings. Additional synchronization
is required before those features can be used together.
</li><li>The data type JAVA_OBJECT could not be used in updatable result sets.
</li><li>The system property h2.optimizeInJoin did not work correctly.
</li><li>Conditions such as ID=? AND ID>? were slow.
......
......@@ -100,7 +100,8 @@ spread the word and have translated this project. Also many thanks to the donors
via PayPal:
</p>
<ul>
<li>Ashwin Jayaprakash, USA
<li>Frank Berger, Germany
</li><li>Ashwin Jayaprakash, USA
</li><li>Florent Ramiere, France
</li><li>Jun Iyama, Japan
</li><li>Antonio Casqueiro, Portugal
......
......@@ -42,7 +42,6 @@ Of course, patches are always welcome, but are not always applied as is. Patches
</li><li>Test with Spatial DB in a box / JTS (http://docs.codehaus.org/display/GEOS/SpatialDBBox)
</li><li>Optimization: result set caching (like MySQL)
</li><li>Server side cursors
</li><li>Long running queries / errors / trace system table
</li><li>Migrate database tool (also from other database engines)
</li><li>Shutdown compact
</li></ul>
......@@ -58,9 +57,11 @@ Of course, patches are always welcome, but are not always applied as is. Patches
</li><li>Linked tables should support a schema name: CREATE LINKED TABLE ... (... [schemaName, ] originalTableString) - DB2: SET SCHEMA after connecting
</li><li>Option to shutdown all the running servers (on the same VM).
</li><li>Support OSGi: http://oscar-osgi.sourceforge.net, http://incubator.apache.org/felix/index.html
</li><li>Optimize ID=? OR ID=?: convert to IN(...)
</li><li>Optimize .. OR .. to UNION if the cost is lower
</li><li>H2 Console: new option 'Open a browser when starting the H2 Console'.
</li><li>Better space re-use in the files after deleting data: shrink the data file without closing the database (if the end of the file is empty)
</li><li>Optimize ID=? OR ID=?: convert to IN(...)
</li><li>Support large updates (use the transaction log to undo).
</li><li>Full outer joins
</li><li>Support trigger on the tables information_schema.tables and ...columns
</li><li>Test very large databases and LOBs (up to 256 GB)
......@@ -386,6 +387,12 @@ Of course, patches are always welcome, but are not always applied as is. Patches
</li><li>Support Oracle ROWID (unique identifier for each row).
</li><li>Server mode: Improve performance for batch updates.
</li><li>Applets: Support read-only databases in a zip file (accessed as a resource).
</li><li>Long running queries / errors / trace system table.
</li><li>H2 Console should support JaQu directly.
</li><li>Option to copy the old version of each changed page once after a checkpoint.
</li><li>H2 Console: support single file upload and directory download (optional).
</li><li>Document FTL_SEARCH, FTL_SEARCH_DATA.
</li><li>Support DatabaseMetaData.insertsAreDetected: updatable result sets should detect inserts.
</li></ul>
<h2>Not Planned</h2>
......
......@@ -206,7 +206,7 @@ The MVCC feature allows higher concurrency than using (table level or row level)
To use the MVCC feature, append MVCC=TRUE to the database URL:
@advanced_1069_p
The MVCC feature is not fully tested yet.
MVCC can not be used at the same time as MULTI_THREADED. The MVCC feature is not fully tested yet.
@advanced_1070_h2
Clustering / High Availability
......@@ -1109,861 +1109,876 @@ Change Log
Next Version (unreleased)
@changelog_1002_li
-
Row level locking for MVCC is now enabled. The exception 'Concurrent update in table ...' is still thrown, but only after the lock timeout.
@changelog_1003_h2
Version 1.0.78 (2008-08-28)
@changelog_1003_li
The maximum log file size setting was ignored for large databases.
@changelog_1004_li
The documentation no longer uses a frameset (except the Javadocs).
Multi-Version Concurrency (MVCC) may no longer be used when using the multi-threaded kernel feature (MULTI_THREADED). An exception is thrown when trying to connect with both settings. Additional synchronization is required before those features can be used together.
@changelog_1005_li
When using DB_CLOSE_DELAY, sometimes a NullPointerException is thrown when the database is opened almost at the same time as it is closed automatically. Thanks a lot to Dmitry Pekar for finding this!
The data type JAVA_OBJECT could not be used in updatable result sets.
@changelog_1006_li
Java methods with variable number of parameters can now be used (for Java 1.5 or newer).
The system property h2.optimizeInJoin did not work correctly.
@changelog_1007_li
Conditions such as ID=? AND ID>? were slow.
@changelog_1008_h2
Version 1.0.78 (2008-08-28)
@changelog_1009_li
The documentation no longer uses a frameset (except the Javadocs).
@changelog_1010_li
When using DB_CLOSE_DELAY, sometimes a NullPointerException is thrown when the database is opened almost at the same time as it is closed automatically. Thanks a lot to Dmitry Pekar for finding this!
@changelog_1011_li
Java methods with variable number of parameters can now be used (for Java 1.5 or newer).
@changelog_1012_li
The Japanese translation has been improved by Masahiro Ikemoto. Thanks a lot!
@changelog_1008_li
@changelog_1013_li
The H2 Console replaced an empty user name with a single space.
@changelog_1009_li
@changelog_1014_li
The build target 'build jarSmall' now includes the embedded database.
@changelog_1010_li
@changelog_1015_li
JdbcDataSource now keeps the password in a char array where possible.
@changelog_1011_li
@changelog_1016_li
ResultSet.absolute did not always work with large result sets.
@changelog_1012_li
@changelog_1017_li
Column aliases can now be used in GROUP BY and HAVING.
@changelog_1013_li
@changelog_1018_li
Jason Brittain has contributed MySQL date functions. Thanks a lot! They are not in the h2.jar file currently, but in src/tools/org/h2/mode/FunctionsMySQL.java. To install, add this class to the classpath and call FunctionsMySQL.register(conn) in the Java code.
@changelog_1014_h2
@changelog_1019_h2
Version 1.0.77 (2008-08-16)
@changelog_1015_li
@changelog_1020_li
JaQu is now using prepared statements and supports Date, Time, Timestamp.
@changelog_1016_li
@changelog_1021_li
When using remote in-memory databases, large LOB objects did not work.
@changelog_1017_li
@changelog_1022_li
Timestamp columns such as TIMESTAMP(6) were not compatible to other database.
@changelog_1018_li
@changelog_1023_li
Opening a large database was slow if there was a problem opening the previous time.
@changelog_1019_li
@changelog_1024_li
NOT IN(SELECT ...) was incorrect if the subquery returns no rows.
@changelog_1020_li
@changelog_1025_li
CREATE TABLE AS SELECT did not work correctly in the multi-version concurrency mode.
@changelog_1021_li
@changelog_1026_li
Support a comma before closing a list, as in: create table test(id int,)
@changelog_1022_li
@changelog_1027_li
MySQL compatibility: linked tables had lower case column names on some systems.
@changelog_1023_li
@changelog_1028_li
DB2 compatibility: the DB2 fetch-first-clause is supported.
@changelog_1024_li
@changelog_1029_li
Oracle compatibility: old style outer join syntax using (+) did work correctly sometimes.
@changelog_1025_li
@changelog_1030_li
ResultSet.setFetchSize is now supported.
@changelog_1026_li
@changelog_1031_li
It has been reported that when using Install4j on some Linux systems and enabling the 'pack200' option, the h2.jar becomes corrupted by the install process, causing application failure. A workaround is to add an empty file h2.jar.nopack next to the h2.jar file. The reason for this problem is not known.
@changelog_1027_h2
@changelog_1032_h2
Version 1.0.76 (2008-07-27)
@changelog_1028_li
@changelog_1033_li
The comment of a domain (user defined data type) is now used as the default column comment when creating a column with this domain.
@changelog_1029_li
@changelog_1034_li
Invalid database names are now detected and a better error message is thrown.
@changelog_1030_li
@changelog_1035_li
ResultSetMetaData.getColumnClassName now returns the correct class name for BLOB and CLOB.
@changelog_1031_li
@changelog_1036_li
Fixed the Oracle mode: Oracle allows multiple rows only where all columns of the unique index are NULL.
@changelog_1032_li
@changelog_1037_li
There is a problem with Hibernate when using Boolean columns. A patch for Hibernate has been submitted at http://opensource.atlassian.com/projects/hibernate/browse/HHH-3401
@changelog_1033_li
@changelog_1038_li
ORDER BY on tableName.columnName didn't work correctly if the column name was also used as an alias.
@changelog_1034_li
@changelog_1039_li
H2 Console: The progress display when opening a database has been improved.
@changelog_1035_li
@changelog_1040_li
The error message when the server doesn't start has been improved.
@changelog_1036_li
@changelog_1041_li
Key values can now be changed in updatable result sets.
@changelog_1037_li
@changelog_1042_li
Changes in updatable result sets are now visible even when resetting the result set.
@changelog_1038_li
@changelog_1043_li
Temporary files were sometimes deleted too late when executing large insert, update, or delete operations.
@changelog_1039_li
@changelog_1044_li
The database file was growing after deleting many rows, and after large update operations.
@changelog_1040_h2
@changelog_1045_h2
Version 1.0.75 (2008-07-14)
@changelog_1041_li
@changelog_1046_li
Multi version concurrency (MVCC): when a row was updated or deleted, but this change was rolled back, the row was not visible by other sessions if no index was used to access it. Fixed.
@changelog_1042_li
@changelog_1047_li
Views with multiple joined tables (where one was an outer join) couldn't be used in some cases. Fixed.
@changelog_1043_li
@changelog_1048_li
The CSVREAD method did not process NULL correctly when using a whitespace field separator.
@changelog_1044_li
@changelog_1049_li
Fixed the Oracle mode: Oracle allows multiple rows with NULL in a unique index.
@changelog_1045_li
@changelog_1050_li
Running out of memory could result in incomplete transactions or corrupted databases. Fixed.
@changelog_1046_li
@changelog_1051_li
When using order by in a query that uses the same table multiple times, the order could be incorrect. Fixed.
@changelog_1047_li
@changelog_1052_li
Referential constraint checking improvement: now the constraint is only checked if the key column values change.
@changelog_1048_li
@changelog_1053_li
Some database metadata calls returned the wrong data type for DATA_TYPE columns.
@changelog_1049_li
@changelog_1054_li
The Lucene fulltext index was empty when opening a database with fulltext index enabled, and re-indexing it didn't work. Fixed.
@changelog_1050_li
@changelog_1055_li
The character '$' could not be used in identifier names (table name, column names and so on). Fixed.
@changelog_1051_li
@changelog_1056_li
The new method org.h2.tools.Server.startWebServer(conn) starts the H2 Console to inspect a database while debugging.
@changelog_1052_li
@changelog_1057_li
Stopping a WebServer didn't always work. Fixed.
@changelog_1053_h2
@changelog_1058_h2
Version 1.0.74 (2008-06-21)
@changelog_1054_li
@changelog_1059_li
Work on row level locking has been started (but there is nothing usable yet).
@changelog_1055_li
@changelog_1060_li
JaQu (Java Query), a tool similar to LINQ (Language Integrated Query; from Microsoft) is now included under src/tools/org/h2/jaqu. A small sample application is included under src/test/org/h2/test/jaqu.
@changelog_1056_li
@changelog_1061_li
The source code is now switched to Java 1.6 by default. To switch back to Java 1.4, run 'build compile'. The h2.jar file is still Java 1.4.
@changelog_1057_li
@changelog_1062_li
The ChangePassword tool is now called ChangeFileEncryption.
@changelog_1058_li
@changelog_1063_li
It is no longer allowed to create columns with the data type NULL. Also, it is no longer allowed to convert a column to the data type NULL. This was possible before but caused data loss.
@changelog_1059_li
@changelog_1064_li
When using computed columns or default values with a different data type than the column data type, a class cast exception could occur. Fixed.
@changelog_1060_li
@changelog_1065_li
Opening databases larger than 1 GB was sometimes very slow if a lot of data was deleted previously. Fixed.
@changelog_1061_li
@changelog_1066_li
RUNSCRIPT could throw a NullPointerException if the script name was an expression.
@changelog_1062_li
@changelog_1067_li
Improved compatibility. New compatibility modes for Oracle and Derby. New compatibility flag uniqueIndexNullDistinct to only allow one row with 'NULL' in a unique index. This flag is enabled for Derby, Oracle, MSSQLServer, and HSQLDB.
@changelog_1063_li
@changelog_1068_li
Linked tables: To view the statements that are executed against the target table, set the trace level to 3.
@changelog_1064_li
@changelog_1069_li
RunScript tool: new options to show and check the results of queries.
@changelog_1065_li
@changelog_1070_li
Deadlocks are now detected. One transaction is rolled back automatically.
@changelog_1066_li
@changelog_1071_li
The Lucene fulltext index was always re-created when opening a database with fulltext index enabled.
@changelog_1067_li
@changelog_1072_li
Support for overloaded Java methods. A user defined function can now be bound to multiple Java methods, if the Java methods have the same name but a different number of parameters. Thanks to Gary Tong for providing a patch!
@changelog_1068_h2
@changelog_1073_h2
Version 1.0.73 (2008-05-31)
@changelog_1069_li
@changelog_1074_li
ParameterMetaData now returns the right data type for most conditions, as in WHERE ID=?.
@changelog_1070_li
@changelog_1075_li
The table SYSTEM_RANGE now supports expressions and parameters.
@changelog_1071_li
@changelog_1076_li
New column INFORMATION_SCHEMA.CONSTRAINTS.UNIQUE_INDEX_NAME that contains the name of the unique index used to enforce this constraint, if there is such an index.
@changelog_1072_li
@changelog_1077_li
SET QUERY_TIMEOUT and Statement.setQueryTimeout no longer commits a transaction. The same applies to SET @VARIABLE, SET LOCK_TIMEOUT, SET TRACE_LEVEL_*, SET THROTTLE, and SET PATH.
@changelog_1073_li
@changelog_1078_li
The SCRIPT command does now emit IF NOT EXISTS for CREATE ROLE.
@changelog_1074_li
@changelog_1079_li
MySQL compatibility: auto_increment column are no longer automatically converted to primary key columns.
@changelog_1075_li
@changelog_1080_li
PostgreSQL compatibility: support for BOOL_OR and BOOL_AND aggregate functions.
@changelog_1076_li
@changelog_1081_li
Negative scale values for DECIMAL or NUMBER columns are now supported in regular tables and in linked tables.
@changelog_1077_li
@changelog_1082_li
A role or right can now be granted or revoked multiple times without getting an exception.
@changelog_1078_li
@changelog_1083_li
Infinite numbers in SQL scripts are listed as POWER(0, -1)), negative infinite as (-POWER(0, -1)), and NaN (not a number) as SQRT(-1).
@changelog_1079_li
@changelog_1084_li
The special double and float values 'NaN' (not a number) did not work correctly when sorting or comparing.
@changelog_1080_li
@changelog_1085_li
The fulltext search did not support CLOB data types.
@changelog_1081_li
@changelog_1086_li
If the drive with the database files was disconnected or unmounted while writing, sometimes a stack overflow exception was thrown instead of a IO exception.
@changelog_1082_li
@changelog_1087_li
The H2 Console could not be shut down from within the tool if the browser supports keepAlive (most browsers do).
@changelog_1083_li
@changelog_1088_li
If the password was passed as a char array, it was kept in an internal buffer longer than required. Theoretically the password could have been stolen if the main memory was swapped to disk before the garbage collection was run.
@changelog_1084_h2
@changelog_1089_h2
Version 1.0.72 (2008-05-10)
@changelog_1085_li
@changelog_1090_li
Some databases could not be opened when appending ;RECOVER=1 to the database URL.
@changelog_1086_li
@changelog_1091_li
The Japanese translation of the error messages and the H2 Console has been completed by Masahiro Ikemoto (Arizona Design Inc.)
@changelog_1087_li
@changelog_1092_li
Updates made to updatable rows are now visible within the same result set. DatabaseMetaData.ownUpdatesAreVisible now returns true.
@changelog_1088_li
@changelog_1093_li
ParameterMetaData now returns the correct data for INSERT and UPDATE statements.
@changelog_1089_li
@changelog_1094_li
H2 Shell: DESCRIBE now supports an schema name.
@changelog_1090_li
@changelog_1095_li
A subset of the PostgreSQL 'dollar quoting' feature is now supported.
@changelog_1091_li
@changelog_1096_li
SLF4J is now supported by using adding TRACE_LEVEL_FILE=4 to the database URL.
@changelog_1092_li
@changelog_1097_li
The recovery tool did not work if the table name contained spaces or if there was a comment on the table.
@changelog_1093_li
@changelog_1098_li
Triggers are no longer executed when changing the table structure (ALTER TABLE).
@changelog_1094_li
@changelog_1099_li
When setting BLOB or CLOB values larger than 65 KB using a remote connection, temporary files were kept on the client longer than required (until the connection was closed or the object is garbage collected). Now they are removed as soon as the PreparedStatement is closed, or when the value is overwritten.
@changelog_1095_li
@changelog_1100_li
Statements can now be cancelled remotely (when using remote connections).
@changelog_1096_li
@changelog_1101_li
The Shell tool now uses java.io.Console to read the password when using JDK 1.6
@changelog_1097_li
@changelog_1102_li
When using read-only databases and setting LOG=2, an exception was written to the trace file when closing the database. Fixed.
@changelog_1098_h2
@changelog_1103_h2
Version 1.0.71 (2008-04-25)
@changelog_1099_li
@changelog_1104_li
H2 is now dual-licensed under the Eclipse Public License (EPL) and the old 'H2 License' (which is basically MPL).
@changelog_1100_li
@changelog_1105_li
Sometimes an exception 'File ID mismatch' or 'try to add a record twice' occurred after large records (8 KB or larger) are updated or deleted. See also http://code.google.com/p/h2database/issues/detail?id=22
@changelog_1101_li
@changelog_1106_li
H2 Console: The tools can now be translated (it didn't work in the last release).
@changelog_1102_li
@changelog_1107_li
New traditional Chinese translation. Thanks a lot to Derek Chao!
@changelog_1103_li
@changelog_1108_li
Indexes were not used when enabling the optimization for IN(SELECT...) (system property h2.optimizeInJoin).
@changelog_1104_h2
@changelog_1109_h2
Version 1.0.70 (2008-04-20)
@changelog_1105_li
@changelog_1110_li
The plan is to dual-license H2. The additional license is EPL (Eclipse Public License). The current license (MPL, Mozilla Public License) will stay. Current users are not affected because they can keep MPL. EPL is very similar to MPL, the only bigger difference is related to patents (EPL is a bit more business friendly in this regard). See also http://opensource.org/licenses/eclipse-1.0.php, http://www.eclipse.org/legal/eplfaq.php (FAQ), http://blogs.zdnet.com/Burnette/?p=131
@changelog_1106_li
@changelog_1111_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_1107_li
@changelog_1112_li
Calling SHUTDOWN on one connection and starting a query on another connection concurrently could result in a Java level deadlock.
@changelog_1108_li
@changelog_1113_li
New system property h2.enableAnonymousSSL (default: true) to enable anonymous SSL connections.
@changelog_1109_li
@changelog_1114_li
The precision if SUBSTR is now calculated if possible.
@changelog_1110_li
@changelog_1115_li
The autocomplete in the H2 Console has been improved a bit.
@changelog_1111_li
@changelog_1116_li
The tools in the H2 Console are now translatable.
@changelog_1112_li
@changelog_1117_li
The servlet and lucene jar files are now automatically downloaded when building.
@changelog_1113_li
@changelog_1118_li
The code switch tool has been replaced by a simpler tool called SwitchSource that just uses find and replace.
@changelog_1114_li
@changelog_1119_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_1115_li
@changelog_1120_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_1116_li
@changelog_1121_li
Added shell scripts run.sh and build.sh. chmod +x is required, but otherwise it should work. Feedback or improvements are welcome!
@changelog_1117_li
@changelog_1122_li
Databases in zip files: large queries are now supported. Temp files are created in the temp directory if required. The documentation how to create the zip file has been corrected.
@changelog_1118_li
@changelog_1123_li
Invalid inline views threw confusing SQL exceptions.
@changelog_1119_li
@changelog_1124_li
The Japanese translation of the error messages and the H2 Console has been improved. Thanks a lot to Masahiro IKEMOTO.
@changelog_1120_li
@changelog_1125_li
Optimization for MIN() and MAX() when using MVCC.
@changelog_1121_li
@changelog_1126_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_1122_li
@changelog_1127_li
After setting the query timeout and then resetting it, the next query would still timeout. Fixed.
@changelog_1123_li
@changelog_1128_li
Adding a IDENTITY column to a table with data threw a lock timeout.
@changelog_1124_li
@changelog_1129_li
OutOfMemoryError could occur when using EXISTS or IN(SELECT ..).
@changelog_1125_li
@changelog_1130_li
The built-in connection pool is not called JdbcConnectionPool. The API and documentation has been changed.
@changelog_1126_li
@changelog_1131_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_1127_li
@changelog_1132_li
Nested joins are now supported (A JOIN B JOIN C ON .. ON ..)
@changelog_1128_h2
@changelog_1133_h2
Version 1.0.69 (2008-03-29)
@changelog_1129_li
@changelog_1134_li
Most command line tools can now be called from within the H2 Console.
@changelog_1130_li
@changelog_1135_li
A new Shell tools is now included (org.h2.tools.Shell) to query a database from the command line.
@changelog_1131_li
@changelog_1136_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_1132_li
@changelog_1137_li
New system property h2.sortNullsHigh to invert the default sorting behavior for NULL. The default didn't change.
@changelog_1133_li
@changelog_1138_li
Performance was very slow when using LOG=2 and deleting or updating all rows of a table in a loop. Fixed.
@changelog_1134_li
@changelog_1139_li
ALTER TABLE or CREATE TABLE now support parameters for the password field.
@changelog_1135_li
@changelog_1140_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_1136_li
@changelog_1141_li
TRACE_LEVEL_ settings are no longer persistent. This was a problem when database initialization code caused a lot of trace output.
@changelog_1137_li
@changelog_1142_li
Fulltext search (native implementation): The words table is no longer an in-memory table because this caused memory problems in some cases.
@changelog_1138_li
@changelog_1143_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_1139_li
@changelog_1144_li
The recovery tool didn't work correctly for tables without rows.
@changelog_1140_li
@changelog_1145_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_1141_li
@changelog_1146_li
CSVWRITE caused a NullPointerException when not specifying a nullString.
@changelog_1142_li
@changelog_1147_li
When a log file switch occurred just after a truncate table or drop table statement, the database could not be started normally (RECOVER=1 was required). Fixed.
@changelog_1143_li
@changelog_1148_li
When a log file switch occurred in the middle of a sequence flush (sequences are only flushed every 32 values by default), the sequence value was lost. Fixed.
@changelog_1144_li
@changelog_1149_li
Altering a sequence didn't unlock the system table when autocommit switched off.
@changelog_1145_h2
@changelog_1150_h2
Version 1.0.68 (2008-03-18)
@changelog_1146_li
@changelog_1151_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_1147_li
@changelog_1152_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_1148_li
@changelog_1153_li
Unused LOB files were deleted much too late. Now they are deleted if no longer referenced in memory.
@changelog_1149_li
@changelog_1154_li
ALTER SEQUENCE and ALTER TABLE ALTER COLUMN RESTART can now be used inside a transaction.
@changelog_1150_li
@changelog_1155_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_1151_li
@changelog_1156_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_1152_li
@changelog_1157_li
Improved performance when using lob files in directories (however this is still disabled by default)
@changelog_1153_li
@changelog_1158_li
H2 Console: autocomplete didn't work with very large scripts. Fixed.
@changelog_1154_li
@changelog_1159_li
Fulltext search: new method SEARCH_DATA that returns the column names and primary keys as arrays.
@changelog_1155_li
@changelog_1160_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_1156_li
@changelog_1161_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_1157_li
@changelog_1162_li
H2 Console: remote connections were very slow because getHostName/getRemoteHost was used. Fixed (now using getHostAddress/getRemoteAddr.
@changelog_1158_li
@changelog_1163_li
H2 Console: on Linux, Firefox, Konqueror, or Opera (in this order) are now started if available. This has been tested on Ubuntu.
@changelog_1159_li
@changelog_1164_li
H2 Console: the start window works better with IKVM
@changelog_1160_li
@changelog_1165_li
H2 Console: improved compatibility with Safari (Safari requires keep-alive)
@changelog_1161_li
@changelog_1166_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_1162_li
@changelog_1167_li
SELECT UNION with a different number of ORDER BY columns did throw an ArrayIndexOutOfBoundsException.
@changelog_1163_li
@changelog_1168_li
When using a view, the column precision was changed to the default scale for some data types.
@changelog_1164_li
@changelog_1169_li
CSVWRITE now supports a 'null string' that is used for parsing and writing NULL.
@changelog_1165_li
@changelog_1170_li
Some long running queries could not be cancelled.
@changelog_1166_li
@changelog_1171_li
Queries with many outer join tables were very slow. Fixed.
@changelog_1167_li
@changelog_1172_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_1168_li
@changelog_1173_li
UPDATE SET column=DEFAULT is now supported.
@changelog_1169_h2
@changelog_1174_h2
Version 1.0.67 (2008-02-22)
@changelog_1170_li
@changelog_1175_li
New function FILE_READ to read a file or from an URL. Both binary and text data is supported.
@changelog_1171_li
@changelog_1176_li
CREATE TABLE AS SELECT now supports specifying the column list and data types.
@changelog_1172_li
@changelog_1177_li
Connecting to a TCP server and at shutting it down at the same time could cause a Java level deadlock.
@changelog_1173_li
@changelog_1178_li
A user now has all rights on his own local temporary tables.
@changelog_1174_li
@changelog_1179_li
The CSV tool now supports a custom lineSeparator.
@changelog_1175_li
@changelog_1180_li
When using multiple connections, empty space was reused too early sometimes. This could corrupt the database when recovering.
@changelog_1176_li
@changelog_1181_li
The H2 Console has been translated to Dutch. Thanks a lot to Remco Schoen!
@changelog_1177_li
@changelog_1182_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_1178_li
@changelog_1183_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_1179_li
@changelog_1184_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_1180_li
@changelog_1185_li
The value cache is now a soft reference cache. This should help save memory.
@changelog_1181_li
@changelog_1186_li
CREATE INDEX on a table with many rows could run out of memory. Fixed.
@changelog_1182_li
@changelog_1187_li
Large result sets are now a bit faster.
@changelog_1183_li
@changelog_1188_li
ALTER TABLE ALTER COLUMN RESTART and ALTER SEQUENCE now support parameters (any expressions).
@changelog_1184_li
@changelog_1189_li
When setting the base directory on the command line, the user directory prefix ('~') was ignored.
@changelog_1185_li
@changelog_1190_li
The DbStarter servlet didn't start the TCP listener even if configured.
@changelog_1186_li
@changelog_1191_li
Statement.setQueryTimeout() is now supported.
@changelog_1187_li
@changelog_1192_li
New session setting QUERY_TIMEOUT, and new system property h2.maxQueryTimeout.
@changelog_1188_li
@changelog_1193_li
Changing the transaction log level (SET LOG) is now written to the trace file by default.
@changelog_1189_li
@changelog_1194_li
In a SQL script, primary key constraints are now ordered before foreign key constraints.
@changelog_1190_li
@changelog_1195_li
It was not possible to create a referential constraint to a table in a different schema in some situations.
@changelog_1191_li
@changelog_1196_li
The H2 Console was slow when the database contains many tables. Now the column names are not shown in this case.
@changelog_1192_h2
@changelog_1197_h2
Version 1.0.66 (2008-02-02)
@changelog_1193_li
@changelog_1198_li
There is a new online error analyzer tool.
@changelog_1194_li
@changelog_1199_li
H2 Console: stack traces are now links to the source code in the source repository (H2 database only).
@changelog_1195_li
@changelog_1200_li
CHAR data type equals comparison was case insensitive instead of case sensitive.
@changelog_1196_li
@changelog_1201_li
The exception 'Value too long for column' now includes the data.
@changelog_1197_li
@changelog_1202_li
The table name was missing in the documentation of CREATE INDEX.
@changelog_1198_li
@changelog_1203_li
Better support for IKVM (www.ikvm.net): the H2 Console now opens a browser window.
@changelog_1199_li
@changelog_1204_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_1200_li
@changelog_1205_li
The exception "Hexadecimal string contains non-hex character" was not always thrown when it should have been. Fixed.
@changelog_1201_li
@changelog_1206_li
The H2 Console now provides a link to the documentation when an error occurs (H2 databases only so far).
@changelog_1202_li
@changelog_1207_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_1203_li
@changelog_1208_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_1204_li
@changelog_1209_li
For compatibility with other databases the column default (COLUMN_DEF) for columns without default is now null (it was an empty string).
@changelog_1205_li
@changelog_1210_li
Statements that contain very large subqueries (where the subquery result does not fit in memory) are now faster.
@changelog_1206_li
@changelog_1211_li
Variables: large objects (CLOB and BLOB) that don't fit in memory did not work correctly when used as variables.
@changelog_1207_li
@changelog_1212_li
Fulltext search is now supported in named in-memory databases.
@changelog_1208_li
@changelog_1213_li
H2 Console: multiple consecutive spaces in the setting name did not work. Fixed.
@changelog_1209_h2
@changelog_1214_h2
Version 1.0.65 (2008-01-18)
@changelog_1210_li
@changelog_1215_li
The build (ant) now automatically switches the source code to the correct version (JDK 1.4/1.5 or 1.6).
@changelog_1211_li
@changelog_1216_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_1212_li
@changelog_1217_li
The performance for DROP and DROP ALL OBJECTS has been improved.
@changelog_1213_li
@changelog_1218_li
The ChangePassword API has been improved.
@changelog_1214_li
@changelog_1219_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_1215_li
@changelog_1220_li
The Ukrainian translation has been improved.
@changelog_1216_li
@changelog_1221_li
CALL statements can now be used in batch updates and called using Statement.executeUpdate.
@changelog_1217_li
@changelog_1222_li
New read-only setting CREATE_BUILD (the build number of the database engine that created the database).
@changelog_1218_li
@changelog_1223_li
The optimizer did not use multi column indexes for range queries in some cases. Fixed.
@changelog_1219_li
@changelog_1224_li
The H2 Console now calls DataSource.getConnection() instead of DataSource.getConnection(user, password) when user name and password are not specified.
@changelog_1220_li
@changelog_1225_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_1221_li
@changelog_1226_li
Batch update: Calling BatchUpdateException.printStackTrace() could result in out of memory. Fixed.
@changelog_1222_li
@changelog_1227_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_1223_li
@changelog_1228_li
The performance for large result sets in the server mode has been improved.
@changelog_1224_li
@changelog_1229_li
The setting h2.serverSmallResultSetSize has been renamed to h2.serverResultSetFetchSize.
@changelog_1225_li
@changelog_1230_li
The SCRIPT command now uses multi-row insert statements to save space except if the option SIMPLE is used.
@changelog_1226_li
@changelog_1231_li
The SCRIPT command did not split up CLOB data correctly. Fixed.
@changelog_1227_li
@changelog_1232_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_1228_li
@changelog_1233_li
DROP ALL OBJECTS did not drop user defined aggregate functions and domains.
@changelog_1229_li
@changelog_1234_li
PostgreSQL compatibility: COUNT(T.*) is now supported.
@changelog_1230_li
@changelog_1235_li
LIKE comparisons are now faster.
@changelog_1231_li
@changelog_1236_li
Encrypted databases are now faster.
@changelog_1232_h2
@changelog_1237_h2
Version 1.0.64 (2007-12-27)
@changelog_1233_li
@changelog_1238_li
3-way union queries with prepared statement or views could return the wrong results. Fixed.
@changelog_1234_li
@changelog_1239_li
The PostgreSQL ODBC driver did not work in the last release due to a parser regression. Fixed.
@changelog_1235_li
@changelog_1240_li
CSV tool: some escape/separator character combinations did not work. Fixed.
@changelog_1236_li
@changelog_1241_li
CSV tool: the character # could not be used as a separator when reading.
@changelog_1237_li
@changelog_1242_li
Recovery: when the index file is corrupt, now the database deletes it and re-creates it automatically.
@changelog_1238_li
@changelog_1243_li
The MVCC mode did not work well with in-memory databases. Fixed.
@changelog_1239_li
@changelog_1244_li
The FTP server now supports a event listener. Thanks Fulvio Biondi for the help!
@changelog_1240_li
@changelog_1245_li
New system function CANCEL_SESSION to cancel the currently executing statement of another session.
@changelog_1241_li
@changelog_1246_li
The database now supports an exclusive mode. In exclusive mode, new connections are rejected.
@changelog_1242_li
@changelog_1247_li
H2 Console: when editing result sets, columns can now be set to null. The text 'null' must be escaped using '=null'.
@changelog_1243_li
@changelog_1248_li
New built-in functions RPAD and LPAD.
@changelog_1244_li
@changelog_1249_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_1245_li
@changelog_1250_li
The Ukrainian translation was not working in the last release. Fixed.
@changelog_1246_li
@changelog_1251_li
Creating many tables (many hundreds) was slow. Fixed.
@changelog_1247_li
@changelog_1252_li
Opening a database with many indexes (thousands) was slow. Fixed.
@changelog_1248_li
@changelog_1253_li
H2 Console / autocomplete: Ctrl+Space now shows the list in all modes.
@changelog_1249_li
@changelog_1254_li
The method Trigger.init has been changed: the parameters 'before' and 'type', have been added to the init method.
@changelog_1250_li
@changelog_1255_li
The performance has been improved for ResultSet methods with column name.
@changelog_1251_li
@changelog_1256_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_1252_li
@changelog_1257_li
The H2 Console has been translated to Turkish. Thanks a lot to Ridvan Agar!
@changelog_1253_li
@changelog_1258_li
Improved debugging support: toString methods of most object now return a meaningful text.
@changelog_1254_li
@changelog_1259_li
The classes DbStarter and WebServlet have been moved to src/main.
@changelog_1255_li
@changelog_1260_li
The column INFORMATION_SCHEMA.TRIGGERS.SQL now contains the CREATE TRIGGER statement.
@changelog_1256_li
@changelog_1261_li
Loading classes and calling methods can be restricted using the new system property h2.allowedClasses.
@changelog_1257_li
@changelog_1262_li
The database could not be used in Java applets due to security exceptions. Fixed.
@changelog_1258_h2
@changelog_1263_h2
Version 1.0.63 (2007-12-02)
@changelog_1259_li
@changelog_1264_li
The SecurePassword example has been improved.
@changelog_1260_li
@changelog_1265_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_1261_li
@changelog_1266_li
The native fulltext search was not working properly after re-connecting.
@changelog_1262_li
@changelog_1267_li
Improved FTP server: now the PORT command is supported.
@changelog_1263_li
@changelog_1268_li
Temporary views (FROM(...)) with UNION didn't work if nested. Fixed.
@changelog_1264_li
@changelog_1269_li
Performance optimization for IN(...) and IN(SELECT...), currently disabled by default. To enable, use java -Dh2.optimizeInJoin=true
@changelog_1265_li
@changelog_1270_li
The H2 Console has been translated to Ukrainian by Igor Dobrovolskyi. Thanks a lot!
@changelog_1266_li
@changelog_1271_li
New function TABLE_DISTINCT.
@changelog_1267_li
@changelog_1272_li
Using LIMIT with values close to Integer.MAX_VALUE didn't work correctly.
@changelog_1268_li
@changelog_1273_li
Certain setting in the Server didn't work (http://code.google.com/p/h2database/issues/detail?id=7).
@changelog_1269_h2
@changelog_1274_h2
Version 1.0.62 (2007-11-25)
@changelog_1270_li
@changelog_1275_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_1271_li
@changelog_1276_li
MVCC: now an exception is thrown when an application tries to change the MVCC setting while the database is already open.
@changelog_1272_li
@changelog_1277_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_1273_li
@changelog_1278_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_1274_li
@changelog_1279_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_1275_li
@changelog_1280_li
Duplicate column names were not detected when renaming columns. Fixed.
@changelog_1276_li
@changelog_1281_li
The console did not display multiple embedded spaces in text correctly. Fixed.
@changelog_1277_li
@changelog_1282_li
Google Android support: use 'ant codeswitchAndroid' to switch the source code to Android.
@changelog_1278_li
@changelog_1283_li
Values of type ARRAY are now sorted as in PostgreSQL.
@changelog_1279_li
@changelog_1284_li
In the cluster mode, could not connect if only one server was running (last release only). Fixed.
@changelog_1280_li
@changelog_1285_li
The performance of large CSV operations has been improved.
@changelog_1281_li
@changelog_1286_li
Now using custom toString() for most JDBC objects and commands.
@changelog_1282_li
@changelog_1287_li
Nested temporary views (SELECT * FROM (SELECT ...)) with parameters didn't work in some cases. Fixed.
@changelog_1283_li
@changelog_1288_li
CSV: Using an empty field delimiter didn't work (a workaround was using char(0)). Fixed.
@changelog_1284_li
@changelog_1289_li
A patch for Apache DDL Utils is available at https://issues.apache.org/jira/browse/DDLUTILS-185
@changelog_1285_li
@changelog_1290_li
The default value for h2.emergencySpaceInitial is now 256 KB (to speed up creating encrypted databases)
@changelog_1286_li
@changelog_1291_li
Eduardo Velasques has translated the H2 Console and the error messages to Brazilian Portuguese. Thanks a lot!
@changelog_1287_li
@changelog_1292_li
Creating a table from GROUP_CONCAT didn't work if the data was longer than 255 characters
@download_1000_h1
......@@ -4919,130 +4934,130 @@ AppFuse
Helps building web applications.
@links_1035_a
Blojsom
BGBlitz
@links_1036_p
Java-based multi-blog, multi-user software package (Mac OS X Weblog Server).
The Swiss army knife of Backgammon.
@links_1037_a
Bookmarks Portlet
Blojsom
@links_1038_p
JSR 168 compliant bookmarks management portlet application.
Java-based multi-blog, multi-user software package (Mac OS X Weblog Server).
@links_1039_a
Claros inTouch
Bookmarks Portlet
@links_1040_p
Ajax communication suite with mail, addresses, notes, IM, and rss reader.
JSR 168 compliant bookmarks management portlet application.
@links_1041_a
CrashPlan PRO Server
Claros inTouch
@links_1042_p
Easy and cross platform backup solution for business and service providers.
Ajax communication suite with mail, addresses, notes, IM, and rss reader.
@links_1043_a
DB Solo
CrashPlan PRO Server
@links_1044_p
SQL query tool.
Easy and cross platform backup solution for business and service providers.
@links_1045_a
DbVisualizer
DB Solo
@links_1046_p
Database tool.
SQL query tool.
@links_1047_a
Epictetus
DbVisualizer
@links_1048_p
Free cross platform database tool.
Database tool.
@links_1049_a
Execute Query
Epictetus
@links_1050_p
Database utility written in Java.
Free cross platform database tool.
@links_1051_a
Fabric3
Execute Query
@links_1052_p
Fabric3 is a project implementing a federated service network based on the Service Component Architecture specification (http://www.osoa.org).
Database utility written in Java.
@links_1053_a
Flux
Fabric3
@links_1054_p
Java job scheduler, file transfer, workflow, and BPM.
Fabric3 is a project implementing a federated service network based on the Service Component Architecture specification (http://www.osoa.org).
@links_1055_a
Golden T Studios
Flux
@links_1056_p
Fun-to-play games with a simple interface.
Java job scheduler, file transfer, workflow, and BPM.
@links_1057_a
Group Session
Golden T Studios
@links_1058_p
Open source web groupware.
Fun-to-play games with a simple interface.
@links_1059_a
HA-JDBC
Group Session
@links_1060_p
High-Availability JDBC: A JDBC proxy that provides light-weight, transparent, fault tolerant clustering capability to any underlying JDBC driver.
Open source web groupware.
@links_1061_a
Harbor
HA-JDBC
@links_1062_p
Pojo Application Server.
High-Availability JDBC: A JDBC proxy that provides light-weight, transparent, fault tolerant clustering capability to any underlying JDBC driver.
@links_1063_a
HenPlus
Harbor
@links_1064_p
HenPlus is a SQL shell written in Java.
Pojo Application Server.
@links_1065_a
Hibernate
HenPlus
@links_1066_p
Relational persistence for idiomatic Java (O-R mapping tool).
HenPlus is a SQL shell written in Java.
@links_1067_a
Hibicius
Hibernate
@links_1068_p
Online Banking Client for the HBCI protocol.
Relational persistence for idiomatic Java (O-R mapping tool).
@links_1069_a
H2 Spatial
Hibicius
@links_1070_p
A project to add spatial functions to H2 database.
Online Banking Client for the HBCI protocol.
@links_1071_a
JAMWiki
H2 Spatial
@links_1072_p
Java-based Wiki engine.
A project to add spatial functions to H2 database.
@links_1073_a
Jala
JAMWiki
@links_1074_p
Open source collection of JavaScript modules.
Java-based Wiki engine.
@links_1075_a
JavaPlayer
Jala
@links_1076_p
Pure Java MP3 player.
Open source collection of JavaScript modules.
@links_1077_a
JavaPlayer
......@@ -5051,273 +5066,279 @@ JavaPlayer
Pure Java MP3 player.
@links_1079_a
Java Simon
JavaPlayer
@links_1080_p
Simple Monitoring API.
Pure Java MP3 player.
@links_1081_a
JGeocoder
Java Simon
@links_1082_p
Free Java geocoder. Geocoding is the process of estimating a latitude and longitude for a given location.
Simple Monitoring API.
@links_1083_a
Jena
JGeocoder
@links_1084_p
Java framework for building Semantic Web applications.
Free Java geocoder. Geocoding is the process of estimating a latitude and longitude for a given location.
@links_1085_a
JMatter
Jena
@links_1086_p
Framework for constructing workgroup business applications based on the Naked Objects Architectural Pattern.
Java framework for building Semantic Web applications.
@links_1087_a
JPOX
JMatter
@links_1088_p
Java persistent objects.
Framework for constructing workgroup business applications based on the Naked Objects Architectural Pattern.
@links_1089_a
Liftweb
JPOX
@links_1090_p
A Scala-based, secure, developer friendly web framework.
Java persistent objects.
@links_1091_a
LiquiBase
Liftweb
@links_1092_p
A tool to manage database changes and refactorings.
A Scala-based, secure, developer friendly web framework.
@links_1093_a
Luntbuild
LiquiBase
@links_1094_p
Build automation and management tool.
A tool to manage database changes and refactorings.
@links_1095_a
Magnolia
Luntbuild
@links_1096_p
Microarray Data Management and Export System for PFGRC (Pathogen Functional Genomics Resource Center) Microarrays.
Build automation and management tool.
@links_1097_a
MiniConnectionPoolManager
Magnolia
@links_1098_p
A lightweight standalone JDBC connection pool manager.
Microarray Data Management and Export System for PFGRC (Pathogen Functional Genomics Resource Center) Microarrays.
@links_1099_a
Mr. Persister
MiniConnectionPoolManager
@links_1100_p
Simple, small and fast object relational mapping.
A lightweight standalone JDBC connection pool manager.
@links_1101_a
Myna Application Server
Mr. Persister
@links_1102_p
Java web app that provides dynamic web content and Java libraries access from JavaScript.
Simple, small and fast object relational mapping.
@links_1103_a
MyTunesRss
Myna Application Server
@links_1104_p
MyTunesRSS lets you listen to your music wherever you are.
Java web app that provides dynamic web content and Java libraries access from JavaScript.
@links_1105_a
NCGC CurveFit
MyTunesRss
@links_1106_p
From: NIH Chemical Genomics Center, National Institutes of Health, USA. An open source application in the life sciences research field. This application handles chemical structures and biological responses of thousands of compounds with the potential to handle million+ compounds. It utilizes an embedded H2 database to enable flexible query/retrieval of all data including advanced chemical substructure and similarity searching. The application highlights an automated curve fitting and classification algorithm that outperforms commercial packages in the field. Commercial alternatives are typically small desktop software that handle a few dose response curves at a time. A couple of commercial packages that do handle several thousand curves are very expensive tools (&gt;60k USD) that require manual curation of analysis by the user; require a license to Oracle; lack advanced query/retrieval; and the ability to handle chemical structures.
MyTunesRSS lets you listen to your music wherever you are.
@links_1107_a
Ontology Works
NCGC CurveFit
@links_1108_p
This company provides semantic technologies including deductive information repositories (the Ontology Works Knowledge Servers), semantic information fusion and semantic federation of legacy databases, ontology-based domain modeling, and management of the distributed enterprise.
From: NIH Chemical Genomics Center, National Institutes of Health, USA. An open source application in the life sciences research field. This application handles chemical structures and biological responses of thousands of compounds with the potential to handle million+ compounds. It utilizes an embedded H2 database to enable flexible query/retrieval of all data including advanced chemical substructure and similarity searching. The application highlights an automated curve fitting and classification algorithm that outperforms commercial packages in the field. Commercial alternatives are typically small desktop software that handle a few dose response curves at a time. A couple of commercial packages that do handle several thousand curves are very expensive tools (&gt;60k USD) that require manual curation of analysis by the user; require a license to Oracle; lack advanced query/retrieval; and the ability to handle chemical structures.
@links_1109_a
Ontoprise OntoBroker
Ontology Works
@links_1110_p
SemanticWeb-Middleware. It supports all W3C Semantic Web recommendations: OWL, RDF, RDFS, SPARQL, and F-Logic.
This company provides semantic technologies including deductive information repositories (the Ontology Works Knowledge Servers), semantic information fusion and semantic federation of legacy databases, ontology-based domain modeling, and management of the distributed enterprise.
@links_1111_a
Orion
Ontoprise OntoBroker
@links_1112_p
J2EE Application Server.
SemanticWeb-Middleware. It supports all W3C Semantic Web recommendations: OWL, RDF, RDFS, SPARQL, and F-Logic.
@links_1113_a
P5H2
Orion
@links_1114_p
A library for the <a href="http://www.processing.org">Processing</a> programming language and environment.
J2EE Application Server.
@links_1115_a
Phase-6
P5H2
@links_1116_p
A computer based learning software.
A library for the <a href="http://www.processing.org">Processing</a> programming language and environment.
@links_1117_a
Pickle
Phase-6
@links_1118_p
Pickle is a Java library containing classes for persistence, concurrency, and logging.
A computer based learning software.
@links_1119_a
Piman
Pickle
@links_1120_p
Water treatment projects data management.
Pickle is a Java library containing classes for persistence, concurrency, and logging.
@links_1121_a
PolePosition
Piman
@links_1122_p
Open source database benchmark.
Water treatment projects data management.
@links_1123_a
Poormans
PolePosition
@links_1124_p
Very basic CMS running as a SWT application and generating static html pages.
Open source database benchmark.
@links_1125_a
Poormans
@links_1126_p
Very basic CMS running as a SWT application and generating static html pages.
@links_1127_a
Railo
@links_1126_p
@links_1128_p
Railo is an alternative engine for the Cold Fusion Markup Language, that compiles code programmed in CFML into Java bytecode and executes it on a servlet engine.
@links_1127_a
@links_1129_a
Razuna
@links_1128_p
@links_1130_p
Open source Digital Asset Management System with integrated Web Content Management.
@links_1129_a
@links_1131_a
Rutema
@links_1130_p
@links_1132_p
Rutema is a test execution and management tool for heterogeneous development environments written in Ruby.
@links_1131_a
@links_1133_a
Sava
@links_1132_p
@links_1134_p
Open-source web-based content management system.
@links_1133_a
@links_1135_a
Scriptella
@links_1134_p
@links_1136_p
ETL (Extract-Transform-Load) and script execution tool.
@links_1135_a
@links_1137_a
Sesar
@links_1136_p
@links_1138_p
Dependency Injection Container with Aspect Oriented Programming.
@links_1137_a
@links_1139_a
SemmleCode
@links_1138_p
@links_1140_p
Eclipse plugin to help you improve software quality.
@links_1139_a
@links_1141_a
Shellbook
@links_1140_p
@links_1142_p
Desktop publishing application.
@links_1141_a
@links_1143_a
Signsoft intelliBO
@links_1142_p
@links_1144_p
Persistence middleware supporting the JDO specification.
@links_1143_a
@links_1145_a
SmartFoxServer
@links_1144_p
@links_1146_p
Platform for developing multiuser applications and games with Macromedia Flash.
@links_1145_a
@links_1147_a
SQL Developer
@links_1146_p
@links_1148_p
Universal Database Frontend.
@links_1147_a
@links_1149_a
SQL Workbench/J
@links_1148_p
@links_1150_p
Free DBMS-independent SQL tool.
@links_1149_a
@links_1151_a
SQuirreL SQL Client
@links_1150_p
@links_1152_p
Graphical tool to view the structure of a database, browse the data, issue SQL commands etc.
@links_1151_a
@links_1153_a
SQuirreL DB Copy Plugin
@links_1152_p
@links_1154_p
Tool to copy data from one database to another.
@links_1153_a
@links_1155_a
StorYBook
@links_1154_p
@links_1156_p
A summary-based tool for novelist and script writers. It helps to keep the overview over the various traces a story has.
@links_1155_a
@links_1157_a
StreamCruncher
@links_1156_p
@links_1158_p
Event (stream) processing kernel.
@links_1157_a
@links_1159_a
Tamava
@links_1158_p
@links_1160_p
Newsgroups Reader.
@links_1159_a
@links_1161_a
Tune Backup
@links_1160_p
@links_1162_p
Easy-to-use backup solution for your iTunes library.
@links_1161_a
@links_1163_a
weblica
@links_1162_p
@links_1164_p
Desktop CMS.
@links_1163_a
@links_1165_a
Web of Web
@links_1164_p
@links_1166_p
Collaborative and realtime interactive media platform for the web.
@links_1165_a
@links_1167_a
Werkzeugkasten
@links_1166_p
@links_1168_p
Minimum Java Toolset.
@links_1167_a
@links_1169_a
Volunteer database
@links_1168_p
@links_1170_p
A database front end to register volunteers, partnership and donation for a Non Profit organization.
@mainWeb_1000_h1
......@@ -5420,7 +5441,7 @@ Welcome to H2, the free SQL database engine.
Quickstart
@main_1003_p
Click here to get a fast overview.
Get a fast overview.
@main_1004_a
Tutorial
......@@ -6866,256 +6887,256 @@ H2 Console: new option 'Open a browser when starting the H2 Console'.
Better space re-use in the files after deleting data: shrink the data file without closing the database (if the end of the file is empty)
@roadmap_1034_li
Full outer joins
Optimize ID=? OR ID=?: convert to IN(...)
@roadmap_1035_li
Support trigger on the tables information_schema.tables and ...columns
Full outer joins
@roadmap_1036_li
Test very large databases and LOBs (up to 256 GB)
Support trigger on the tables information_schema.tables and ...columns
@roadmap_1037_li
Support hints for the optimizer (which index to use, enforce the join order).
Test very large databases and LOBs (up to 256 GB)
@roadmap_1038_li
Change LOB mechanism (less files, keep index of lob files, point to files and row, delete unused files earlier, maybe bundle files into a tar file)
Support hints for the optimizer (which index to use, enforce the join order).
@roadmap_1039_li
Clustering: recovery needs to becomes fully automatic. Global write lock feature.
Change LOB mechanism (less files, keep index of lob files, point to files and row, delete unused files earlier, maybe bundle files into a tar file)
@roadmap_1040_li
Option for Java functions: constant/isDeterministic/readonly/pure (always return the same value) to allow early evaluation when all parameters are constant
Clustering: recovery needs to becomes fully automatic. Global write lock feature.
@roadmap_1041_li
Support mixed clustering mode (one embedded, the other server mode)
Option for Java functions: constant/isDeterministic/readonly/pure (always return the same value) to allow early evaluation when all parameters are constant
@roadmap_1042_li
Deferred integrity checking (DEFERRABLE INITIALLY DEFERRED)
Support mixed clustering mode (one embedded, the other server mode)
@roadmap_1043_li
Groovy Stored Procedures (http://groovy.codehaus.org/Groovy+SQL)
Deferred integrity checking (DEFERRABLE INITIALLY DEFERRED)
@roadmap_1044_li
System table / function: cache usage
Groovy Stored Procedures (http://groovy.codehaus.org/Groovy+SQL)
@roadmap_1045_li
Add a migration guide (list differences between databases)
System table / function: cache usage
@roadmap_1046_li
Optimization: automatic index creation suggestion using the trace file?
Add a migration guide (list differences between databases)
@roadmap_1047_li
Compression performance: don't allocate buffers, compress / expand in to out buffer
Optimization: automatic index creation suggestion using the trace file?
@roadmap_1048_li
Start / stop server with database URL
Compression performance: don't allocate buffers, compress / expand in to out buffer
@roadmap_1049_li
Sequence: add features [NO] MINVALUE, MAXVALUE, CYCLE
Start / stop server with database URL
@roadmap_1050_li
Rebuild index functionality (other than delete the index file)
Sequence: add features [NO] MINVALUE, MAXVALUE, CYCLE
@roadmap_1051_li
Don't use deleteOnExit (bug 4513817: File.deleteOnExit consumes memory)
Rebuild index functionality (other than delete the index file)
@roadmap_1052_li
Console: add accesskey to most important commands (A, AREA, BUTTON, INPUT, LABEL, LEGEND, TEXTAREA)
Don't use deleteOnExit (bug 4513817: File.deleteOnExit consumes memory)
@roadmap_1053_li
Feature: a setting to delete the the log or not (for backup)
Console: add accesskey to most important commands (A, AREA, BUTTON, INPUT, LABEL, LEGEND, TEXTAREA)
@roadmap_1054_li
Test with Sun ASPE1_4; JEE Sun AS PE1.4
Feature: a setting to delete the the log or not (for backup)
@roadmap_1055_li
Test performance again with SQL Server, Oracle, DB2
Test with Sun ASPE1_4; JEE Sun AS PE1.4
@roadmap_1056_li
Test with dbmonster (http://dbmonster.kernelpanic.pl/)
Test performance again with SQL Server, Oracle, DB2
@roadmap_1057_li
Test with dbcopy (http://dbcopyplugin.sourceforge.net)
Test with dbmonster (http://dbmonster.kernelpanic.pl/)
@roadmap_1058_li
Find a tool to view large text file >100 MB, with find, page up and down (like less), truncate before / after
Test with dbcopy (http://dbcopyplugin.sourceforge.net)
@roadmap_1059_li
Implement, test, document XAConnection and so on
Find a tool to view large text file >100 MB, with find, page up and down (like less), truncate before / after
@roadmap_1060_li
Web site: get rid of frame set
Implement, test, document XAConnection and so on
@roadmap_1061_li
Pluggable data type (for compression, validation, conversion, encryption)
Web site: get rid of frame set
@roadmap_1062_li
CHECK: find out what makes CHECK=TRUE slow, move to CHECK2
Pluggable data type (for compression, validation, conversion, encryption)
@roadmap_1063_li
Improve recovery: improve code for log recovery problems (less try/catch)
CHECK: find out what makes CHECK=TRUE slow, move to CHECK2
@roadmap_1064_li
Index usage for (ID, NAME)=(1, 'Hi'); document
Improve recovery: improve code for log recovery problems (less try/catch)
@roadmap_1065_li
Suggestion: include Jetty as Servlet Container (like LAMP)
Index usage for (ID, NAME)=(1, 'Hi'); document
@roadmap_1066_li
Trace shipping to server
Suggestion: include Jetty as Servlet Container (like LAMP)
@roadmap_1067_li
Performance / server mode: use UDP optionally?
Trace shipping to server
@roadmap_1068_li
Version check: docs / web console (using Javascript), and maybe in the library (using TCP/IP)
Performance / server mode: use UDP optionally?
@roadmap_1069_li
Web server classloader: override findResource / getResourceFrom
Version check: docs / web console (using Javascript), and maybe in the library (using TCP/IP)
@roadmap_1070_li
Cost for embedded temporary view is calculated wrong, if result is constant
Web server classloader: override findResource / getResourceFrom
@roadmap_1071_li
Comparison: pluggable sort order: natural sort
Cost for embedded temporary view is calculated wrong, if result is constant
@roadmap_1072_li
Count index range query (count(*) where id between 10 and 20)
Comparison: pluggable sort order: natural sort
@roadmap_1073_li
Eclipse plugin
Count index range query (count(*) where id between 10 and 20)
@roadmap_1074_li
Asynchronous queries to support publish/subscribe: SELECT ... FOR READ WAIT [maxMillisToWait]
Eclipse plugin
@roadmap_1075_li
iReport to support H2
Asynchronous queries to support publish/subscribe: SELECT ... FOR READ WAIT [maxMillisToWait]
@roadmap_1076_li
Implement missing JDBC API (CallableStatement,...)
iReport to support H2
@roadmap_1077_li
Compression of the cache
Implement missing JDBC API (CallableStatement,...)
@roadmap_1078_li
Include SMPT (mail) server (at least client) (alert on cluster failure, low disk space,...)
Compression of the cache
@roadmap_1079_li
Drop with restrict (currently cascade is the default)
Include SMPT (mail) server (at least client) (alert on cluster failure, low disk space,...)
@roadmap_1080_li
JSON parser and functions
Drop with restrict (currently cascade is the default)
@roadmap_1081_li
Automatic collection of statistics (auto ANALYZE)
JSON parser and functions
@roadmap_1082_li
Server: client ping from time to time (to avoid timeout - is timeout a problem?)
Automatic collection of statistics (auto ANALYZE)
@roadmap_1083_li
Copy database: Tool with config GUI and batch mode, extensible (example: compare)
Server: client ping from time to time (to avoid timeout - is timeout a problem?)
@roadmap_1084_li
Document, implement tool for long running transactions using user-defined compensation statements
Copy database: Tool with config GUI and batch mode, extensible (example: compare)
@roadmap_1085_li
Support SET TABLE DUAL READONLY
Document, implement tool for long running transactions using user-defined compensation statements
@roadmap_1086_li
Linked schema using CSV files: one schema for a directory of files; support indexes for CSV files
Support SET TABLE DUAL READONLY
@roadmap_1087_li
Don't write stack traces for common exceptions like duplicate key to the log by default
Linked schema using CSV files: one schema for a directory of files; support indexes for CSV files
@roadmap_1088_li
GCJ: what is the state now?
Don't write stack traces for common exceptions like duplicate key to the log by default
@roadmap_1089_li
Use Janino to convert Java to C++
GCJ: what is the state now?
@roadmap_1090_li
Reduce disk space usage (Derby uses less disk space?)
Use Janino to convert Java to C++
@roadmap_1091_li
Events for: Database Startup, Connections, Login attempts, Disconnections, Prepare (after parsing), Web Server (see http://docs.openlinksw.com/virtuoso/fn_dbev_startup.html)
Reduce disk space usage (Derby uses less disk space?)
@roadmap_1092_li
Optimization: Log compression
Events for: Database Startup, Connections, Login attempts, Disconnections, Prepare (after parsing), Web Server (see http://docs.openlinksw.com/virtuoso/fn_dbev_startup.html)
@roadmap_1093_li
Support standard INFORMATION_SCHEMA tables, as defined in http://www.contrib.andrew.cmu.edu/~shadow/sql/sql1992.txt; specially KEY_COLUMN_USAGE (http://dev.mysql.com/doc/refman/5.0/en/information-schema.html, http://www.xcdsql.org/Misc/INFORMATION_SCHEMA%20With%20Rolenames.gif)
Optimization: Log compression
@roadmap_1094_li
Compatibility: in MySQL, HSQLDB, /0.0 is NULL; in PostgreSQL, Derby: Division by zero
Support standard INFORMATION_SCHEMA tables, as defined in http://www.contrib.andrew.cmu.edu/~shadow/sql/sql1992.txt; specially KEY_COLUMN_USAGE (http://dev.mysql.com/doc/refman/5.0/en/information-schema.html, http://www.xcdsql.org/Misc/INFORMATION_SCHEMA%20With%20Rolenames.gif)
@roadmap_1095_li
Functional tables should accept parameters from other tables (see FunctionMultiReturn) SELECT * FROM TEST T, P2C(T.A, T.R)
Compatibility: in MySQL, HSQLDB, /0.0 is NULL; in PostgreSQL, Derby: Division by zero
@roadmap_1096_li
Custom class loader to reload functions on demand
Functional tables should accept parameters from other tables (see FunctionMultiReturn) SELECT * FROM TEST T, P2C(T.A, T.R)
@roadmap_1097_li
Test http://mysql-je.sourceforge.net/
Custom class loader to reload functions on demand
@roadmap_1098_li
Close all files when closing the database (including LOB files that are open on the client side)
Test http://mysql-je.sourceforge.net/
@roadmap_1099_li
EXE file: maybe use http://jsmooth.sourceforge.net
Close all files when closing the database (including LOB files that are open on the client side)
@roadmap_1100_li
Performance: Automatically build in-memory indexes if the whole table is in memory
EXE file: maybe use http://jsmooth.sourceforge.net
@roadmap_1101_li
H2 Console: The webclient could support more features like phpMyAdmin.
Performance: Automatically build in-memory indexes if the whole table is in memory
@roadmap_1102_li
The HELP information schema can be directly exposed in the Console
H2 Console: The webclient could support more features like phpMyAdmin.
@roadmap_1103_li
Maybe use the 0x1234 notation for binary fields, see MS SQL Server
The HELP information schema can be directly exposed in the Console
@roadmap_1104_li
Support Oracle CONNECT BY in some way: http://www.adp-gmbh.ch/ora/sql/connect_by.html, http://philip.greenspun.com/sql/trees.html
Maybe use the 0x1234 notation for binary fields, see MS SQL Server
@roadmap_1105_li
SQL Server 2005, Oracle: Support COUNT(*) OVER(). See http://www.orafusion.com/art_anlytc.htm
Support Oracle CONNECT BY in some way: http://www.adp-gmbh.ch/ora/sql/connect_by.html, http://philip.greenspun.com/sql/trees.html
@roadmap_1106_li
RANK() and DENSE_RANK(), Partition using OVER()
SQL Server 2005, Oracle: Support COUNT(*) OVER(). See http://www.orafusion.com/art_anlytc.htm
@roadmap_1107_li
SQL 2003 (http://www.wiscorp.com/sql_2003_standard.zip)
RANK() and DENSE_RANK(), Partition using OVER()
@roadmap_1108_li
http://www.jpackage.org
SQL 2003 (http://www.wiscorp.com/sql_2003_standard.zip)
@roadmap_1109_li
Version column (number/sequence and timestamp based)
http://www.jpackage.org
@roadmap_1110_li
Optimize getGeneratedKey: send last identity after each execute (server).
Version column (number/sequence and timestamp based)
@roadmap_1111_li
Date: default date is '1970-01-01' (is it 1900-01-01 in the standard / other databases?)
Optimize getGeneratedKey: send last identity after each execute (server).
@roadmap_1112_li
Test and document UPDATE TEST SET (ID, NAME) = (SELECT ID*10, NAME || '!' FROM TEST T WHERE T.ID=TEST.ID);
Date: default date is '1970-01-01' (is it 1900-01-01 in the standard / other databases?)
@roadmap_1113_li
Max memory rows / max undo log size: use block count / row size not row count
Test and document UPDATE TEST SET (ID, NAME) = (SELECT ID*10, NAME || '!' FROM TEST T WHERE T.ID=TEST.ID);
@roadmap_1114_li
Support 123L syntax as in Java; example: SELECT (2000000000*2)
Max memory rows / max undo log size: use block count / row size not row count
@roadmap_1115_li
Implement point-in-time recovery
Support 123L syntax as in Java; example: SELECT (2000000000*2)
@roadmap_1116_li
Include the version name in the jar file name
Implement point-in-time recovery
@roadmap_1117_li
Optimize ID=? OR ID=?: convert to IN(...)
Include the version name in the jar file name
@roadmap_1118_li
LIKE: improved version for larger texts (currently using naive search)
......@@ -7819,13 +7840,19 @@ Implement OLAP features as described here: http://www.devx.com/getHelpOn/10Minut
@roadmap_1351_li
Support Oracle ROWID (unique identifier for each row).
@roadmap_1352_h2
Not Planned
@roadmap_1352_li
Server mode: Improve performance for batch updates.
@roadmap_1353_li
Applets: Support read-only databases in a zip file (accessed as a resource).
@roadmap_1354_h2
Not Planned
@roadmap_1355_li
HSQLDB (did) support this: select id i from test where i>0 (other databases don't). Supporting it may break compatibility.
@roadmap_1354_li
@roadmap_1356_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
......
......@@ -208,7 +208,7 @@ Phantom Reads (ファントムリード)
#To use the MVCC feature, append MVCC=TRUE to the database URL:
@advanced_1069_p
#The MVCC feature is not fully tested yet.
#MVCC can not be used at the same time as MULTI_THREADED. The MVCC feature is not fully tested yet.
@advanced_1070_h2
クラスタリング / 高可用性
......@@ -1111,861 +1111,876 @@ Centralリポジトリの利用
#Next Version (unreleased)
@changelog_1002_li
#-
#Row level locking for MVCC is now enabled. The exception 'Concurrent update in table ...' is still thrown, but only after the lock timeout.
@changelog_1003_h2
#Version 1.0.78 (2008-08-28)
@changelog_1003_li
#The maximum log file size setting was ignored for large databases.
@changelog_1004_li
#The documentation no longer uses a frameset (except the Javadocs).
#Multi-Version Concurrency (MVCC) may no longer be used when using the multi-threaded kernel feature (MULTI_THREADED). An exception is thrown when trying to connect with both settings. Additional synchronization is required before those features can be used together.
@changelog_1005_li
#When using DB_CLOSE_DELAY, sometimes a NullPointerException is thrown when the database is opened almost at the same time as it is closed automatically. Thanks a lot to Dmitry Pekar for finding this!
#The data type JAVA_OBJECT could not be used in updatable result sets.
@changelog_1006_li
#Java methods with variable number of parameters can now be used (for Java 1.5 or newer).
#The system property h2.optimizeInJoin did not work correctly.
@changelog_1007_li
#Conditions such as ID=? AND ID>? were slow.
@changelog_1008_h2
#Version 1.0.78 (2008-08-28)
@changelog_1009_li
#The documentation no longer uses a frameset (except the Javadocs).
@changelog_1010_li
#When using DB_CLOSE_DELAY, sometimes a NullPointerException is thrown when the database is opened almost at the same time as it is closed automatically. Thanks a lot to Dmitry Pekar for finding this!
@changelog_1011_li
#Java methods with variable number of parameters can now be used (for Java 1.5 or newer).
@changelog_1012_li
#The Japanese translation has been improved by Masahiro Ikemoto. Thanks a lot!
@changelog_1008_li
@changelog_1013_li
#The H2 Console replaced an empty user name with a single space.
@changelog_1009_li
@changelog_1014_li
#The build target 'build jarSmall' now includes the embedded database.
@changelog_1010_li
@changelog_1015_li
#JdbcDataSource now keeps the password in a char array where possible.
@changelog_1011_li
@changelog_1016_li
#ResultSet.absolute did not always work with large result sets.
@changelog_1012_li
@changelog_1017_li
#Column aliases can now be used in GROUP BY and HAVING.
@changelog_1013_li
@changelog_1018_li
#Jason Brittain has contributed MySQL date functions. Thanks a lot! They are not in the h2.jar file currently, but in src/tools/org/h2/mode/FunctionsMySQL.java. To install, add this class to the classpath and call FunctionsMySQL.register(conn) in the Java code.
@changelog_1014_h2
@changelog_1019_h2
#Version 1.0.77 (2008-08-16)
@changelog_1015_li
@changelog_1020_li
#JaQu is now using prepared statements and supports Date, Time, Timestamp.
@changelog_1016_li
@changelog_1021_li
#When using remote in-memory databases, large LOB objects did not work.
@changelog_1017_li
@changelog_1022_li
#Timestamp columns such as TIMESTAMP(6) were not compatible to other database.
@changelog_1018_li
@changelog_1023_li
#Opening a large database was slow if there was a problem opening the previous time.
@changelog_1019_li
@changelog_1024_li
#NOT IN(SELECT ...) was incorrect if the subquery returns no rows.
@changelog_1020_li
@changelog_1025_li
#CREATE TABLE AS SELECT did not work correctly in the multi-version concurrency mode.
@changelog_1021_li
@changelog_1026_li
#Support a comma before closing a list, as in: create table test(id int,)
@changelog_1022_li
@changelog_1027_li
#MySQL compatibility: linked tables had lower case column names on some systems.
@changelog_1023_li
@changelog_1028_li
#DB2 compatibility: the DB2 fetch-first-clause is supported.
@changelog_1024_li
@changelog_1029_li
#Oracle compatibility: old style outer join syntax using (+) did work correctly sometimes.
@changelog_1025_li
@changelog_1030_li
#ResultSet.setFetchSize is now supported.
@changelog_1026_li
@changelog_1031_li
#It has been reported that when using Install4j on some Linux systems and enabling the 'pack200' option, the h2.jar becomes corrupted by the install process, causing application failure. A workaround is to add an empty file h2.jar.nopack next to the h2.jar file. The reason for this problem is not known.
@changelog_1027_h2
@changelog_1032_h2
#Version 1.0.76 (2008-07-27)
@changelog_1028_li
@changelog_1033_li
#The comment of a domain (user defined data type) is now used as the default column comment when creating a column with this domain.
@changelog_1029_li
@changelog_1034_li
#Invalid database names are now detected and a better error message is thrown.
@changelog_1030_li
@changelog_1035_li
#ResultSetMetaData.getColumnClassName now returns the correct class name for BLOB and CLOB.
@changelog_1031_li
@changelog_1036_li
#Fixed the Oracle mode: Oracle allows multiple rows only where all columns of the unique index are NULL.
@changelog_1032_li
@changelog_1037_li
#There is a problem with Hibernate when using Boolean columns. A patch for Hibernate has been submitted at http://opensource.atlassian.com/projects/hibernate/browse/HHH-3401
@changelog_1033_li
@changelog_1038_li
#ORDER BY on tableName.columnName didn't work correctly if the column name was also used as an alias.
@changelog_1034_li
@changelog_1039_li
#H2 Console: The progress display when opening a database has been improved.
@changelog_1035_li
@changelog_1040_li
#The error message when the server doesn't start has been improved.
@changelog_1036_li
@changelog_1041_li
#Key values can now be changed in updatable result sets.
@changelog_1037_li
@changelog_1042_li
#Changes in updatable result sets are now visible even when resetting the result set.
@changelog_1038_li
@changelog_1043_li
#Temporary files were sometimes deleted too late when executing large insert, update, or delete operations.
@changelog_1039_li
@changelog_1044_li
#The database file was growing after deleting many rows, and after large update operations.
@changelog_1040_h2
@changelog_1045_h2
#Version 1.0.75 (2008-07-14)
@changelog_1041_li
@changelog_1046_li
#Multi version concurrency (MVCC): when a row was updated or deleted, but this change was rolled back, the row was not visible by other sessions if no index was used to access it. Fixed.
@changelog_1042_li
@changelog_1047_li
#Views with multiple joined tables (where one was an outer join) couldn't be used in some cases. Fixed.
@changelog_1043_li
@changelog_1048_li
#The CSVREAD method did not process NULL correctly when using a whitespace field separator.
@changelog_1044_li
@changelog_1049_li
#Fixed the Oracle mode: Oracle allows multiple rows with NULL in a unique index.
@changelog_1045_li
@changelog_1050_li
#Running out of memory could result in incomplete transactions or corrupted databases. Fixed.
@changelog_1046_li
@changelog_1051_li
#When using order by in a query that uses the same table multiple times, the order could be incorrect. Fixed.
@changelog_1047_li
@changelog_1052_li
#Referential constraint checking improvement: now the constraint is only checked if the key column values change.
@changelog_1048_li
@changelog_1053_li
#Some database metadata calls returned the wrong data type for DATA_TYPE columns.
@changelog_1049_li
@changelog_1054_li
#The Lucene fulltext index was empty when opening a database with fulltext index enabled, and re-indexing it didn't work. Fixed.
@changelog_1050_li
@changelog_1055_li
#The character '$' could not be used in identifier names (table name, column names and so on). Fixed.
@changelog_1051_li
@changelog_1056_li
#The new method org.h2.tools.Server.startWebServer(conn) starts the H2 Console to inspect a database while debugging.
@changelog_1052_li
@changelog_1057_li
#Stopping a WebServer didn't always work. Fixed.
@changelog_1053_h2
@changelog_1058_h2
#Version 1.0.74 (2008-06-21)
@changelog_1054_li
@changelog_1059_li
#Work on row level locking has been started (but there is nothing usable yet).
@changelog_1055_li
@changelog_1060_li
#JaQu (Java Query), a tool similar to LINQ (Language Integrated Query; from Microsoft) is now included under src/tools/org/h2/jaqu. A small sample application is included under src/test/org/h2/test/jaqu.
@changelog_1056_li
@changelog_1061_li
#The source code is now switched to Java 1.6 by default. To switch back to Java 1.4, run 'build compile'. The h2.jar file is still Java 1.4.
@changelog_1057_li
@changelog_1062_li
#The ChangePassword tool is now called ChangeFileEncryption.
@changelog_1058_li
@changelog_1063_li
#It is no longer allowed to create columns with the data type NULL. Also, it is no longer allowed to convert a column to the data type NULL. This was possible before but caused data loss.
@changelog_1059_li
@changelog_1064_li
#When using computed columns or default values with a different data type than the column data type, a class cast exception could occur. Fixed.
@changelog_1060_li
@changelog_1065_li
#Opening databases larger than 1 GB was sometimes very slow if a lot of data was deleted previously. Fixed.
@changelog_1061_li
@changelog_1066_li
#RUNSCRIPT could throw a NullPointerException if the script name was an expression.
@changelog_1062_li
@changelog_1067_li
#Improved compatibility. New compatibility modes for Oracle and Derby. New compatibility flag uniqueIndexNullDistinct to only allow one row with 'NULL' in a unique index. This flag is enabled for Derby, Oracle, MSSQLServer, and HSQLDB.
@changelog_1063_li
@changelog_1068_li
#Linked tables: To view the statements that are executed against the target table, set the trace level to 3.
@changelog_1064_li
@changelog_1069_li
#RunScript tool: new options to show and check the results of queries.
@changelog_1065_li
@changelog_1070_li
#Deadlocks are now detected. One transaction is rolled back automatically.
@changelog_1066_li
@changelog_1071_li
#The Lucene fulltext index was always re-created when opening a database with fulltext index enabled.
@changelog_1067_li
@changelog_1072_li
#Support for overloaded Java methods. A user defined function can now be bound to multiple Java methods, if the Java methods have the same name but a different number of parameters. Thanks to Gary Tong for providing a patch!
@changelog_1068_h2
@changelog_1073_h2
#Version 1.0.73 (2008-05-31)
@changelog_1069_li
@changelog_1074_li
#ParameterMetaData now returns the right data type for most conditions, as in WHERE ID=?.
@changelog_1070_li
@changelog_1075_li
#The table SYSTEM_RANGE now supports expressions and parameters.
@changelog_1071_li
@changelog_1076_li
#New column INFORMATION_SCHEMA.CONSTRAINTS.UNIQUE_INDEX_NAME that contains the name of the unique index used to enforce this constraint, if there is such an index.
@changelog_1072_li
@changelog_1077_li
#SET QUERY_TIMEOUT and Statement.setQueryTimeout no longer commits a transaction. The same applies to SET @VARIABLE, SET LOCK_TIMEOUT, SET TRACE_LEVEL_*, SET THROTTLE, and SET PATH.
@changelog_1073_li
@changelog_1078_li
#The SCRIPT command does now emit IF NOT EXISTS for CREATE ROLE.
@changelog_1074_li
@changelog_1079_li
#MySQL compatibility: auto_increment column are no longer automatically converted to primary key columns.
@changelog_1075_li
@changelog_1080_li
#PostgreSQL compatibility: support for BOOL_OR and BOOL_AND aggregate functions.
@changelog_1076_li
@changelog_1081_li
#Negative scale values for DECIMAL or NUMBER columns are now supported in regular tables and in linked tables.
@changelog_1077_li
@changelog_1082_li
#A role or right can now be granted or revoked multiple times without getting an exception.
@changelog_1078_li
@changelog_1083_li
#Infinite numbers in SQL scripts are listed as POWER(0, -1)), negative infinite as (-POWER(0, -1)), and NaN (not a number) as SQRT(-1).
@changelog_1079_li
@changelog_1084_li
#The special double and float values 'NaN' (not a number) did not work correctly when sorting or comparing.
@changelog_1080_li
@changelog_1085_li
#The fulltext search did not support CLOB data types.
@changelog_1081_li
@changelog_1086_li
#If the drive with the database files was disconnected or unmounted while writing, sometimes a stack overflow exception was thrown instead of a IO exception.
@changelog_1082_li
@changelog_1087_li
#The H2 Console could not be shut down from within the tool if the browser supports keepAlive (most browsers do).
@changelog_1083_li
@changelog_1088_li
#If the password was passed as a char array, it was kept in an internal buffer longer than required. Theoretically the password could have been stolen if the main memory was swapped to disk before the garbage collection was run.
@changelog_1084_h2
@changelog_1089_h2
#Version 1.0.72 (2008-05-10)
@changelog_1085_li
@changelog_1090_li
#Some databases could not be opened when appending ;RECOVER=1 to the database URL.
@changelog_1086_li
@changelog_1091_li
#The Japanese translation of the error messages and the H2 Console has been completed by Masahiro Ikemoto (Arizona Design Inc.)
@changelog_1087_li
@changelog_1092_li
#Updates made to updatable rows are now visible within the same result set. DatabaseMetaData.ownUpdatesAreVisible now returns true.
@changelog_1088_li
@changelog_1093_li
#ParameterMetaData now returns the correct data for INSERT and UPDATE statements.
@changelog_1089_li
@changelog_1094_li
#H2 Shell: DESCRIBE now supports an schema name.
@changelog_1090_li
@changelog_1095_li
#A subset of the PostgreSQL 'dollar quoting' feature is now supported.
@changelog_1091_li
@changelog_1096_li
#SLF4J is now supported by using adding TRACE_LEVEL_FILE=4 to the database URL.
@changelog_1092_li
@changelog_1097_li
#The recovery tool did not work if the table name contained spaces or if there was a comment on the table.
@changelog_1093_li
@changelog_1098_li
#Triggers are no longer executed when changing the table structure (ALTER TABLE).
@changelog_1094_li
@changelog_1099_li
#When setting BLOB or CLOB values larger than 65 KB using a remote connection, temporary files were kept on the client longer than required (until the connection was closed or the object is garbage collected). Now they are removed as soon as the PreparedStatement is closed, or when the value is overwritten.
@changelog_1095_li
@changelog_1100_li
#Statements can now be cancelled remotely (when using remote connections).
@changelog_1096_li
@changelog_1101_li
#The Shell tool now uses java.io.Console to read the password when using JDK 1.6
@changelog_1097_li
@changelog_1102_li
#When using read-only databases and setting LOG=2, an exception was written to the trace file when closing the database. Fixed.
@changelog_1098_h2
@changelog_1103_h2
#Version 1.0.71 (2008-04-25)
@changelog_1099_li
@changelog_1104_li
#H2 is now dual-licensed under the Eclipse Public License (EPL) and the old 'H2 License' (which is basically MPL).
@changelog_1100_li
@changelog_1105_li
#Sometimes an exception 'File ID mismatch' or 'try to add a record twice' occurred after large records (8 KB or larger) are updated or deleted. See also http://code.google.com/p/h2database/issues/detail?id=22
@changelog_1101_li
@changelog_1106_li
#H2 Console: The tools can now be translated (it didn't work in the last release).
@changelog_1102_li
@changelog_1107_li
#New traditional Chinese translation. Thanks a lot to Derek Chao!
@changelog_1103_li
@changelog_1108_li
#Indexes were not used when enabling the optimization for IN(SELECT...) (system property h2.optimizeInJoin).
@changelog_1104_h2
@changelog_1109_h2
#Version 1.0.70 (2008-04-20)
@changelog_1105_li
@changelog_1110_li
#The plan is to dual-license H2. The additional license is EPL (Eclipse Public License). The current license (MPL, Mozilla Public License) will stay. Current users are not affected because they can keep MPL. EPL is very similar to MPL, the only bigger difference is related to patents (EPL is a bit more business friendly in this regard). See also http://opensource.org/licenses/eclipse-1.0.php, http://www.eclipse.org/legal/eplfaq.php (FAQ), http://blogs.zdnet.com/Burnette/?p=131
@changelog_1106_li
@changelog_1111_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_1107_li
@changelog_1112_li
#Calling SHUTDOWN on one connection and starting a query on another connection concurrently could result in a Java level deadlock.
@changelog_1108_li
@changelog_1113_li
#New system property h2.enableAnonymousSSL (default: true) to enable anonymous SSL connections.
@changelog_1109_li
@changelog_1114_li
#The precision if SUBSTR is now calculated if possible.
@changelog_1110_li
@changelog_1115_li
#The autocomplete in the H2 Console has been improved a bit.
@changelog_1111_li
@changelog_1116_li
#The tools in the H2 Console are now translatable.
@changelog_1112_li
@changelog_1117_li
#The servlet and lucene jar files are now automatically downloaded when building.
@changelog_1113_li
@changelog_1118_li
#The code switch tool has been replaced by a simpler tool called SwitchSource that just uses find and replace.
@changelog_1114_li
@changelog_1119_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_1115_li
@changelog_1120_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_1116_li
@changelog_1121_li
#Added shell scripts run.sh and build.sh. chmod +x is required, but otherwise it should work. Feedback or improvements are welcome!
@changelog_1117_li
@changelog_1122_li
#Databases in zip files: large queries are now supported. Temp files are created in the temp directory if required. The documentation how to create the zip file has been corrected.
@changelog_1118_li
@changelog_1123_li
#Invalid inline views threw confusing SQL exceptions.
@changelog_1119_li
@changelog_1124_li
#The Japanese translation of the error messages and the H2 Console has been improved. Thanks a lot to Masahiro IKEMOTO.
@changelog_1120_li
@changelog_1125_li
#Optimization for MIN() and MAX() when using MVCC.
@changelog_1121_li
@changelog_1126_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_1122_li
@changelog_1127_li
#After setting the query timeout and then resetting it, the next query would still timeout. Fixed.
@changelog_1123_li
@changelog_1128_li
#Adding a IDENTITY column to a table with data threw a lock timeout.
@changelog_1124_li
@changelog_1129_li
#OutOfMemoryError could occur when using EXISTS or IN(SELECT ..).
@changelog_1125_li
@changelog_1130_li
#The built-in connection pool is not called JdbcConnectionPool. The API and documentation has been changed.
@changelog_1126_li
@changelog_1131_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_1127_li
@changelog_1132_li
#Nested joins are now supported (A JOIN B JOIN C ON .. ON ..)
@changelog_1128_h2
@changelog_1133_h2
#Version 1.0.69 (2008-03-29)
@changelog_1129_li
@changelog_1134_li
#Most command line tools can now be called from within the H2 Console.
@changelog_1130_li
@changelog_1135_li
#A new Shell tools is now included (org.h2.tools.Shell) to query a database from the command line.
@changelog_1131_li
@changelog_1136_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_1132_li
@changelog_1137_li
#New system property h2.sortNullsHigh to invert the default sorting behavior for NULL. The default didn't change.
@changelog_1133_li
@changelog_1138_li
#Performance was very slow when using LOG=2 and deleting or updating all rows of a table in a loop. Fixed.
@changelog_1134_li
@changelog_1139_li
#ALTER TABLE or CREATE TABLE now support parameters for the password field.
@changelog_1135_li
@changelog_1140_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_1136_li
@changelog_1141_li
#TRACE_LEVEL_ settings are no longer persistent. This was a problem when database initialization code caused a lot of trace output.
@changelog_1137_li
@changelog_1142_li
#Fulltext search (native implementation): The words table is no longer an in-memory table because this caused memory problems in some cases.
@changelog_1138_li
@changelog_1143_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_1139_li
@changelog_1144_li
#The recovery tool didn't work correctly for tables without rows.
@changelog_1140_li
@changelog_1145_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_1141_li
@changelog_1146_li
#CSVWRITE caused a NullPointerException when not specifying a nullString.
@changelog_1142_li
@changelog_1147_li
#When a log file switch occurred just after a truncate table or drop table statement, the database could not be started normally (RECOVER=1 was required). Fixed.
@changelog_1143_li
@changelog_1148_li
#When a log file switch occurred in the middle of a sequence flush (sequences are only flushed every 32 values by default), the sequence value was lost. Fixed.
@changelog_1144_li
@changelog_1149_li
#Altering a sequence didn't unlock the system table when autocommit switched off.
@changelog_1145_h2
@changelog_1150_h2
#Version 1.0.68 (2008-03-18)
@changelog_1146_li
@changelog_1151_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_1147_li
@changelog_1152_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_1148_li
@changelog_1153_li
#Unused LOB files were deleted much too late. Now they are deleted if no longer referenced in memory.
@changelog_1149_li
@changelog_1154_li
#ALTER SEQUENCE and ALTER TABLE ALTER COLUMN RESTART can now be used inside a transaction.
@changelog_1150_li
@changelog_1155_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_1151_li
@changelog_1156_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_1152_li
@changelog_1157_li
#Improved performance when using lob files in directories (however this is still disabled by default)
@changelog_1153_li
@changelog_1158_li
#H2 Console: autocomplete didn't work with very large scripts. Fixed.
@changelog_1154_li
@changelog_1159_li
#Fulltext search: new method SEARCH_DATA that returns the column names and primary keys as arrays.
@changelog_1155_li
@changelog_1160_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_1156_li
@changelog_1161_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_1157_li
@changelog_1162_li
#H2 Console: remote connections were very slow because getHostName/getRemoteHost was used. Fixed (now using getHostAddress/getRemoteAddr.
@changelog_1158_li
@changelog_1163_li
#H2 Console: on Linux, Firefox, Konqueror, or Opera (in this order) are now started if available. This has been tested on Ubuntu.
@changelog_1159_li
@changelog_1164_li
#H2 Console: the start window works better with IKVM
@changelog_1160_li
@changelog_1165_li
#H2 Console: improved compatibility with Safari (Safari requires keep-alive)
@changelog_1161_li
@changelog_1166_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_1162_li
@changelog_1167_li
#SELECT UNION with a different number of ORDER BY columns did throw an ArrayIndexOutOfBoundsException.
@changelog_1163_li
@changelog_1168_li
#When using a view, the column precision was changed to the default scale for some data types.
@changelog_1164_li
@changelog_1169_li
#CSVWRITE now supports a 'null string' that is used for parsing and writing NULL.
@changelog_1165_li
@changelog_1170_li
#Some long running queries could not be cancelled.
@changelog_1166_li
@changelog_1171_li
#Queries with many outer join tables were very slow. Fixed.
@changelog_1167_li
@changelog_1172_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_1168_li
@changelog_1173_li
#UPDATE SET column=DEFAULT is now supported.
@changelog_1169_h2
@changelog_1174_h2
#Version 1.0.67 (2008-02-22)
@changelog_1170_li
@changelog_1175_li
#New function FILE_READ to read a file or from an URL. Both binary and text data is supported.
@changelog_1171_li
@changelog_1176_li
#CREATE TABLE AS SELECT now supports specifying the column list and data types.
@changelog_1172_li
@changelog_1177_li
#Connecting to a TCP server and at shutting it down at the same time could cause a Java level deadlock.
@changelog_1173_li
@changelog_1178_li
#A user now has all rights on his own local temporary tables.
@changelog_1174_li
@changelog_1179_li
#The CSV tool now supports a custom lineSeparator.
@changelog_1175_li
@changelog_1180_li
#When using multiple connections, empty space was reused too early sometimes. This could corrupt the database when recovering.
@changelog_1176_li
@changelog_1181_li
#The H2 Console has been translated to Dutch. Thanks a lot to Remco Schoen!
@changelog_1177_li
@changelog_1182_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_1178_li
@changelog_1183_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_1179_li
@changelog_1184_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_1180_li
@changelog_1185_li
#The value cache is now a soft reference cache. This should help save memory.
@changelog_1181_li
@changelog_1186_li
#CREATE INDEX on a table with many rows could run out of memory. Fixed.
@changelog_1182_li
@changelog_1187_li
#Large result sets are now a bit faster.
@changelog_1183_li
@changelog_1188_li
#ALTER TABLE ALTER COLUMN RESTART and ALTER SEQUENCE now support parameters (any expressions).
@changelog_1184_li
@changelog_1189_li
#When setting the base directory on the command line, the user directory prefix ('~') was ignored.
@changelog_1185_li
@changelog_1190_li
#The DbStarter servlet didn't start the TCP listener even if configured.
@changelog_1186_li
@changelog_1191_li
#Statement.setQueryTimeout() is now supported.
@changelog_1187_li
@changelog_1192_li
#New session setting QUERY_TIMEOUT, and new system property h2.maxQueryTimeout.
@changelog_1188_li
@changelog_1193_li
#Changing the transaction log level (SET LOG) is now written to the trace file by default.
@changelog_1189_li
@changelog_1194_li
#In a SQL script, primary key constraints are now ordered before foreign key constraints.
@changelog_1190_li
@changelog_1195_li
#It was not possible to create a referential constraint to a table in a different schema in some situations.
@changelog_1191_li
@changelog_1196_li
#The H2 Console was slow when the database contains many tables. Now the column names are not shown in this case.
@changelog_1192_h2
@changelog_1197_h2
#Version 1.0.66 (2008-02-02)
@changelog_1193_li
@changelog_1198_li
#There is a new online error analyzer tool.
@changelog_1194_li
@changelog_1199_li
#H2 Console: stack traces are now links to the source code in the source repository (H2 database only).
@changelog_1195_li
@changelog_1200_li
#CHAR data type equals comparison was case insensitive instead of case sensitive.
@changelog_1196_li
@changelog_1201_li
#The exception 'Value too long for column' now includes the data.
@changelog_1197_li
@changelog_1202_li
#The table name was missing in the documentation of CREATE INDEX.
@changelog_1198_li
@changelog_1203_li
#Better support for IKVM (www.ikvm.net): the H2 Console now opens a browser window.
@changelog_1199_li
@changelog_1204_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_1200_li
@changelog_1205_li
#The exception "Hexadecimal string contains non-hex character" was not always thrown when it should have been. Fixed.
@changelog_1201_li
@changelog_1206_li
#The H2 Console now provides a link to the documentation when an error occurs (H2 databases only so far).
@changelog_1202_li
@changelog_1207_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_1203_li
@changelog_1208_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_1204_li
@changelog_1209_li
#For compatibility with other databases the column default (COLUMN_DEF) for columns without default is now null (it was an empty string).
@changelog_1205_li
@changelog_1210_li
#Statements that contain very large subqueries (where the subquery result does not fit in memory) are now faster.
@changelog_1206_li
@changelog_1211_li
#Variables: large objects (CLOB and BLOB) that don't fit in memory did not work correctly when used as variables.
@changelog_1207_li
@changelog_1212_li
#Fulltext search is now supported in named in-memory databases.
@changelog_1208_li
@changelog_1213_li
#H2 Console: multiple consecutive spaces in the setting name did not work. Fixed.
@changelog_1209_h2
@changelog_1214_h2
#Version 1.0.65 (2008-01-18)
@changelog_1210_li
@changelog_1215_li
#The build (ant) now automatically switches the source code to the correct version (JDK 1.4/1.5 or 1.6).
@changelog_1211_li
@changelog_1216_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_1212_li
@changelog_1217_li
#The performance for DROP and DROP ALL OBJECTS has been improved.
@changelog_1213_li
@changelog_1218_li
#The ChangePassword API has been improved.
@changelog_1214_li
@changelog_1219_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_1215_li
@changelog_1220_li
#The Ukrainian translation has been improved.
@changelog_1216_li
@changelog_1221_li
#CALL statements can now be used in batch updates and called using Statement.executeUpdate.
@changelog_1217_li
@changelog_1222_li
#New read-only setting CREATE_BUILD (the build number of the database engine that created the database).
@changelog_1218_li
@changelog_1223_li
#The optimizer did not use multi column indexes for range queries in some cases. Fixed.
@changelog_1219_li
@changelog_1224_li
#The H2 Console now calls DataSource.getConnection() instead of DataSource.getConnection(user, password) when user name and password are not specified.
@changelog_1220_li
@changelog_1225_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_1221_li
@changelog_1226_li
#Batch update: Calling BatchUpdateException.printStackTrace() could result in out of memory. Fixed.
@changelog_1222_li
@changelog_1227_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_1223_li
@changelog_1228_li
#The performance for large result sets in the server mode has been improved.
@changelog_1224_li
@changelog_1229_li
#The setting h2.serverSmallResultSetSize has been renamed to h2.serverResultSetFetchSize.
@changelog_1225_li
@changelog_1230_li
#The SCRIPT command now uses multi-row insert statements to save space except if the option SIMPLE is used.
@changelog_1226_li
@changelog_1231_li
#The SCRIPT command did not split up CLOB data correctly. Fixed.
@changelog_1227_li
@changelog_1232_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_1228_li
@changelog_1233_li
#DROP ALL OBJECTS did not drop user defined aggregate functions and domains.
@changelog_1229_li
@changelog_1234_li
#PostgreSQL compatibility: COUNT(T.*) is now supported.
@changelog_1230_li
@changelog_1235_li
#LIKE comparisons are now faster.
@changelog_1231_li
@changelog_1236_li
#Encrypted databases are now faster.
@changelog_1232_h2
@changelog_1237_h2
#Version 1.0.64 (2007-12-27)
@changelog_1233_li
@changelog_1238_li
#3-way union queries with prepared statement or views could return the wrong results. Fixed.
@changelog_1234_li
@changelog_1239_li
#The PostgreSQL ODBC driver did not work in the last release due to a parser regression. Fixed.
@changelog_1235_li
@changelog_1240_li
#CSV tool: some escape/separator character combinations did not work. Fixed.
@changelog_1236_li
@changelog_1241_li
#CSV tool: the character # could not be used as a separator when reading.
@changelog_1237_li
@changelog_1242_li
#Recovery: when the index file is corrupt, now the database deletes it and re-creates it automatically.
@changelog_1238_li
@changelog_1243_li
#The MVCC mode did not work well with in-memory databases. Fixed.
@changelog_1239_li
@changelog_1244_li
#The FTP server now supports a event listener. Thanks Fulvio Biondi for the help!
@changelog_1240_li
@changelog_1245_li
#New system function CANCEL_SESSION to cancel the currently executing statement of another session.
@changelog_1241_li
@changelog_1246_li
#The database now supports an exclusive mode. In exclusive mode, new connections are rejected.
@changelog_1242_li
@changelog_1247_li
#H2 Console: when editing result sets, columns can now be set to null. The text 'null' must be escaped using '=null'.
@changelog_1243_li
@changelog_1248_li
#New built-in functions RPAD and LPAD.
@changelog_1244_li
@changelog_1249_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_1245_li
@changelog_1250_li
#The Ukrainian translation was not working in the last release. Fixed.
@changelog_1246_li
@changelog_1251_li
#Creating many tables (many hundreds) was slow. Fixed.
@changelog_1247_li
@changelog_1252_li
#Opening a database with many indexes (thousands) was slow. Fixed.
@changelog_1248_li
@changelog_1253_li
#H2 Console / autocomplete: Ctrl+Space now shows the list in all modes.
@changelog_1249_li
@changelog_1254_li
#The method Trigger.init has been changed: the parameters 'before' and 'type', have been added to the init method.
@changelog_1250_li
@changelog_1255_li
#The performance has been improved for ResultSet methods with column name.
@changelog_1251_li
@changelog_1256_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_1252_li
@changelog_1257_li
#The H2 Console has been translated to Turkish. Thanks a lot to Ridvan Agar!
@changelog_1253_li
@changelog_1258_li
#Improved debugging support: toString methods of most object now return a meaningful text.
@changelog_1254_li
@changelog_1259_li
#The classes DbStarter and WebServlet have been moved to src/main.
@changelog_1255_li
@changelog_1260_li
#The column INFORMATION_SCHEMA.TRIGGERS.SQL now contains the CREATE TRIGGER statement.
@changelog_1256_li
@changelog_1261_li
#Loading classes and calling methods can be restricted using the new system property h2.allowedClasses.
@changelog_1257_li
@changelog_1262_li
#The database could not be used in Java applets due to security exceptions. Fixed.
@changelog_1258_h2
@changelog_1263_h2
#Version 1.0.63 (2007-12-02)
@changelog_1259_li
@changelog_1264_li
#The SecurePassword example has been improved.
@changelog_1260_li
@changelog_1265_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_1261_li
@changelog_1266_li
#The native fulltext search was not working properly after re-connecting.
@changelog_1262_li
@changelog_1267_li
#Improved FTP server: now the PORT command is supported.
@changelog_1263_li
@changelog_1268_li
#Temporary views (FROM(...)) with UNION didn't work if nested. Fixed.
@changelog_1264_li
@changelog_1269_li
#Performance optimization for IN(...) and IN(SELECT...), currently disabled by default. To enable, use java -Dh2.optimizeInJoin=true
@changelog_1265_li
@changelog_1270_li
#The H2 Console has been translated to Ukrainian by Igor Dobrovolskyi. Thanks a lot!
@changelog_1266_li
@changelog_1271_li
#New function TABLE_DISTINCT.
@changelog_1267_li
@changelog_1272_li
#Using LIMIT with values close to Integer.MAX_VALUE didn't work correctly.
@changelog_1268_li
@changelog_1273_li
#Certain setting in the Server didn't work (http://code.google.com/p/h2database/issues/detail?id=7).
@changelog_1269_h2
@changelog_1274_h2
#Version 1.0.62 (2007-11-25)
@changelog_1270_li
@changelog_1275_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_1271_li
@changelog_1276_li
#MVCC: now an exception is thrown when an application tries to change the MVCC setting while the database is already open.
@changelog_1272_li
@changelog_1277_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_1273_li
@changelog_1278_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_1274_li
@changelog_1279_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_1275_li
@changelog_1280_li
#Duplicate column names were not detected when renaming columns. Fixed.
@changelog_1276_li
@changelog_1281_li
#The console did not display multiple embedded spaces in text correctly. Fixed.
@changelog_1277_li
@changelog_1282_li
#Google Android support: use 'ant codeswitchAndroid' to switch the source code to Android.
@changelog_1278_li
@changelog_1283_li
#Values of type ARRAY are now sorted as in PostgreSQL.
@changelog_1279_li
@changelog_1284_li
#In the cluster mode, could not connect if only one server was running (last release only). Fixed.
@changelog_1280_li
@changelog_1285_li
#The performance of large CSV operations has been improved.
@changelog_1281_li
@changelog_1286_li
#Now using custom toString() for most JDBC objects and commands.
@changelog_1282_li
@changelog_1287_li
#Nested temporary views (SELECT * FROM (SELECT ...)) with parameters didn't work in some cases. Fixed.
@changelog_1283_li
@changelog_1288_li
#CSV: Using an empty field delimiter didn't work (a workaround was using char(0)). Fixed.
@changelog_1284_li
@changelog_1289_li
#A patch for Apache DDL Utils is available at https://issues.apache.org/jira/browse/DDLUTILS-185
@changelog_1285_li
@changelog_1290_li
#The default value for h2.emergencySpaceInitial is now 256 KB (to speed up creating encrypted databases)
@changelog_1286_li
@changelog_1291_li
#Eduardo Velasques has translated the H2 Console and the error messages to Brazilian Portuguese. Thanks a lot!
@changelog_1287_li
@changelog_1292_li
#Creating a table from GROUP_CONCAT didn't work if the data was longer than 255 characters
@download_1000_h1
......@@ -4921,130 +4936,130 @@ Sourceファイル
#Helps building web applications.
@links_1035_a
#Blojsom
#BGBlitz
@links_1036_p
#Java-based multi-blog, multi-user software package (Mac OS X Weblog Server).
#The Swiss army knife of Backgammon.
@links_1037_a
#Bookmarks Portlet
#Blojsom
@links_1038_p
#JSR 168 compliant bookmarks management portlet application.
#Java-based multi-blog, multi-user software package (Mac OS X Weblog Server).
@links_1039_a
#Claros inTouch
#Bookmarks Portlet
@links_1040_p
#Ajax communication suite with mail, addresses, notes, IM, and rss reader.
#JSR 168 compliant bookmarks management portlet application.
@links_1041_a
#CrashPlan PRO Server
#Claros inTouch
@links_1042_p
#Easy and cross platform backup solution for business and service providers.
#Ajax communication suite with mail, addresses, notes, IM, and rss reader.
@links_1043_a
#DB Solo
#CrashPlan PRO Server
@links_1044_p
#SQL query tool.
#Easy and cross platform backup solution for business and service providers.
@links_1045_a
#DbVisualizer
#DB Solo
@links_1046_p
#Database tool.
#SQL query tool.
@links_1047_a
#Epictetus
#DbVisualizer
@links_1048_p
#Free cross platform database tool.
#Database tool.
@links_1049_a
#Execute Query
#Epictetus
@links_1050_p
#Database utility written in Java.
#Free cross platform database tool.
@links_1051_a
#Fabric3
#Execute Query
@links_1052_p
#Fabric3 is a project implementing a federated service network based on the Service Component Architecture specification (http://www.osoa.org).
#Database utility written in Java.
@links_1053_a
#Flux
#Fabric3
@links_1054_p
#Java job scheduler, file transfer, workflow, and BPM.
#Fabric3 is a project implementing a federated service network based on the Service Component Architecture specification (http://www.osoa.org).
@links_1055_a
#Golden T Studios
#Flux
@links_1056_p
#Fun-to-play games with a simple interface.
#Java job scheduler, file transfer, workflow, and BPM.
@links_1057_a
#Group Session
#Golden T Studios
@links_1058_p
#Open source web groupware.
#Fun-to-play games with a simple interface.
@links_1059_a
#HA-JDBC
#Group Session
@links_1060_p
#High-Availability JDBC: A JDBC proxy that provides light-weight, transparent, fault tolerant clustering capability to any underlying JDBC driver.
#Open source web groupware.
@links_1061_a
#Harbor
#HA-JDBC
@links_1062_p
#Pojo Application Server.
#High-Availability JDBC: A JDBC proxy that provides light-weight, transparent, fault tolerant clustering capability to any underlying JDBC driver.
@links_1063_a
#HenPlus
#Harbor
@links_1064_p
#HenPlus is a SQL shell written in Java.
#Pojo Application Server.
@links_1065_a
#Hibernate
#HenPlus
@links_1066_p
#Relational persistence for idiomatic Java (O-R mapping tool).
#HenPlus is a SQL shell written in Java.
@links_1067_a
#Hibicius
#Hibernate
@links_1068_p
#Online Banking Client for the HBCI protocol.
#Relational persistence for idiomatic Java (O-R mapping tool).
@links_1069_a
#H2 Spatial
#Hibicius
@links_1070_p
#A project to add spatial functions to H2 database.
#Online Banking Client for the HBCI protocol.
@links_1071_a
#JAMWiki
#H2 Spatial
@links_1072_p
#Java-based Wiki engine.
#A project to add spatial functions to H2 database.
@links_1073_a
#Jala
#JAMWiki
@links_1074_p
#Open source collection of JavaScript modules.
#Java-based Wiki engine.
@links_1075_a
#JavaPlayer
#Jala
@links_1076_p
#Pure Java MP3 player.
#Open source collection of JavaScript modules.
@links_1077_a
#JavaPlayer
......@@ -5053,273 +5068,279 @@ Sourceファイル
#Pure Java MP3 player.
@links_1079_a
#Java Simon
#JavaPlayer
@links_1080_p
#Simple Monitoring API.
#Pure Java MP3 player.
@links_1081_a
#JGeocoder
#Java Simon
@links_1082_p
#Free Java geocoder. Geocoding is the process of estimating a latitude and longitude for a given location.
#Simple Monitoring API.
@links_1083_a
#Jena
#JGeocoder
@links_1084_p
#Java framework for building Semantic Web applications.
#Free Java geocoder. Geocoding is the process of estimating a latitude and longitude for a given location.
@links_1085_a
#JMatter
#Jena
@links_1086_p
#Framework for constructing workgroup business applications based on the Naked Objects Architectural Pattern.
#Java framework for building Semantic Web applications.
@links_1087_a
#JPOX
#JMatter
@links_1088_p
#Java persistent objects.
#Framework for constructing workgroup business applications based on the Naked Objects Architectural Pattern.
@links_1089_a
#Liftweb
#JPOX
@links_1090_p
#A Scala-based, secure, developer friendly web framework.
#Java persistent objects.
@links_1091_a
#LiquiBase
#Liftweb
@links_1092_p
#A tool to manage database changes and refactorings.
#A Scala-based, secure, developer friendly web framework.
@links_1093_a
#Luntbuild
#LiquiBase
@links_1094_p
#Build automation and management tool.
#A tool to manage database changes and refactorings.
@links_1095_a
#Magnolia
#Luntbuild
@links_1096_p
#Microarray Data Management and Export System for PFGRC (Pathogen Functional Genomics Resource Center) Microarrays.
#Build automation and management tool.
@links_1097_a
#MiniConnectionPoolManager
#Magnolia
@links_1098_p
#A lightweight standalone JDBC connection pool manager.
#Microarray Data Management and Export System for PFGRC (Pathogen Functional Genomics Resource Center) Microarrays.
@links_1099_a
#Mr. Persister
#MiniConnectionPoolManager
@links_1100_p
#Simple, small and fast object relational mapping.
#A lightweight standalone JDBC connection pool manager.
@links_1101_a
#Myna Application Server
#Mr. Persister
@links_1102_p
#Java web app that provides dynamic web content and Java libraries access from JavaScript.
#Simple, small and fast object relational mapping.
@links_1103_a
#MyTunesRss
#Myna Application Server
@links_1104_p
#MyTunesRSS lets you listen to your music wherever you are.
#Java web app that provides dynamic web content and Java libraries access from JavaScript.
@links_1105_a
#NCGC CurveFit
#MyTunesRss
@links_1106_p
#From: NIH Chemical Genomics Center, National Institutes of Health, USA. An open source application in the life sciences research field. This application handles chemical structures and biological responses of thousands of compounds with the potential to handle million+ compounds. It utilizes an embedded H2 database to enable flexible query/retrieval of all data including advanced chemical substructure and similarity searching. The application highlights an automated curve fitting and classification algorithm that outperforms commercial packages in the field. Commercial alternatives are typically small desktop software that handle a few dose response curves at a time. A couple of commercial packages that do handle several thousand curves are very expensive tools (&gt;60k USD) that require manual curation of analysis by the user; require a license to Oracle; lack advanced query/retrieval; and the ability to handle chemical structures.
#MyTunesRSS lets you listen to your music wherever you are.
@links_1107_a
#Ontology Works
#NCGC CurveFit
@links_1108_p
#This company provides semantic technologies including deductive information repositories (the Ontology Works Knowledge Servers), semantic information fusion and semantic federation of legacy databases, ontology-based domain modeling, and management of the distributed enterprise.
#From: NIH Chemical Genomics Center, National Institutes of Health, USA. An open source application in the life sciences research field. This application handles chemical structures and biological responses of thousands of compounds with the potential to handle million+ compounds. It utilizes an embedded H2 database to enable flexible query/retrieval of all data including advanced chemical substructure and similarity searching. The application highlights an automated curve fitting and classification algorithm that outperforms commercial packages in the field. Commercial alternatives are typically small desktop software that handle a few dose response curves at a time. A couple of commercial packages that do handle several thousand curves are very expensive tools (&gt;60k USD) that require manual curation of analysis by the user; require a license to Oracle; lack advanced query/retrieval; and the ability to handle chemical structures.
@links_1109_a
#Ontoprise OntoBroker
#Ontology Works
@links_1110_p
#SemanticWeb-Middleware. It supports all W3C Semantic Web recommendations: OWL, RDF, RDFS, SPARQL, and F-Logic.
#This company provides semantic technologies including deductive information repositories (the Ontology Works Knowledge Servers), semantic information fusion and semantic federation of legacy databases, ontology-based domain modeling, and management of the distributed enterprise.
@links_1111_a
#Orion
#Ontoprise OntoBroker
@links_1112_p
#J2EE Application Server.
#SemanticWeb-Middleware. It supports all W3C Semantic Web recommendations: OWL, RDF, RDFS, SPARQL, and F-Logic.
@links_1113_a
#P5H2
#Orion
@links_1114_p
#A library for the <a href="http://www.processing.org">Processing</a> programming language and environment.
#J2EE Application Server.
@links_1115_a
#Phase-6
#P5H2
@links_1116_p
#A computer based learning software.
#A library for the <a href="http://www.processing.org">Processing</a> programming language and environment.
@links_1117_a
#Pickle
#Phase-6
@links_1118_p
#Pickle is a Java library containing classes for persistence, concurrency, and logging.
#A computer based learning software.
@links_1119_a
#Piman
#Pickle
@links_1120_p
#Water treatment projects data management.
#Pickle is a Java library containing classes for persistence, concurrency, and logging.
@links_1121_a
#PolePosition
#Piman
@links_1122_p
#Open source database benchmark.
#Water treatment projects data management.
@links_1123_a
#Poormans
#PolePosition
@links_1124_p
#Very basic CMS running as a SWT application and generating static html pages.
#Open source database benchmark.
@links_1125_a
#Poormans
@links_1126_p
#Very basic CMS running as a SWT application and generating static html pages.
@links_1127_a
#Railo
@links_1126_p
@links_1128_p
#Railo is an alternative engine for the Cold Fusion Markup Language, that compiles code programmed in CFML into Java bytecode and executes it on a servlet engine.
@links_1127_a
@links_1129_a
#Razuna
@links_1128_p
@links_1130_p
#Open source Digital Asset Management System with integrated Web Content Management.
@links_1129_a
@links_1131_a
#Rutema
@links_1130_p
@links_1132_p
#Rutema is a test execution and management tool for heterogeneous development environments written in Ruby.
@links_1131_a
@links_1133_a
#Sava
@links_1132_p
@links_1134_p
#Open-source web-based content management system.
@links_1133_a
@links_1135_a
#Scriptella
@links_1134_p
@links_1136_p
#ETL (Extract-Transform-Load) and script execution tool.
@links_1135_a
@links_1137_a
#Sesar
@links_1136_p
@links_1138_p
#Dependency Injection Container with Aspect Oriented Programming.
@links_1137_a
@links_1139_a
#SemmleCode
@links_1138_p
@links_1140_p
#Eclipse plugin to help you improve software quality.
@links_1139_a
@links_1141_a
#Shellbook
@links_1140_p
@links_1142_p
#Desktop publishing application.
@links_1141_a
@links_1143_a
#Signsoft intelliBO
@links_1142_p
@links_1144_p
#Persistence middleware supporting the JDO specification.
@links_1143_a
@links_1145_a
#SmartFoxServer
@links_1144_p
@links_1146_p
#Platform for developing multiuser applications and games with Macromedia Flash.
@links_1145_a
@links_1147_a
#SQL Developer
@links_1146_p
@links_1148_p
#Universal Database Frontend.
@links_1147_a
@links_1149_a
#SQL Workbench/J
@links_1148_p
@links_1150_p
#Free DBMS-independent SQL tool.
@links_1149_a
@links_1151_a
#SQuirreL SQL Client
@links_1150_p
@links_1152_p
#Graphical tool to view the structure of a database, browse the data, issue SQL commands etc.
@links_1151_a
@links_1153_a
#SQuirreL DB Copy Plugin
@links_1152_p
@links_1154_p
#Tool to copy data from one database to another.
@links_1153_a
@links_1155_a
#StorYBook
@links_1154_p
@links_1156_p
#A summary-based tool for novelist and script writers. It helps to keep the overview over the various traces a story has.
@links_1155_a
@links_1157_a
#StreamCruncher
@links_1156_p
@links_1158_p
#Event (stream) processing kernel.
@links_1157_a
@links_1159_a
#Tamava
@links_1158_p
@links_1160_p
#Newsgroups Reader.
@links_1159_a
@links_1161_a
#Tune Backup
@links_1160_p
@links_1162_p
#Easy-to-use backup solution for your iTunes library.
@links_1161_a
@links_1163_a
#weblica
@links_1162_p
@links_1164_p
#Desktop CMS.
@links_1163_a
@links_1165_a
#Web of Web
@links_1164_p
@links_1166_p
#Collaborative and realtime interactive media platform for the web.
@links_1165_a
@links_1167_a
#Werkzeugkasten
@links_1166_p
@links_1168_p
#Minimum Java Toolset.
@links_1167_a
@links_1169_a
#Volunteer database
@links_1168_p
@links_1170_p
#A database front end to register volunteers, partnership and donation for a Non Profit organization.
@mainWeb_1000_h1
......@@ -5425,7 +5446,7 @@ H2 データベース エンジン
クイックスタート
@main_1003_p
Click here to get a fast overview.
#Get a fast overview.
@main_1004_a
チュートリアル
......@@ -6874,256 +6895,256 @@ SQLコマンドがコマンドエリアに表示されます。
#Better space re-use in the files after deleting data: shrink the data file without closing the database (if the end of the file is empty)
@roadmap_1034_li
#Full outer joins
#Optimize ID=? OR ID=?: convert to IN(...)
@roadmap_1035_li
#Support trigger on the tables information_schema.tables and ...columns
#Full outer joins
@roadmap_1036_li
#Test very large databases and LOBs (up to 256 GB)
#Support trigger on the tables information_schema.tables and ...columns
@roadmap_1037_li
#Support hints for the optimizer (which index to use, enforce the join order).
#Test very large databases and LOBs (up to 256 GB)
@roadmap_1038_li
#Change LOB mechanism (less files, keep index of lob files, point to files and row, delete unused files earlier, maybe bundle files into a tar file)
#Support hints for the optimizer (which index to use, enforce the join order).
@roadmap_1039_li
#Clustering: recovery needs to becomes fully automatic. Global write lock feature.
#Change LOB mechanism (less files, keep index of lob files, point to files and row, delete unused files earlier, maybe bundle files into a tar file)
@roadmap_1040_li
#Option for Java functions: constant/isDeterministic/readonly/pure (always return the same value) to allow early evaluation when all parameters are constant
#Clustering: recovery needs to becomes fully automatic. Global write lock feature.
@roadmap_1041_li
#Support mixed clustering mode (one embedded, the other server mode)
#Option for Java functions: constant/isDeterministic/readonly/pure (always return the same value) to allow early evaluation when all parameters are constant
@roadmap_1042_li
#Deferred integrity checking (DEFERRABLE INITIALLY DEFERRED)
#Support mixed clustering mode (one embedded, the other server mode)
@roadmap_1043_li
#Groovy Stored Procedures (http://groovy.codehaus.org/Groovy+SQL)
#Deferred integrity checking (DEFERRABLE INITIALLY DEFERRED)
@roadmap_1044_li
#System table / function: cache usage
#Groovy Stored Procedures (http://groovy.codehaus.org/Groovy+SQL)
@roadmap_1045_li
#Add a migration guide (list differences between databases)
#System table / function: cache usage
@roadmap_1046_li
#Optimization: automatic index creation suggestion using the trace file?
#Add a migration guide (list differences between databases)
@roadmap_1047_li
#Compression performance: don't allocate buffers, compress / expand in to out buffer
#Optimization: automatic index creation suggestion using the trace file?
@roadmap_1048_li
#Start / stop server with database URL
#Compression performance: don't allocate buffers, compress / expand in to out buffer
@roadmap_1049_li
#Sequence: add features [NO] MINVALUE, MAXVALUE, CYCLE
#Start / stop server with database URL
@roadmap_1050_li
#Rebuild index functionality (other than delete the index file)
#Sequence: add features [NO] MINVALUE, MAXVALUE, CYCLE
@roadmap_1051_li
#Don't use deleteOnExit (bug 4513817: File.deleteOnExit consumes memory)
#Rebuild index functionality (other than delete the index file)
@roadmap_1052_li
#Console: add accesskey to most important commands (A, AREA, BUTTON, INPUT, LABEL, LEGEND, TEXTAREA)
#Don't use deleteOnExit (bug 4513817: File.deleteOnExit consumes memory)
@roadmap_1053_li
#Feature: a setting to delete the the log or not (for backup)
#Console: add accesskey to most important commands (A, AREA, BUTTON, INPUT, LABEL, LEGEND, TEXTAREA)
@roadmap_1054_li
#Test with Sun ASPE1_4; JEE Sun AS PE1.4
#Feature: a setting to delete the the log or not (for backup)
@roadmap_1055_li
#Test performance again with SQL Server, Oracle, DB2
#Test with Sun ASPE1_4; JEE Sun AS PE1.4
@roadmap_1056_li
#Test with dbmonster (http://dbmonster.kernelpanic.pl/)
#Test performance again with SQL Server, Oracle, DB2
@roadmap_1057_li
#Test with dbcopy (http://dbcopyplugin.sourceforge.net)
#Test with dbmonster (http://dbmonster.kernelpanic.pl/)
@roadmap_1058_li
#Find a tool to view large text file >100 MB, with find, page up and down (like less), truncate before / after
#Test with dbcopy (http://dbcopyplugin.sourceforge.net)
@roadmap_1059_li
#Implement, test, document XAConnection and so on
#Find a tool to view large text file >100 MB, with find, page up and down (like less), truncate before / after
@roadmap_1060_li
#Web site: get rid of frame set
#Implement, test, document XAConnection and so on
@roadmap_1061_li
#Pluggable data type (for compression, validation, conversion, encryption)
#Web site: get rid of frame set
@roadmap_1062_li
#CHECK: find out what makes CHECK=TRUE slow, move to CHECK2
#Pluggable data type (for compression, validation, conversion, encryption)
@roadmap_1063_li
#Improve recovery: improve code for log recovery problems (less try/catch)
#CHECK: find out what makes CHECK=TRUE slow, move to CHECK2
@roadmap_1064_li
#Index usage for (ID, NAME)=(1, 'Hi'); document
#Improve recovery: improve code for log recovery problems (less try/catch)
@roadmap_1065_li
#Suggestion: include Jetty as Servlet Container (like LAMP)
#Index usage for (ID, NAME)=(1, 'Hi'); document
@roadmap_1066_li
#Trace shipping to server
#Suggestion: include Jetty as Servlet Container (like LAMP)
@roadmap_1067_li
#Performance / server mode: use UDP optionally?
#Trace shipping to server
@roadmap_1068_li
#Version check: docs / web console (using Javascript), and maybe in the library (using TCP/IP)
#Performance / server mode: use UDP optionally?
@roadmap_1069_li
#Web server classloader: override findResource / getResourceFrom
#Version check: docs / web console (using Javascript), and maybe in the library (using TCP/IP)
@roadmap_1070_li
#Cost for embedded temporary view is calculated wrong, if result is constant
#Web server classloader: override findResource / getResourceFrom
@roadmap_1071_li
#Comparison: pluggable sort order: natural sort
#Cost for embedded temporary view is calculated wrong, if result is constant
@roadmap_1072_li
#Count index range query (count(*) where id between 10 and 20)
#Comparison: pluggable sort order: natural sort
@roadmap_1073_li
#Eclipse plugin
#Count index range query (count(*) where id between 10 and 20)
@roadmap_1074_li
#Asynchronous queries to support publish/subscribe: SELECT ... FOR READ WAIT [maxMillisToWait]
#Eclipse plugin
@roadmap_1075_li
#iReport to support H2
#Asynchronous queries to support publish/subscribe: SELECT ... FOR READ WAIT [maxMillisToWait]
@roadmap_1076_li
#Implement missing JDBC API (CallableStatement,...)
#iReport to support H2
@roadmap_1077_li
#Compression of the cache
#Implement missing JDBC API (CallableStatement,...)
@roadmap_1078_li
#Include SMPT (mail) server (at least client) (alert on cluster failure, low disk space,...)
#Compression of the cache
@roadmap_1079_li
#Drop with restrict (currently cascade is the default)
#Include SMPT (mail) server (at least client) (alert on cluster failure, low disk space,...)
@roadmap_1080_li
#JSON parser and functions
#Drop with restrict (currently cascade is the default)
@roadmap_1081_li
#Automatic collection of statistics (auto ANALYZE)
#JSON parser and functions
@roadmap_1082_li
#Server: client ping from time to time (to avoid timeout - is timeout a problem?)
#Automatic collection of statistics (auto ANALYZE)
@roadmap_1083_li
#Copy database: Tool with config GUI and batch mode, extensible (example: compare)
#Server: client ping from time to time (to avoid timeout - is timeout a problem?)
@roadmap_1084_li
#Document, implement tool for long running transactions using user-defined compensation statements
#Copy database: Tool with config GUI and batch mode, extensible (example: compare)
@roadmap_1085_li
#Support SET TABLE DUAL READONLY
#Document, implement tool for long running transactions using user-defined compensation statements
@roadmap_1086_li
#Linked schema using CSV files: one schema for a directory of files; support indexes for CSV files
#Support SET TABLE DUAL READONLY
@roadmap_1087_li
#Don't write stack traces for common exceptions like duplicate key to the log by default
#Linked schema using CSV files: one schema for a directory of files; support indexes for CSV files
@roadmap_1088_li
#GCJ: what is the state now?
#Don't write stack traces for common exceptions like duplicate key to the log by default
@roadmap_1089_li
#Use Janino to convert Java to C++
#GCJ: what is the state now?
@roadmap_1090_li
#Reduce disk space usage (Derby uses less disk space?)
#Use Janino to convert Java to C++
@roadmap_1091_li
#Events for: Database Startup, Connections, Login attempts, Disconnections, Prepare (after parsing), Web Server (see http://docs.openlinksw.com/virtuoso/fn_dbev_startup.html)
#Reduce disk space usage (Derby uses less disk space?)
@roadmap_1092_li
#Optimization: Log compression
#Events for: Database Startup, Connections, Login attempts, Disconnections, Prepare (after parsing), Web Server (see http://docs.openlinksw.com/virtuoso/fn_dbev_startup.html)
@roadmap_1093_li
#Support standard INFORMATION_SCHEMA tables, as defined in http://www.contrib.andrew.cmu.edu/~shadow/sql/sql1992.txt; specially KEY_COLUMN_USAGE (http://dev.mysql.com/doc/refman/5.0/en/information-schema.html, http://www.xcdsql.org/Misc/INFORMATION_SCHEMA%20With%20Rolenames.gif)
#Optimization: Log compression
@roadmap_1094_li
#Compatibility: in MySQL, HSQLDB, /0.0 is NULL; in PostgreSQL, Derby: Division by zero
#Support standard INFORMATION_SCHEMA tables, as defined in http://www.contrib.andrew.cmu.edu/~shadow/sql/sql1992.txt; specially KEY_COLUMN_USAGE (http://dev.mysql.com/doc/refman/5.0/en/information-schema.html, http://www.xcdsql.org/Misc/INFORMATION_SCHEMA%20With%20Rolenames.gif)
@roadmap_1095_li
#Functional tables should accept parameters from other tables (see FunctionMultiReturn) SELECT * FROM TEST T, P2C(T.A, T.R)
#Compatibility: in MySQL, HSQLDB, /0.0 is NULL; in PostgreSQL, Derby: Division by zero
@roadmap_1096_li
#Custom class loader to reload functions on demand
#Functional tables should accept parameters from other tables (see FunctionMultiReturn) SELECT * FROM TEST T, P2C(T.A, T.R)
@roadmap_1097_li
#Test http://mysql-je.sourceforge.net/
#Custom class loader to reload functions on demand
@roadmap_1098_li
#Close all files when closing the database (including LOB files that are open on the client side)
#Test http://mysql-je.sourceforge.net/
@roadmap_1099_li
#EXE file: maybe use http://jsmooth.sourceforge.net
#Close all files when closing the database (including LOB files that are open on the client side)
@roadmap_1100_li
#Performance: Automatically build in-memory indexes if the whole table is in memory
#EXE file: maybe use http://jsmooth.sourceforge.net
@roadmap_1101_li
#H2 Console: The webclient could support more features like phpMyAdmin.
#Performance: Automatically build in-memory indexes if the whole table is in memory
@roadmap_1102_li
#The HELP information schema can be directly exposed in the Console
#H2 Console: The webclient could support more features like phpMyAdmin.
@roadmap_1103_li
#Maybe use the 0x1234 notation for binary fields, see MS SQL Server
#The HELP information schema can be directly exposed in the Console
@roadmap_1104_li
#Support Oracle CONNECT BY in some way: http://www.adp-gmbh.ch/ora/sql/connect_by.html, http://philip.greenspun.com/sql/trees.html
#Maybe use the 0x1234 notation for binary fields, see MS SQL Server
@roadmap_1105_li
#SQL Server 2005, Oracle: Support COUNT(*) OVER(). See http://www.orafusion.com/art_anlytc.htm
#Support Oracle CONNECT BY in some way: http://www.adp-gmbh.ch/ora/sql/connect_by.html, http://philip.greenspun.com/sql/trees.html
@roadmap_1106_li
#RANK() and DENSE_RANK(), Partition using OVER()
#SQL Server 2005, Oracle: Support COUNT(*) OVER(). See http://www.orafusion.com/art_anlytc.htm
@roadmap_1107_li
#SQL 2003 (http://www.wiscorp.com/sql_2003_standard.zip)
#RANK() and DENSE_RANK(), Partition using OVER()
@roadmap_1108_li
#http://www.jpackage.org
#SQL 2003 (http://www.wiscorp.com/sql_2003_standard.zip)
@roadmap_1109_li
#Version column (number/sequence and timestamp based)
#http://www.jpackage.org
@roadmap_1110_li
#Optimize getGeneratedKey: send last identity after each execute (server).
#Version column (number/sequence and timestamp based)
@roadmap_1111_li
#Date: default date is '1970-01-01' (is it 1900-01-01 in the standard / other databases?)
#Optimize getGeneratedKey: send last identity after each execute (server).
@roadmap_1112_li
#Test and document UPDATE TEST SET (ID, NAME) = (SELECT ID*10, NAME || '!' FROM TEST T WHERE T.ID=TEST.ID);
#Date: default date is '1970-01-01' (is it 1900-01-01 in the standard / other databases?)
@roadmap_1113_li
#Max memory rows / max undo log size: use block count / row size not row count
#Test and document UPDATE TEST SET (ID, NAME) = (SELECT ID*10, NAME || '!' FROM TEST T WHERE T.ID=TEST.ID);
@roadmap_1114_li
#Support 123L syntax as in Java; example: SELECT (2000000000*2)
#Max memory rows / max undo log size: use block count / row size not row count
@roadmap_1115_li
#Implement point-in-time recovery
#Support 123L syntax as in Java; example: SELECT (2000000000*2)
@roadmap_1116_li
#Include the version name in the jar file name
#Implement point-in-time recovery
@roadmap_1117_li
#Optimize ID=? OR ID=?: convert to IN(...)
#Include the version name in the jar file name
@roadmap_1118_li
#LIKE: improved version for larger texts (currently using naive search)
......@@ -7827,13 +7848,19 @@ SQLコマンドがコマンドエリアに表示されます。
@roadmap_1351_li
#Support Oracle ROWID (unique identifier for each row).
@roadmap_1352_h2
#Not Planned
@roadmap_1352_li
#Server mode: Improve performance for batch updates.
@roadmap_1353_li
#Applets: Support read-only databases in a zip file (accessed as a resource).
@roadmap_1354_h2
#Not Planned
@roadmap_1355_li
#HSQLDB (did) support this: select id i from test where i>0 (other databases don't). Supporting it may break compatibility.
@roadmap_1354_li
@roadmap_1356_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
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -136,8 +136,6 @@ public class ConditionAndOr extends Condition {
left = right;
right = t;
}
// TODO optimization: convert ((A=1 AND B=2) OR (A=1 AND B=3)) to
// (A=1 AND (B=2 OR B=3))
// this optimization does not work in the following case,
// but NOT is optimized before:
// CREATE TABLE TEST(A INT, B INT);
......@@ -157,6 +155,9 @@ public class ConditionAndOr extends Condition {
}
}
}
// TODO optimization: convert ((A=1 AND B=2) OR (A=1 AND B=3)) to
// (A=1 AND (B=2 OR B=3))
// TODO optimization: convert .. OR .. to UNION if the cost is lower
Value l = left.isConstant() ? left.getValue(session) : null;
Value r = right.isConstant() ? right.getValue(session) : null;
if (l == null && r == null) {
......
......@@ -402,10 +402,10 @@ CREATE INDEX IDXNAME ON TEST(NAME)
"
"Commands (DDL)","CREATE LINKED TABLE","
CREATE LINKED TABLE [IF NOT EXISTS]
CREATE [[GLOBAL | LOCAL] TEMPORARY] LINKED TABLE [IF NOT EXISTS]
name(driverString, urlString,
userString, passwordString, originalTableString)
[EMIT UPDATES]
[EMIT UPDATES | READONLY]
","
Creates a table link to an external table.
The driver name may be empty if the driver is already loaded.
......@@ -1110,6 +1110,18 @@ This setting can be appended to the database URL: jdbc:h2:test;SCHEMA=ABC
SET SCHEMA INFORMATION_SCHEMA
"
"Commands (Other)","SET SCHEMA_SEARCH_PATH","
SET SCHEMA_SEARCH_PATH schemaName [,...]
","
Changes the schema search path of the current connection.
The default schema is used in statements where no schema is set explicitly.
The default schema for new connections is PUBLIC.
This command does not commit a transaction, and rollback does not affect it.
This setting can be appended to the database URL: jdbc:h2:test;SCHEMA_SEARCH_PATH=ABC,DEF
","
SET SCHEMA_SEARCH_PATH INFORMATION_SCHEMA, PUBLIC
"
"Commands (Other)","SET THROTTLE","
SET THROTTLE int
","
......
......@@ -273,47 +273,33 @@ java org.h2.test.TestAll timer
/*
row level locking for mvcc
main methods for the tests and make that work
H2 Console: don't display very large blobs; instead show first view bytes and length
MVCC:
Concurrent update in table test: another transaction has updated or
deleted the same row when exactly does it occur in other databases
(PostgreSQL, Oracle)?
Run benchmark with the newest versions of other databases.
documentation: use 'server mode' not 'remote mode'.
CREATE LINKED TABLE ... READONLY
CREATE FUNCTION? Function interface
main methods for the tests and make that work
Support large updates (use the transaction log to undo).
H2 Console: support single file upload and directory download (optional)
document FTL_SEARCH, FTL_SEARCH_DATA
find quote:
You can't make a system that will not lose data, you can only make
a system that knows the last save point of 100% integrity. There are
too many variables and too much randomness on a cold hard power failure.
JaQu
H2 Console should support Java Queries
row level locking
not tested:
PreparedProcedure PREPARE <name>(column,...) AS ...
Procedure
DeallocateProcedure DEALLOCATE [PLAN] <name>
ExecuteProcedure EXECUTE <name>[([p[,...])]
Concurrent update in table test: another transaction has updated or
deleted the same row when exactly does it occur in other databases
(PostgreSQL, Oracle)?
in help.csv, use complete examples for functions; add a test case
option to write complete page right after checkpoint
test case for out of memory (try to corrupt the database using out of memory)
analyzer configuration option for the fulltext search
optimize where x not in (select):
......
......@@ -65,7 +65,7 @@ public abstract class TestBase {
*
* @return itself
*/
public TestBase init() throws Exception {
public TestBase init() {
baseDir = getTestDir("");
this.config = new TestAll();
return this;
......@@ -121,7 +121,7 @@ public abstract class TestBase {
* @param name the database name
* @return the connection
*/
public Connection getConnection(String name) throws Exception {
public Connection getConnection(String name) throws SQLException {
return getConnectionInternal(getURL(name, true), getUser(), getPassword());
}
......@@ -133,7 +133,7 @@ public abstract class TestBase {
* @param password the password to use
* @return the connection
*/
protected Connection getConnection(String name, String user, String password) throws Exception {
protected Connection getConnection(String name, String user, String password) throws SQLException {
return getConnectionInternal(getURL(name, false), user, password);
}
......@@ -225,8 +225,8 @@ public abstract class TestBase {
return "jdbc:h2:" + url;
}
private Connection getConnectionInternal(String url, String user, String password) throws Exception {
Class.forName("org.h2.Driver");
private Connection getConnectionInternal(String url, String user, String password) throws SQLException {
org.h2.Driver.load();
// url += ";DEFAULT_TABLE_TYPE=1";
// Class.forName("org.hsqldb.jdbcDriver");
// return DriverManager.getConnection("jdbc:hsqldb:" + name, "sa", "");
......@@ -326,9 +326,9 @@ public abstract class TestBase {
/**
* Called if the test reached a point that was not expected.
*
* @throws Exception always throws an exception
* @throws AssertionError always throws an AssertionError
*/
protected void fail() throws Exception {
protected void fail() {
fail("Unexpected success");
}
......@@ -336,11 +336,11 @@ public abstract class TestBase {
* Called if the test reached a point that was not expected.
*
* @param string the error message
* @throws Exception always throws an exception
* @throws AssertionError always throws an AssertionError
*/
protected void fail(String string) throws Exception {
protected void fail(String string) {
println(string);
throw new Exception(string);
throw new AssertionError(string);
}
/**
......@@ -407,7 +407,7 @@ public abstract class TestBase {
*
* @param name the database name
*/
protected void deleteDb(String name) throws Exception {
protected void deleteDb(String name) throws SQLException {
DeleteDbFiles.execute(baseDir, name, true);
}
......@@ -417,14 +417,14 @@ public abstract class TestBase {
* @param dir the directory where the database files are located
* @param name the database name
*/
protected void deleteDb(String dir, String name) throws Exception {
protected void deleteDb(String dir, String name) throws SQLException {
DeleteDbFiles.execute(dir, name, true);
}
/**
* This method will be called by the test framework.
*
* @throws Exception if an exception in the test occurs
* @throws AssertionError if an exception in the test occurs
*/
public abstract void test() throws Exception;
......@@ -434,9 +434,9 @@ public abstract class TestBase {
* @param message the message to print in case of error
* @param expected the expected value
* @param actual the actual value
* @throws Exception if the values are not equal
* @throws AssertionError if the values are not equal
*/
public void assertEquals(String message, int expected, int actual) throws Exception {
public void assertEquals(String message, int expected, int actual) {
if (expected != actual) {
fail("Expected: " + expected + " actual: " + actual + " message: " + message);
}
......@@ -447,9 +447,9 @@ public abstract class TestBase {
*
* @param expected the expected value
* @param actual the actual value
* @throws Exception if the values are not equal
* @throws AssertionError if the values are not equal
*/
public void assertEquals(int expected, int actual) throws Exception {
public void assertEquals(int expected, int actual) {
if (expected != actual) {
fail("Expected: " + expected + " actual: " + actual);
}
......@@ -460,9 +460,9 @@ public abstract class TestBase {
*
* @param expected the expected value
* @param actual the actual value
* @throws Exception if the values are not equal
* @throws AssertionError if the values are not equal
*/
protected void assertEquals(byte[] expected, byte[] actual) throws Exception {
protected void assertEquals(byte[] expected, byte[] actual) {
assertTrue(expected.length == actual.length);
for (int i = 0; i < expected.length; i++) {
if (expected[i] != actual[i]) {
......@@ -476,9 +476,9 @@ public abstract class TestBase {
*
* @param expected the expected value
* @param actual the actual value
* @throws Exception if the values are not equal
* @throws AssertionError if the values are not equal
*/
protected void assertEquals(String expected, String actual) throws Exception {
protected void assertEquals(String expected, String actual) {
if (expected == null && actual == null) {
return;
} else if (expected == null || actual == null) {
......@@ -510,9 +510,9 @@ public abstract class TestBase {
*
* @param a the first value
* @param b the second value (must be smaller than the first value)
* @throws Exception if the first value is smaller
* @throws AssertionError if the first value is smaller
*/
protected void assertSmaller(long a, long b) throws Exception {
protected void assertSmaller(long a, long b) {
if (a >= b) {
fail("a: " + a + " is not smaller than b: " + b);
}
......@@ -523,9 +523,9 @@ public abstract class TestBase {
*
* @param result the result value
* @param contains the term that should appear in the result
* @throws Exception if the term was not found
* @throws AssertionError if the term was not found
*/
protected void assertContains(String result, String contains) throws Exception {
protected void assertContains(String result, String contains) {
if (result.indexOf(contains) < 0) {
fail(result + " does not contain: " + contains);
}
......@@ -536,9 +536,9 @@ public abstract class TestBase {
*
* @param text the text
* @param expectedStart the expected prefix
* @throws Exception if the text does not start with the expected characters
* @throws AssertionError if the text does not start with the expected characters
*/
protected void assertStartsWith(String text, String expectedStart) throws Exception {
protected void assertStartsWith(String text, String expectedStart) {
if (!text.startsWith(expectedStart)) {
fail(text + " does not start with: " + expectedStart);
}
......@@ -549,9 +549,9 @@ public abstract class TestBase {
*
* @param expected the expected value
* @param actual the actual value
* @throws Exception if the values are not equal
* @throws AssertionError if the values are not equal
*/
protected void assertEquals(long expected, long actual) throws Exception {
protected void assertEquals(long expected, long actual) {
if (expected != actual) {
fail("Expected: " + expected + " actual: " + actual);
}
......@@ -562,9 +562,9 @@ public abstract class TestBase {
*
* @param expected the expected value
* @param actual the actual value
* @throws Exception if the values are not equal
* @throws AssertionError if the values are not equal
*/
protected void assertEquals(double expected, double actual) throws Exception {
protected void assertEquals(double expected, double actual) {
if (expected != actual) {
if (Double.isNaN(expected) && Double.isNaN(actual)) {
// if both a NaN, then there is no error
......@@ -579,9 +579,9 @@ public abstract class TestBase {
*
* @param expected the expected value
* @param actual the actual value
* @throws Exception if the values are not equal
* @throws AssertionError if the values are not equal
*/
protected void assertEquals(float expected, float actual) throws Exception {
protected void assertEquals(float expected, float actual) {
if (expected != actual) {
if (Float.isNaN(expected) && Float.isNaN(actual)) {
// if both a NaN, then there is no error
......@@ -596,9 +596,9 @@ public abstract class TestBase {
*
* @param expected the expected value
* @param actual the actual value
* @throws Exception if the values are not equal
* @throws AssertionError if the values are not equal
*/
protected void assertEquals(boolean expected, boolean actual) throws Exception {
protected void assertEquals(boolean expected, boolean actual) {
if (expected != actual) {
fail("Boolean expected: " + expected + " actual: " + actual);
}
......@@ -608,9 +608,9 @@ public abstract class TestBase {
* Check that the passed boolean is true.
*
* @param condition the condition
* @throws Exception if the condition is false
* @throws AssertionError if the condition is false
*/
protected void assertTrue(boolean condition) throws Exception {
protected void assertTrue(boolean condition) {
assertTrue("Expected: true got: false", condition);
}
......@@ -619,9 +619,9 @@ public abstract class TestBase {
*
* @param message the message to print if the condition is false
* @param condition the condition
* @throws Exception if the condition is false
* @throws AssertionError if the condition is false
*/
protected void assertTrue(String message, boolean condition) throws Exception {
protected void assertTrue(String message, boolean condition) {
if (!condition) {
fail(message);
}
......@@ -631,9 +631,9 @@ public abstract class TestBase {
* Check that the passed boolean is false.
*
* @param value the condition
* @throws Exception if the condition is true
* @throws AssertionError if the condition is true
*/
protected void assertFalse(boolean value) throws Exception {
protected void assertFalse(boolean value) {
assertFalse("Expected: false got: true", value);
}
......@@ -642,9 +642,9 @@ public abstract class TestBase {
*
* @param message the message to print if the condition is false
* @param value the condition
* @throws Exception if the condition is true
* @throws AssertionError if the condition is true
*/
protected void assertFalse(String message, boolean value) throws Exception {
protected void assertFalse(String message, boolean value) {
if (value) {
fail(message);
}
......@@ -655,9 +655,9 @@ public abstract class TestBase {
*
* @param rs the result set
* @param expected the number of expected rows
* @throws Exception if a different number of rows have been found
* @throws AssertionError if a different number of rows have been found
*/
protected void assertResultRowCount(ResultSet rs, int expected) throws Exception {
protected void assertResultRowCount(ResultSet rs, int expected) throws SQLException {
int i = 0;
while (rs.next()) {
i++;
......@@ -671,9 +671,9 @@ public abstract class TestBase {
* @param stat the statement
* @param sql the SQL statement to execute
* @param expected the expected result value
* @throws Exception if a different result value was returned
* @throws AssertionError if a different result value was returned
*/
protected void assertSingleValue(Statement stat, String sql, int expected) throws Exception {
protected void assertSingleValue(Statement stat, String sql, int expected) throws SQLException {
ResultSet rs = stat.executeQuery(sql);
assertTrue(rs.next());
assertEquals(expected, rs.getInt(1));
......@@ -686,9 +686,9 @@ public abstract class TestBase {
* @param stat the statement
* @param sql the SQL statement to execute
* @param expected the expected result value
* @throws Exception if a different result value was returned
* @throws AssertionError if a different result value was returned
*/
protected void assertResult(Statement stat, String sql, String expected) throws Exception {
protected void assertResult(Statement stat, String sql, String expected) throws SQLException {
ResultSet rs = stat.executeQuery(sql);
if (rs.next()) {
String actual = rs.getString(1);
......@@ -709,7 +709,7 @@ public abstract class TestBase {
* @param scale the expected scales
*/
protected void assertResultSetMeta(ResultSet rs, int columnCount, String[] labels, int[] datatypes, int[] precision,
int[] scale) throws Exception {
int[] scale) throws SQLException {
ResultSetMetaData meta = rs.getMetaData();
int cc = meta.getColumnCount();
if (cc != columnCount) {
......@@ -776,9 +776,9 @@ public abstract class TestBase {
*
* @param rs the result set
* @param data the expected data
* @throws Exception if there is a mismatch
* @throws AssertionError if there is a mismatch
*/
protected void assertResultSetOrdered(ResultSet rs, String[][] data) throws Exception {
protected void assertResultSetOrdered(ResultSet rs, String[][] data) throws SQLException {
assertResultSet(true, rs, data);
}
......@@ -788,10 +788,9 @@ public abstract class TestBase {
*
* @param rs the result set
* @param data the expected data
* @throws Exception if there is a mismatch
* @throws AssertionError if there is a mismatch
*/
// void assertResultSetUnordered(ResultSet rs, String[][] data)
// throws Exception {
// void assertResultSetUnordered(ResultSet rs, String[][] data) {
// assertResultSet(false, rs, data);
// }
......@@ -801,9 +800,9 @@ public abstract class TestBase {
* @param ordered if the sort order is significant
* @param rs the result set
* @param data the expected data
* @throws Exception if there is a mismatch
* @throws AssertionError if there is a mismatch
*/
private void assertResultSet(boolean ordered, ResultSet rs, String[][] data) throws Exception {
private void assertResultSet(boolean ordered, ResultSet rs, String[][] data) throws SQLException {
int len = rs.getMetaData().getColumnCount();
int rows = data.length;
if (rows == 0) {
......@@ -888,7 +887,7 @@ public abstract class TestBase {
*
* @param conn the database connection
*/
protected void crash(Connection conn) throws Exception {
protected void crash(Connection conn) throws SQLException {
((JdbcConnection) conn).setPowerOffCount(1);
try {
conn.createStatement().execute("SET WRITE_DELAY 0");
......@@ -910,7 +909,7 @@ public abstract class TestBase {
* @param reader the reader
* @return the string read
*/
protected String readString(Reader reader) throws Exception {
protected String readString(Reader reader) {
if (reader == null) {
return null;
}
......@@ -936,7 +935,7 @@ public abstract class TestBase {
*
* @param e the error
*/
protected void assertKnownException(SQLException e) throws Exception {
protected void assertKnownException(SQLException e) {
assertKnownException("", e);
}
......@@ -947,7 +946,7 @@ public abstract class TestBase {
* @param message the message
* @param e the exception
*/
protected void assertKnownException(String message, SQLException e) throws Exception {
protected void assertKnownException(String message, SQLException e) {
if (e != null && e.getSQLState().startsWith("HY000")) {
TestBase.logError("Unexpected General error " + message, e);
}
......@@ -958,9 +957,9 @@ public abstract class TestBase {
*
* @param expected the expected value
* @param actual the actual value
* @throws Exception if the values are not equal
* @throws AssertionError if the values are not equal
*/
protected void assertEquals(Integer expected, Integer actual) throws Exception {
protected void assertEquals(Integer expected, Integer actual) {
if (expected == null || actual == null) {
assertTrue(expected == actual);
} else {
......@@ -973,9 +972,9 @@ public abstract class TestBase {
*
* @param stat1 the connection to the first database
* @param stat2 the connection to the second database
* @throws Exception if the database don't match
* @throws AssertionError if the databases don't match
*/
protected void assertEqualDatabases(Statement stat1, Statement stat2) throws Exception {
protected void assertEqualDatabases(Statement stat1, Statement stat2) throws SQLException {
ResultSet rs1 = stat1.executeQuery("SCRIPT NOPASSWORDS");
ResultSet rs2 = stat2.executeQuery("SCRIPT NOPASSWORDS");
ArrayList list1 = new ArrayList();
......
......@@ -24,6 +24,7 @@ public class TestLinkedTable extends TestBase {
public void test() throws Exception {
// testLinkAutoAdd();
testReadOnlyLinkedTable();
testLinkOtherSchema();
testLinkDrop();
testLinkSchema();
......@@ -51,6 +52,40 @@ public class TestLinkedTable extends TestBase {
// ca.close();
// cb.close();
// }
private void testReadOnlyLinkedTable() throws Exception {
Class.forName("org.h2.Driver");
Connection ca = DriverManager.getConnection("jdbc:h2:mem:one", "sa", "sa");
Connection cb = DriverManager.getConnection("jdbc:h2:mem:two", "sa", "sa");
Statement sa = ca.createStatement();
Statement sb = cb.createStatement();
sa.execute("CREATE TABLE TEST(ID INT)");
sa.execute("INSERT INTO TEST VALUES(1)");
String[] suffix = new String[]{"", "READONLY", "EMIT UPDATES"};
for (int i = 0; i < suffix.length; i++) {
String sql = "CREATE LINKED TABLE T(NULL, 'jdbc:h2:mem:one', 'sa', 'sa', 'TEST')" + suffix[i];
sb.execute(sql);
sb.executeQuery("SELECT * FROM T");
String[] update = new String[]{"DELETE FROM T", "INSERT INTO T VALUES(2)", "UPDATE T SET ID = 3"};
for (int j = 0; j < update.length; j++) {
try {
sb.execute(update[j]);
if (i == 1) {
fail();
}
} catch (SQLException e) {
if (i == 1) {
assertKnownException(e);
} else {
throw e;
}
}
}
sb.execute("DROP TABLE T");
}
ca.close();
cb.close();
}
private void testLinkOtherSchema() throws Exception {
Class.forName("org.h2.Driver");
......
......@@ -210,8 +210,11 @@ public class TestOptimizations extends TestBase {
deleteDb("optimizations");
Connection conn = getConnection("optimizations");
Statement stat = conn.createStatement();
testQuerySpeed(stat,
"select sum(x) from system_range(1, 10000) a where a.x in (select b.x from system_range(1, 30) b)");
// if h2.optimizeInJoin is enabled, the following query can not be improved
if (!SysProperties.optimizeInJoin) {
testQuerySpeed(stat,
"select sum(x) from system_range(1, 10000) a where a.x in (select b.x from system_range(1, 30) b)");
}
testQuerySpeed(stat,
"select sum(a.n), sum(b.x) from system_range(1, 100) b, (select sum(x) n from system_range(1, 4000)) a");
conn.close();
......
......@@ -9,6 +9,7 @@ package org.h2.test.db;
import java.io.File;
import java.io.RandomAccessFile;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
......@@ -26,14 +27,41 @@ public class TestReadOnly extends TestBase {
if (config.memory) {
return;
}
testReadOnlyDbCreate();
testReadOnlyFiles(true);
if (!config.deleteIndex) {
testReadOnlyFiles(false);
}
}
private void testReadOnlyDbCreate() throws Exception {
if (config.deleteIndex) {
return;
}
deleteDb("readonly");
Connection conn = getConnection("readonly");
conn.close();
conn = getConnection("readonly;ACCESS_MODE_LOG=r;ACCESS_MODE_DATA=r");
Statement stat = conn.createStatement();
try {
stat.execute("CREATE TABLE TEST(ID INT)");
fail();
} catch (SQLException e) {
assertKnownException(e);
}
try {
stat.execute("SELECT * FROM TEST");
fail();
} catch (SQLException e) {
assertKnownException(e);
}
stat.execute("create local temporary linked table test(null, 'jdbc:h2:mem:test3', 'sa', 'sa', 'INFORMATION_SCHEMA.TABLES')");
ResultSet rs = stat.executeQuery("select * from test");
assertTrue(rs.next());
conn.close();
}
private void testReadOnlyFiles(boolean setReadOnly) throws Exception {
File f = File.createTempFile("test", "temp");
assertTrue(f.canWrite());
f.setReadOnly();
......
......@@ -19,6 +19,9 @@ import org.h2.test.TestBase;
public class TestSessionsLocks extends TestBase {
public void test() throws Exception {
if (config.mvcc) {
return;
}
testCancelStatement();
testLocks();
}
......
......@@ -18,6 +18,36 @@ import org.h2.test.TestBase;
public class TestView extends TestBase {
public void test() throws Exception {
testUnionReconnect();
testManyViews();
}
private void testUnionReconnect() throws Exception {
if (config.memory) {
return;
}
deleteDb("view");
Connection conn = getConnection("view");
Statement stat = conn.createStatement();
stat.execute("create table t1(k smallint, ts timestamp(6))");
stat.execute("create table t2(k smallint, ts timestamp(6))");
stat.execute("create table t3(k smallint, ts timestamp(6))");
stat.execute("create view v_max_ts as select " +
"max(ts) from (select max(ts) as ts from t1 " +
"union select max(ts) as ts from t2 " +
"union select max(ts) as ts from t3)");
stat.execute("create view v_test as select max(ts) as ts from t1 " +
"union select max(ts) as ts from t2 " +
"union select max(ts) as ts from t3");
conn.close();
conn = getConnection("view");
stat = conn.createStatement();
stat.execute("select * from v_max_ts");
conn.close();
deleteDb("view");
}
private void testManyViews() throws Exception {
deleteDb("view");
Connection conn = getConnection("view");
Statement s = conn.createStatement();
......
--- special grammar and test cases ---------------------------------------------------------------------------------------------
create schema a;
> ok
set autocommit false;
> ok
set schema a;
> ok
create table t1 ( k int, v varchar(10) );
> ok
insert into t1 values ( 1, 't1' );
> update count: 1
create table t2 ( k int, v varchar(10) );
> ok
insert into t2 values ( 2, 't2' );
> update count: 1
create view v_test(a, b, c, d) as select t1.*, t2.* from t1 join t2 on ( t1.k = t2.k );
> ok
select * from v_test;
> A B C D
> - - - -
> rows: 0
set schema public;
> ok
drop schema a;
> ok
set autocommit true;
> ok
select x/3 as a, count(*) c from system_range(1, 10) group by a having c>2;
> A C
> - -
......@@ -323,8 +361,8 @@ insert into t2 select x from system_range(1, 1000);
explain select count(*) from t1 where t1.id in ( select t2.id from t2 );
> PLAN
> --------------------------------------------------------------------------------------------------------------------------------
> SELECT COUNT(*) FROM PUBLIC.T1 /* PUBLIC.T1_TABLE_SCAN */ WHERE T1.ID IN(SELECT T2.ID FROM PUBLIC.T2 /* PUBLIC.T2_TABLE_SCAN */)
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> SELECT COUNT(*) FROM PUBLIC.T1 /* PUBLIC.T1_TABLE_SCAN */ /* WHERE TRUE */ INNER JOIN (SELECT DISTINCT T2.ID AS TEMP_VIEW_2_X FROM PUBLIC.T2 /* PUBLIC.T2_TABLE_SCAN */) TEMP_VIEW_3 /* SELECT DISTINCT T2.ID AS TEMP_VIEW_2_X FROM PUBLIC.T2 /++ PUBLIC.PRIMARY_KEY_A5: ID = ?1 ++/ WHERE T2.ID = ?1: TEMP_VIEW_2_X = T1.ID */ ON T1.ID = TEMP_VIEW_3.TEMP_VIEW_2_X WHERE TRUE
> rows: 1
select count(*) from t1 where t1.id in ( select t2.id from t2 );
......@@ -770,8 +808,8 @@ insert into test values(1), (2), (3);
explain select * from test where id in(1, 2, null);
> PLAN
> -------------------------------------------------------------------------------------------------------
> SELECT TEST.ID FROM PUBLIC.TEST /* PUBLIC.PRIMARY_KEY_2: ID >= 1 AND ID <= 2 */ WHERE ID IN(1, 2, NULL)
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> SELECT TEST.ID FROM TABLE_DISTINCT(TEMP_VIEW_20_X INTEGER=(1, 2, NULL)) TEMP_VIEW_21 /* PUBLIC."" */ INNER JOIN PUBLIC.TEST /* PUBLIC.PRIMARY_KEY_2: ID >= 1 AND ID <= 2 AND ID = TEMP_VIEW_21.TEMP_VIEW_20_X */ ON 1=1 WHERE (ID IN(1, 2, NULL)) AND (ID = TEMP_VIEW_21.TEMP_VIEW_20_X)
> rows: 1
drop table test;
......@@ -2491,8 +2529,8 @@ select * from test t1 where id in(id);
explain select * from test t1 where id in(select id from test);
> PLAN
> -------------------------------------------------------------------------------------------------------------------------------------------
> SELECT T1.ID, T1.NAME FROM PUBLIC.TEST T1 /* PUBLIC.TEST_TABLE_SCAN */ WHERE ID IN(SELECT ID FROM PUBLIC.TEST /* PUBLIC.TEST_TABLE_SCAN */)
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> SELECT T1.ID, T1.NAME FROM PUBLIC.TEST T1 /* PUBLIC.TEST_TABLE_SCAN */ /* WHERE TRUE */ INNER JOIN (SELECT DISTINCT ID AS TEMP_VIEW_70_X FROM PUBLIC.TEST /* PUBLIC.TEST_TABLE_SCAN */) TEMP_VIEW_71 /* SELECT DISTINCT ID AS TEMP_VIEW_70_X FROM PUBLIC.TEST /++ PUBLIC.PRIMARY_KEY_2: ID = ?1 ++/ WHERE ID = ?1: TEMP_VIEW_70_X = ID */ ON ID = TEMP_VIEW_71.TEMP_VIEW_70_X WHERE TRUE
> rows: 1
select * from test t1 where id in(select id from test);
......@@ -2504,8 +2542,8 @@ select * from test t1 where id in(select id from test);
explain select * from test t1 where id in(1, select max(id) from test);
> PLAN
> -----------------------------------------------------------------------------------------------------------
> SELECT T1.ID, T1.NAME FROM PUBLIC.TEST T1 /* PUBLIC.PRIMARY_KEY_2: ID >= 1 AND ID <= 2 */ WHERE ID IN(1, 2)
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> SELECT T1.ID, T1.NAME FROM TABLE_DISTINCT(TEMP_VIEW_78_X INTEGER=(1, 2)) TEMP_VIEW_79 /* PUBLIC."" */ INNER JOIN PUBLIC.TEST T1 /* PUBLIC.PRIMARY_KEY_2: ID >= 1 AND ID <= 2 AND ID = TEMP_VIEW_79.TEMP_VIEW_78_X */ ON 1=1 WHERE (ID IN(1, 2)) AND (ID = TEMP_VIEW_79.TEMP_VIEW_78_X)
> rows: 1
select * from test t1 where id in(1, select max(id) from test);
......@@ -5127,8 +5165,8 @@ SELECT * FROM (SELECT ID FROM TEST GROUP BY ID);
EXPLAIN SELECT * FROM TEST UNION ALL SELECT * FROM TEST ORDER BY ID LIMIT 2+0 OFFSET 1+0;
> PLAN
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> (SELECT TEST.ID, TEST.NAME FROM PUBLIC.TEST /* PUBLIC.TEST_TABLE_SCAN */) UNION ALL (SELECT TEST.ID, TEST.NAME FROM PUBLIC.TEST /* PUBLIC.TEST_TABLE_SCAN */) ORDER BY 1 LIMIT 2 OFFSET 1
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> SELECT TEST.ID, TEST.NAME FROM PUBLIC.TEST /* PUBLIC.TEST_TABLE_SCAN */ UNION ALL (SELECT TEST.ID, TEST.NAME FROM PUBLIC.TEST /* PUBLIC.TEST_TABLE_SCAN */) ORDER BY 1 LIMIT 2 OFFSET 1
> rows (ordered): 1
EXPLAIN DELETE FROM TEST WHERE ID=1;
......@@ -5407,14 +5445,14 @@ EXPLAIN PLAN FOR SELECT * FROM TEST T1 WHERE EXISTS(SELECT * FROM TEST T2 WHERE
EXPLAIN PLAN FOR SELECT * FROM TEST T1 WHERE ID IN(1, 2);
> PLAN
> -----------------------------------------------------------------------------------------------------------
> SELECT T1.ID, T1.NAME FROM PUBLIC.TEST T1 /* PUBLIC.PRIMARY_KEY_2: ID >= 1 AND ID <= 2 */ WHERE ID IN(1, 2)
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> SELECT T1.ID, T1.NAME FROM TABLE_DISTINCT(TEMP_VIEW_115_X INTEGER=(1, 2)) TEMP_VIEW_116 /* PUBLIC."" */ INNER JOIN PUBLIC.TEST T1 /* PUBLIC.PRIMARY_KEY_2: ID >= 1 AND ID <= 2 AND ID = TEMP_VIEW_116.TEMP_VIEW_115_X */ ON 1=1 WHERE (ID IN(1, 2)) AND (ID = TEMP_VIEW_116.TEMP_VIEW_115_X)
> rows: 1
EXPLAIN PLAN FOR SELECT * FROM TEST T1 WHERE ID IN(SELECT ID FROM TEST);
> PLAN
> -------------------------------------------------------------------------------------------------------------------------------------------
> SELECT T1.ID, T1.NAME FROM PUBLIC.TEST T1 /* PUBLIC.TEST_TABLE_SCAN */ WHERE ID IN(SELECT ID FROM PUBLIC.TEST /* PUBLIC.TEST_TABLE_SCAN */)
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> SELECT T1.ID, T1.NAME FROM PUBLIC.TEST T1 /* PUBLIC.TEST_TABLE_SCAN */ /* WHERE TRUE */ INNER JOIN (SELECT DISTINCT ID AS TEMP_VIEW_119_X FROM PUBLIC.TEST /* PUBLIC.TEST_TABLE_SCAN */) TEMP_VIEW_120 /* SELECT DISTINCT ID AS TEMP_VIEW_119_X FROM PUBLIC.TEST /++ PUBLIC.PRIMARY_KEY_2: ID = ?1 ++/ WHERE ID = ?1: TEMP_VIEW_119_X = ID */ ON ID = TEMP_VIEW_120.TEMP_VIEW_119_X WHERE TRUE
> rows: 1
EXPLAIN PLAN FOR SELECT * FROM TEST T1 WHERE ID NOT IN(SELECT ID FROM TEST);
......@@ -5474,8 +5512,8 @@ SELECT * FROM SYSTEM_RANGE(1,2) UNION ALL SELECT * FROM SYSTEM_RANGE(1,2) ORDER
EXPLAIN (SELECT * FROM SYSTEM_RANGE(1,2) UNION ALL SELECT * FROM SYSTEM_RANGE(1,2) ORDER BY 1);
> PLAN
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
> (SELECT SYSTEM_RANGE.X FROM SYSTEM_RANGE(1, 2) /* PUBLIC.RANGE_INDEX */) UNION ALL (SELECT SYSTEM_RANGE.X FROM SYSTEM_RANGE(1, 2) /* PUBLIC.RANGE_INDEX */) ORDER BY 1
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------
> SELECT SYSTEM_RANGE.X FROM SYSTEM_RANGE(1, 2) /* PUBLIC.RANGE_INDEX */ UNION ALL (SELECT SYSTEM_RANGE.X FROM SYSTEM_RANGE(1, 2) /* PUBLIC.RANGE_INDEX */) ORDER BY 1
> rows (ordered): 1
CREATE TABLE CHILDREN(ID INT PRIMARY KEY, NAME VARCHAR(255), CLASS INT);
......@@ -5518,8 +5556,8 @@ SELECT * FROM CHILDREN UNION ALL SELECT * FROM CHILDREN ORDER BY ID, NAME FOR UP
EXPLAIN SELECT * FROM CHILDREN UNION ALL SELECT * FROM CHILDREN ORDER BY ID, NAME FOR UPDATE;
> PLAN
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> (SELECT CHILDREN.ID, CHILDREN.NAME, CHILDREN.CLASS FROM PUBLIC.CHILDREN /* PUBLIC.CHILDREN_TABLE_SCAN */ FOR UPDATE) UNION ALL (SELECT CHILDREN.ID, CHILDREN.NAME, CHILDREN.CLASS FROM PUBLIC.CHILDREN /* PUBLIC.CHILDREN_TABLE_SCAN */ FOR UPDATE) ORDER BY 1, 2 FOR UPDATE
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> SELECT CHILDREN.ID, CHILDREN.NAME, CHILDREN.CLASS FROM PUBLIC.CHILDREN /* PUBLIC.CHILDREN_TABLE_SCAN */ FOR UPDATE UNION ALL (SELECT CHILDREN.ID, CHILDREN.NAME, CHILDREN.CLASS FROM PUBLIC.CHILDREN /* PUBLIC.CHILDREN_TABLE_SCAN */ FOR UPDATE) ORDER BY 1, 2 FOR UPDATE
> rows (ordered): 1
SELECT 'Child', ID, NAME FROM CHILDREN UNION SELECT 'Class', ID, NAME FROM CLASSES;
......@@ -5538,8 +5576,8 @@ SELECT 'Child', ID, NAME FROM CHILDREN UNION SELECT 'Class', ID, NAME FROM CLASS
EXPLAIN SELECT 'Child', ID, NAME FROM CHILDREN UNION SELECT 'Class', ID, NAME FROM CLASSES;
> PLAN
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
> (SELECT 'Child', ID, NAME FROM PUBLIC.CHILDREN /* PUBLIC.CHILDREN_TABLE_SCAN */) UNION (SELECT 'Class', ID, NAME FROM PUBLIC.CLASSES /* PUBLIC.CLASSES_TABLE_SCAN */)
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------
> SELECT 'Child', ID, NAME FROM PUBLIC.CHILDREN /* PUBLIC.CHILDREN_TABLE_SCAN */ UNION (SELECT 'Class', ID, NAME FROM PUBLIC.CLASSES /* PUBLIC.CLASSES_TABLE_SCAN */)
> rows: 1
SELECT * FROM CHILDREN EXCEPT SELECT * FROM CHILDREN WHERE CLASS=0;
......@@ -5552,14 +5590,14 @@ SELECT * FROM CHILDREN EXCEPT SELECT * FROM CHILDREN WHERE CLASS=0;
EXPLAIN SELECT * FROM CHILDREN EXCEPT SELECT * FROM CHILDREN WHERE CLASS=0;
> PLAN
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> (SELECT CHILDREN.ID, CHILDREN.NAME, CHILDREN.CLASS FROM PUBLIC.CHILDREN /* PUBLIC.CHILDREN_TABLE_SCAN */) EXCEPT (SELECT CHILDREN.ID, CHILDREN.NAME, CHILDREN.CLASS FROM PUBLIC.CHILDREN /* PUBLIC.CHILDREN_TABLE_SCAN */ WHERE CLASS = 0)
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> SELECT CHILDREN.ID, CHILDREN.NAME, CHILDREN.CLASS FROM PUBLIC.CHILDREN /* PUBLIC.CHILDREN_TABLE_SCAN */ EXCEPT (SELECT CHILDREN.ID, CHILDREN.NAME, CHILDREN.CLASS FROM PUBLIC.CHILDREN /* PUBLIC.CHILDREN_TABLE_SCAN */ WHERE CLASS = 0)
> rows: 1
EXPLAIN SELECT CLASS FROM CHILDREN INTERSECT SELECT ID FROM CLASSES;
> PLAN
> ----------------------------------------------------------------------------------------------------------------------------------------------
> (SELECT CLASS FROM PUBLIC.CHILDREN /* PUBLIC.CHILDREN_TABLE_SCAN */) INTERSECT (SELECT ID FROM PUBLIC.CLASSES /* PUBLIC.CLASSES_TABLE_SCAN */)
> --------------------------------------------------------------------------------------------------------------------------------------------
> SELECT CLASS FROM PUBLIC.CHILDREN /* PUBLIC.CHILDREN_TABLE_SCAN */ INTERSECT (SELECT ID FROM PUBLIC.CLASSES /* PUBLIC.CLASSES_TABLE_SCAN */)
> rows: 1
SELECT CLASS FROM CHILDREN INTERSECT SELECT ID FROM CLASSES;
......@@ -5572,8 +5610,8 @@ SELECT CLASS FROM CHILDREN INTERSECT SELECT ID FROM CLASSES;
EXPLAIN SELECT * FROM CHILDREN EXCEPT SELECT * FROM CHILDREN WHERE CLASS=0;
> PLAN
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> (SELECT CHILDREN.ID, CHILDREN.NAME, CHILDREN.CLASS FROM PUBLIC.CHILDREN /* PUBLIC.CHILDREN_TABLE_SCAN */) EXCEPT (SELECT CHILDREN.ID, CHILDREN.NAME, CHILDREN.CLASS FROM PUBLIC.CHILDREN /* PUBLIC.CHILDREN_TABLE_SCAN */ WHERE CLASS = 0)
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> SELECT CHILDREN.ID, CHILDREN.NAME, CHILDREN.CLASS FROM PUBLIC.CHILDREN /* PUBLIC.CHILDREN_TABLE_SCAN */ EXCEPT (SELECT CHILDREN.ID, CHILDREN.NAME, CHILDREN.CLASS FROM PUBLIC.CHILDREN /* PUBLIC.CHILDREN_TABLE_SCAN */ WHERE CLASS = 0)
> rows: 1
SELECT * FROM CHILDREN CH, CLASSES CL WHERE CH.CLASS = CL.ID;
......@@ -5663,8 +5701,8 @@ SELECT * FROM V_UNION WHERE ID=1;
EXPLAIN SELECT * FROM V_UNION WHERE ID=1;
> PLAN
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> SELECT V_UNION.ID, V_UNION.NAME, V_UNION.CLASS FROM PUBLIC.V_UNION /* (SELECT CHILDREN.ID, CHILDREN.NAME, CHILDREN.CLASS FROM PUBLIC.CHILDREN /++ PUBLIC.PRIMARY_KEY_9: ID = ?1 ++/ WHERE CHILDREN.ID = ?1) UNION ALL (SELECT CHILDREN.ID, CHILDREN.NAME, CHILDREN.CLASS FROM PUBLIC.CHILDREN /++ PUBLIC.PRIMARY_KEY_9: ID = ?1 ++/ WHERE CHILDREN.ID = ?1): ID = 1 */ WHERE ID = 1
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> SELECT V_UNION.ID, V_UNION.NAME, V_UNION.CLASS FROM PUBLIC.V_UNION /* SELECT CHILDREN.ID, CHILDREN.NAME, CHILDREN.CLASS FROM PUBLIC.CHILDREN /++ PUBLIC.PRIMARY_KEY_9: ID = ?1 ++/ WHERE CHILDREN.ID = ?1 UNION ALL (SELECT CHILDREN.ID, CHILDREN.NAME, CHILDREN.CLASS FROM PUBLIC.CHILDREN /++ PUBLIC.PRIMARY_KEY_9: ID = ?1 ++/ WHERE CHILDREN.ID = ?1): ID = 1 */ WHERE ID = 1
> rows: 1
CREATE VIEW V_EXCEPT AS SELECT * FROM CHILDREN EXCEPT SELECT * FROM CHILDREN WHERE ID=2;
......@@ -5678,8 +5716,8 @@ SELECT * FROM V_EXCEPT WHERE ID=1;
EXPLAIN SELECT * FROM V_EXCEPT WHERE ID=1;
> PLAN
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> SELECT V_EXCEPT.ID, V_EXCEPT.NAME, V_EXCEPT.CLASS FROM PUBLIC.V_EXCEPT /* (SELECT CHILDREN.ID, CHILDREN.NAME, CHILDREN.CLASS FROM PUBLIC.CHILDREN /++ PUBLIC.PRIMARY_KEY_9: ID = ?1 ++/ WHERE CHILDREN.ID = ?1) EXCEPT (SELECT CHILDREN.ID, CHILDREN.NAME, CHILDREN.CLASS FROM PUBLIC.CHILDREN /++ PUBLIC.PRIMARY_KEY_9: ID = 2 ++/ WHERE ID = 2): ID = 1 */ WHERE ID = 1
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> SELECT V_EXCEPT.ID, V_EXCEPT.NAME, V_EXCEPT.CLASS FROM PUBLIC.V_EXCEPT /* SELECT CHILDREN.ID, CHILDREN.NAME, CHILDREN.CLASS FROM PUBLIC.CHILDREN /++ PUBLIC.PRIMARY_KEY_9: ID = ?1 ++/ WHERE CHILDREN.ID = ?1 EXCEPT (SELECT CHILDREN.ID, CHILDREN.NAME, CHILDREN.CLASS FROM PUBLIC.CHILDREN /++ PUBLIC.PRIMARY_KEY_9: ID = 2 ++/ WHERE ID = 2): ID = 1 */ WHERE ID = 1
> rows: 1
CREATE VIEW V_INTERSECT AS SELECT ID, NAME FROM CHILDREN INTERSECT SELECT * FROM CLASSES;
......@@ -5692,8 +5730,8 @@ SELECT * FROM V_INTERSECT WHERE ID=1;
EXPLAIN SELECT * FROM V_INTERSECT WHERE ID=1;
> PLAN
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> SELECT V_INTERSECT.ID, V_INTERSECT.NAME FROM PUBLIC.V_INTERSECT /* (SELECT ID, NAME FROM PUBLIC.CHILDREN /++ PUBLIC.PRIMARY_KEY_9: ID = ?1 ++/ WHERE ID = ?1) INTERSECT (SELECT CLASSES.ID, CLASSES.NAME FROM PUBLIC.CLASSES /++ PUBLIC.PRIMARY_KEY_5: ID = ?1 ++/ WHERE CLASSES.ID = ?1): ID = 1 */ WHERE ID = 1
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> SELECT V_INTERSECT.ID, V_INTERSECT.NAME FROM PUBLIC.V_INTERSECT /* SELECT ID, NAME FROM PUBLIC.CHILDREN /++ PUBLIC.PRIMARY_KEY_9: ID = ?1 ++/ WHERE ID = ?1 INTERSECT (SELECT CLASSES.ID, CLASSES.NAME FROM PUBLIC.CLASSES /++ PUBLIC.PRIMARY_KEY_5: ID = ?1 ++/ WHERE CLASSES.ID = ?1): ID = 1 */ WHERE ID = 1
> rows: 1
DROP VIEW V_UNION;
......
......@@ -17,12 +17,12 @@ import org.h2.util.BitField;
*/
public class TestBitField extends TestBase {
public void test() throws Exception {
public void test() {
testRandom();
testGetSet();
}
private void testRandom() throws Exception {
private void testRandom() {
BitField bits = new BitField();
BitSet set = new BitSet();
int max = 300;
......@@ -46,26 +46,26 @@ public class TestBitField extends TestBase {
}
}
private void testGetSet() throws Exception {
private void testGetSet() {
BitField bits = new BitField();
for (int i = 0; i < 10000; i++) {
bits.set(i);
if (!bits.get(i)) {
throw new Exception("not set: " + i);
fail("not set: " + i);
}
if (bits.get(i + 1)) {
throw new Exception("set: " + i);
fail("set: " + i);
}
}
for (int i = 0; i < 10000; i++) {
if (!bits.get(i)) {
throw new Exception("not set: " + i);
fail("not set: " + i);
}
}
for (int i = 0; i < 1000; i++) {
int k = bits.nextClearBit(0);
if (k != 10000) {
throw new Exception("" + k);
fail("" + k);
}
}
}
......
......@@ -8,6 +8,7 @@ package org.h2.test.unit;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Random;
......@@ -18,7 +19,7 @@ import org.h2.test.TestBase;
*/
public class TestCache extends TestBase {
public void test() throws Exception {
public void test() throws SQLException {
if (config.memory) {
return;
}
......
......@@ -6,6 +6,7 @@
*/
package org.h2.test.unit;
import java.sql.SQLException;
import java.util.Random;
import org.h2.test.TestBase;
......@@ -16,7 +17,7 @@ import org.h2.tools.CompressTool;
*/
public class TestCompress extends TestBase {
public void test() throws Exception {
public void test() throws SQLException {
if (config.big) {
for (int i = 0; i < 100; i++) {
test(i);
......@@ -33,7 +34,7 @@ public class TestCompress extends TestBase {
}
}
private void test(int len) throws Exception {
private void test(int len) throws SQLException {
Random r = new Random(len);
for (int pattern = 0; pattern < 4; pattern++) {
byte[] buff = new byte[len];
......
......@@ -28,13 +28,13 @@ public class TestDataPage extends TestBase implements DataHandler {
boolean text;
public void test() throws Exception {
public void test() throws SQLException {
testAll();
text = true;
testAll();
}
private void testAll() throws Exception {
private void testAll() throws SQLException {
DataPage page = DataPage.create(this, 128);
char[] data = new char[0x10000];
......
......@@ -21,7 +21,7 @@ import org.h2.value.Value;
*/
public class TestDate extends TestBase {
public void test() throws Exception {
public void test() throws SQLException {
for (int year = 1970; year < 2070; year++) {
for (int month = 1; month <= 12; month++) {
for (int day = 1; day < 29; day++) {
......
......@@ -14,6 +14,7 @@ import java.io.RandomAccessFile;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Random;
......@@ -37,8 +38,8 @@ public class TestFileSystem extends TestBase {
testUserHome();
}
private void testDatabaseInMemFileSys() throws Exception {
Class.forName("org.h2.Driver");
private void testDatabaseInMemFileSys() throws SQLException {
org.h2.Driver.load();
String url = "jdbc:h2:" + baseDir + "/fsMem";
Connection conn = DriverManager.getConnection(url, "sa", "sa");
conn.createStatement().execute("CREATE TABLE TEST AS SELECT * FROM DUAL");
......@@ -51,11 +52,11 @@ public class TestFileSystem extends TestBase {
conn.close();
}
private void testDatabaseInJar() throws Exception {
private void testDatabaseInJar() throws SQLException {
if (config.networked) {
return;
}
Class.forName("org.h2.Driver");
org.h2.Driver.load();
String url = "jdbc:h2:" + baseDir + "/fsJar";
Connection conn = DriverManager.getConnection(url, "sa", "sa");
Statement stat = conn.createStatement();
......@@ -99,7 +100,7 @@ public class TestFileSystem extends TestBase {
conn.close();
}
private void testUserHome() throws Exception {
private void testUserHome() throws SQLException {
FileSystem fs = FileSystem.getInstance("~/test");
String fileName = fs.getAbsolutePath("~/test");
String userDir = System.getProperty("user.home");
......
......@@ -16,11 +16,11 @@ import org.h2.util.IntArray;
*/
public class TestIntArray extends TestBase {
public void test() throws Exception {
public void test() {
testRandom();
}
private void testRandom() throws Exception {
private void testRandom() {
IntArray array = new IntArray();
int[] test = new int[0];
Random random = new Random(1);
......
......@@ -18,13 +18,13 @@ public class TestIntIntHashMap extends TestBase {
private Random rand = new Random();
public void test() throws Exception {
public void test() {
rand.setSeed(10);
test(true);
test(false);
}
private void test(boolean random) throws Exception {
private void test(boolean random) {
int len = 2000;
int[] x = new int[len];
for (int i = 0; i < len; i++) {
......
......@@ -24,7 +24,7 @@ public class TestMultiThreadedKernel extends TestBase implements Runnable {
private volatile boolean stop;
public void test() throws Exception {
if (config.networked) {
if (config.networked || config.mvcc) {
return;
}
deleteDb("multiThreadedKernel");
......
......@@ -27,14 +27,14 @@ public class TestOverflow extends TestBase {
private BigInteger min, max;
private boolean successExpected;
public void test() throws Exception {
public void test() throws SQLException {
test(Value.BYTE, Byte.MIN_VALUE, Byte.MAX_VALUE);
test(Value.INT, Integer.MIN_VALUE, Integer.MAX_VALUE);
test(Value.LONG, Long.MIN_VALUE, Long.MAX_VALUE);
test(Value.SHORT, Short.MIN_VALUE, Short.MAX_VALUE);
}
private void test(int type, long min, long max) throws Exception {
private void test(int type, long min, long max) throws SQLException {
values = new ArrayList();
this.type = type;
this.min = new BigInteger("" + min);
......@@ -63,25 +63,25 @@ public class TestOverflow extends TestBase {
}
}
private void checkIfExpected(String a, String b) throws Exception {
private void checkIfExpected(String a, String b) {
if (successExpected) {
assertEquals(a, b);
}
}
private void onSuccess() throws Exception {
private void onSuccess() {
if (!successExpected && SysProperties.OVERFLOW_EXCEPTIONS) {
fail();
}
}
private void onError() throws Exception {
private void onError() {
if (successExpected) {
fail();
}
}
private void testValues(Value va, Value vb) throws Exception {
private void testValues(Value va, Value vb) throws SQLException {
BigInteger a = new BigInteger(va.getString());
BigInteger b = new BigInteger(vb.getString());
successExpected = inRange(a.negate());
......
......@@ -48,7 +48,7 @@ buffer buffered buffering buffers bug bugdatabase bugfixes bugs build builder
building builds built bulk bull bundle bungisoft business busy but button bxor
bye byte bytea bytes bzip cache cached caching cafe cal calculate calculated
calculates calculating calculation calendar call callable callback called caller
calling calls cally camel can cancel cancelled cancels cannot canonical cap
calling calls cally camel can cancel canceled cancels cannot canonical cap
capabilities capability capacity capone caps capture car cardinality care careful
carriage carrier cars cartesian cascade cascading case cases casesensitive
casewhen casqueiro cast cat catalog catalogs catch catcher catches caucho cause
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论