提交 4441b502 authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 6c4f0cdb
...@@ -1514,6 +1514,9 @@ and % (any characters). The database uses an index when comparing with LIKE ...@@ -1514,6 +1514,9 @@ and % (any characters). The database uses an index when comparing with LIKE
except if the operand starts with a wildcard. To search for the characters % and except if the operand starts with a wildcard. To search for the characters % and
_, the characters need to be escaped. The default escape character is \ (backslash). _, the characters need to be escaped. The default escape character is \ (backslash).
To select no escape character, use ESCAPE '' (empty string). To select no escape character, use ESCAPE '' (empty string).
At most one escape character is allowed.
Each character that follows the escape character in the pattern needs to match exactly.
Patterns that end with an escape character are invalid and the expression returns NULL.
When comparing with REGEXP, regular expression matching is used. When comparing with REGEXP, regular expression matching is used.
See Java Matcher.find for details. See Java Matcher.find for details.
...@@ -3177,6 +3180,7 @@ parsed as NULL. All columns of type VARCHAR. ...@@ -3177,6 +3180,7 @@ parsed as NULL. All columns of type VARCHAR.
This function can be used like a table: SELECT * FROM CSVREAD(...). This function can be used like a table: SELECT * FROM CSVREAD(...).
Instead of a file, an URL may be used, for example Instead of a file, an URL may be used, for example
jar:file:///c:/temp/example.zip!/org/example/nested.zip. jar:file:///c:/temp/example.zip!/org/example/nested.zip.
Admin rights are required to execute this command. Admin rights are required to execute this command.
"," ","
CALL CSVREAD('test.csv'); CALL CSVREAD('test.csv');
......
...@@ -18,7 +18,11 @@ Change Log ...@@ -18,7 +18,11 @@ Change Log
<h1>Change Log</h1> <h1>Change Log</h1>
<h2>Next Version (unreleased)</h2> <h2>Next Version (unreleased)</h2>
<ul><li>- <ul><li>JaQu: the decompiler has been improved, and a few test cases already work. It is still incomplete however.
</li><li>LIKE: any letter is now allowed after the escape character (which is still '\' by default).
Previously, an exception was thrown (unlike other databases) if it was not the escape character, '_' or '%'.
If the escape character appears at the end of the pattern, the result is it is ignored (like PostgreSQL and MS SQL Server).
</li><li>The reserve heap memory is no longer used.
</li></ul> </li></ul>
<h2>Version 1.2.125 (2009-12-06)</h2> <h2>Version 1.2.125 (2009-12-06)</h2>
......
...@@ -169,6 +169,8 @@ Areas considered experimental are: ...@@ -169,6 +169,8 @@ Areas considered experimental are:
<li>The PostgreSQL server <li>The PostgreSQL server
</li><li>Multi-threading within the engine using <code>SET MULTI_THREADED=1</code> </li><li>Multi-threading within the engine using <code>SET MULTI_THREADED=1</code>
</li><li>Compatibility modes for other databases (only some features are implemented) </li><li>Compatibility modes for other databases (only some features are implemented)
</li><li>The soft reference cache (CACHE_TYPE=SOFT_LRU). It might not improve performance,
and out of memory issues have been reported.
</li></ul> </li></ul>
<p> <p>
Some users have reported that after a power failure, the database can sometimes not be Some users have reported that after a power failure, the database can sometimes not be
......
...@@ -1321,6 +1321,10 @@ There are two ways an application can find out whether database is read-only: ...@@ -1321,6 +1321,10 @@ There are two ways an application can find out whether database is read-only:
by calling <code>Connection.isReadOnly()</code> by calling <code>Connection.isReadOnly()</code>
or by executing the SQL statement <code>CALL READONLY()</code>. or by executing the SQL statement <code>CALL READONLY()</code>.
</p> </p>
<p>
Using the <a href="#custom_access_mode">Custom Access Mode</a> <code>r</code>
the database can also be opened in read-only mode, even if the database file is not read only.
</p>
<h2 id="database_in_zip">Read Only Databases in Zip or Jar File</h2> <h2 id="database_in_zip">Read Only Databases in Zip or Jar File</h2>
<p> <p>
...@@ -1729,9 +1733,11 @@ The amount of memory used for caching can be changed using the setting ...@@ -1729,9 +1733,11 @@ The amount of memory used for caching can be changed using the setting
(<code>jdbc:h2:~/test;CACHE_SIZE=131072</code>), or it can be changed at runtime using (<code>jdbc:h2:~/test;CACHE_SIZE=131072</code>), or it can be changed at runtime using
<code>SET CACHE_SIZE size</code>. <code>SET CACHE_SIZE size</code>.
</p><p> </p><p>
Also supported is a second level soft reference cache. Rows in this cache are only garbage collected Also included is an experimental second level soft reference cache. Rows in this cache are only garbage collected
on low memory. By default the second level cache is disabled. To enable it, on low memory. By default the second level cache is disabled. To enable it,
use the prefix <code>SOFT_</code>. Example: <code>jdbc:h2:~/test;CACHE_TYPE=SOFT_LRU</code>. use the prefix <code>SOFT_</code>. Example: <code>jdbc:h2:~/test;CACHE_TYPE=SOFT_LRU</code>.
The cache might not actually improve performance. If you plan to use it,
please run your own test cases first.
</p><p> </p><p>
To get information about page reads and writes, and the current caching algorithm in use, To get information about page reads and writes, and the current caching algorithm in use,
call <code>SELECT * FROM INFORMATION_SCHEMA.SETTINGS</code>. The number of pages read / written call <code>SELECT * FROM INFORMATION_SCHEMA.SETTINGS</code>. The number of pages read / written
......
...@@ -39,6 +39,8 @@ H2Sharp: ADO.NET interface for the H2 database engine</a> ...@@ -39,6 +39,8 @@ H2Sharp: ADO.NET interface for the H2 database engine</a>
H2 Spatial: spatial functions to H2 database</a> H2 Spatial: spatial functions to H2 database</a>
<h2>Blog Articles</h2> <h2>Blog Articles</h2>
<a href="http://blog.zvikico.com/2009/12/analyzing-csvs-with-h2.html">
Analyzing CSVs with H2 in under 10 minutes (2009-12-07)</a><br />
<a href="http://sbdevel.wordpress.com/2009/06/15/efficient-sorting-and-iteration-on-large-databases"> <a href="http://sbdevel.wordpress.com/2009/06/15/efficient-sorting-and-iteration-on-large-databases">
Efficient sorting and iteration on large databases (2009-06-15)</a><br /> Efficient sorting and iteration on large databases (2009-06-15)</a><br />
<a href="http://blog.flexive.org/2008/12/05/porting-flexive-to-the-h2-database"> <a href="http://blog.flexive.org/2008/12/05/porting-flexive-to-the-h2-database">
......
...@@ -31,9 +31,9 @@ See also <a href="build.html#providing_patches">Providing Patches</a>. ...@@ -31,9 +31,9 @@ See also <a href="build.html#providing_patches">Providing Patches</a>.
<h2>Priority 1</h2> <h2>Priority 1</h2>
<ul> <ul>
<li>Bugfixes <li>Bugfixes
</li><li>Support large updates (use the transaction log for rollback). </li><li>Support large inserts and updates (use the transaction log for rollback).
</li><li>More tests with MULTI_THREADED=1 </li><li>More tests with MULTI_THREADED=1
</li><li>Optimization: result set caching (like MySQL) </li><li>Optimization: result set caching (like MySQL); option to disable
</li><li>Server side cursors </li><li>Server side cursors
</li></ul> </li></ul>
...@@ -306,6 +306,7 @@ See also <a href="build.html#providing_patches">Providing Patches</a>. ...@@ -306,6 +306,7 @@ See also <a href="build.html#providing_patches">Providing Patches</a>.
</li><li>Support other array types (String[], double[]) in PreparedStatement.setObject(int, Object); </li><li>Support other array types (String[], double[]) in PreparedStatement.setObject(int, Object);
</li><li>MVCC should not be memory bound (uncommitted data is kept in memory in the delta index; maybe using a regular b-tree index solves the problem). </li><li>MVCC should not be memory bound (uncommitted data is kept in memory in the delta index; maybe using a regular b-tree index solves the problem).
</li><li>Oracle compatibility: support NLS_DATE_FORMAT. </li><li>Oracle compatibility: support NLS_DATE_FORMAT.
</li><li>H2 Console: support CLOB/BLOB download using a link.
</li><li>Support flashback queries as in Oracle. </li><li>Support flashback queries as in Oracle.
</li><li>Import / Export of fixed with text files. </li><li>Import / Export of fixed with text files.
</li><li>Support OUT parameters in user-defined procedures. </li><li>Support OUT parameters in user-defined procedures.
...@@ -434,6 +435,7 @@ See also <a href="build.html#providing_patches">Providing Patches</a>. ...@@ -434,6 +435,7 @@ See also <a href="build.html#providing_patches">Providing Patches</a>.
if the file system is on a remote share (see Google Group 'Lock file modification time is in the future'). if the file system is on a remote share (see Google Group 'Lock file modification time is in the future').
</li><li>Document internal features such as BELONGS_TO_TABLE, NULL_TO_DEFAULT, SEQUENCE. </li><li>Document internal features such as BELONGS_TO_TABLE, NULL_TO_DEFAULT, SEQUENCE.
</li><li>Issue 107: Prefer using the ORDER BY index if LIMIT is used. </li><li>Issue 107: Prefer using the ORDER BY index if LIMIT is used.
</li><li>An index on (id, name) should be used for a query: select * from t where s=? order by i
</li><li>Support reading sequences using DatabaseMetaData.getTables(null, null, null, new String[]{"SEQUENCE"}). </li><li>Support reading sequences using DatabaseMetaData.getTables(null, null, null, new String[]{"SEQUENCE"}).
See PostgreSQL. See PostgreSQL.
</li><li>Add option to enable TCP_NODELAY using Socket.setTcpNoDelay(true). </li><li>Add option to enable TCP_NODELAY using Socket.setTcpNoDelay(true).
...@@ -459,12 +461,10 @@ See also <a href="build.html#providing_patches">Providing Patches</a>. ...@@ -459,12 +461,10 @@ See also <a href="build.html#providing_patches">Providing Patches</a>.
</li><li>Support a way to create or read compressed encrypted script files using an API. </li><li>Support a way to create or read compressed encrypted script files using an API.
</li><li>Scripting language support (Javascript). </li><li>Scripting language support (Javascript).
</li><li>The network client should better detect if the server is not an H2 server and fail early. </li><li>The network client should better detect if the server is not an H2 server and fail early.
</li><li>H2 Console: support CLOB/BLOB download using a link.
</li><li>H2 Console: support CLOB/BLOB upload. </li><li>H2 Console: support CLOB/BLOB upload.
</li><li>Recover tool: stream blob / clob data (problem: currently using varchar data type). </li><li>Recover tool: stream blob / clob data (problem: currently using varchar data type).
</li><li>Move away from system properties where possible. </li><li>Move away from system properties where possible.
</li><li>Database file lock: detect hibernate / standby / very slow threads (compare system time). </li><li>Database file lock: detect hibernate / standby / very slow threads (compare system time).
</li><li>An index on (id, name) should be used for a query: select * from t where s=? order by i
</li><li>Automatic detection of redundant indexes. </li><li>Automatic detection of redundant indexes.
</li></ul> </li></ul>
......
...@@ -623,4 +623,5 @@ autovacuum vacuuming endlessly talking evicted splitting unbound declaring ...@@ -623,4 +623,5 @@ autovacuum vacuuming endlessly talking evicted splitting unbound declaring
selector descendant isdescendantnode issamenode ischildnode localname selector descendant isdescendantnode issamenode ischildnode localname
weakreference ancestor junctions wake fills rail sleeps turns grammars straight weakreference ancestor junctions wake fills rail sleeps turns grammars straight
answers attachments emails clipboard prioritize tips urgently standby answers attachments emails clipboard prioritize tips urgently standby
checklists serves gbif biodiversity wakes taxon ratio ended ipt checklists serves gbif biodiversity wakes taxon ratio ended ipt auckland
galapagos pacific
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论