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

Documentation; prepare for retina display

上级 eb73eaa9
......@@ -121,8 +121,8 @@ MERGE INTO TEST KEY(ID) VALUES(2, 'World')
"
"Commands (DML)","RUNSCRIPT","
RUNSCRIPT FROM fileNameString [ scriptCompression ]
[ CIPHER cipher PASSWORD string ] [ CHARSET charsetString ]
RUNSCRIPT FROM fileNameString scriptCompressionEncryption
[ CHARSET charsetString ]
","
Runs a SQL script from a file. The script is a text file containing SQL
statements; each statement must end with ';'. This command can be used to
......@@ -132,8 +132,7 @@ case sensitive and can contain spaces.
Instead of a file name, an URL may be used.
To read a stream from the classpath, use the prefix 'classpath:'.
The compression algorithm must match the one used when creating the script. When
using encryption, only DEFLATE and LZF are supported (LZF is faster but uses more space).
The compression algorithm must match the one used when creating the script.
Instead of a file, an URL may be used.
Admin rights are required to execute this command.
......@@ -144,8 +143,7 @@ RUNSCRIPT FROM 'backup.sql'
"Commands (DML)","SCRIPT","
SCRIPT [ SIMPLE ] [ NODATA ] [ NOPASSWORDS ] [ NOSETTINGS ]
[ DROP ] [ BLOCKSIZE blockSizeInt ]
[ TO fileNameString [ scriptCompression ]
[ CIPHER cipher PASSWORD string ]
[ TO fileNameString scriptCompressionEncryption
[ CHARSET charsetString ] ]
[ TABLE tableName [, ...] ]
[ SCHEMA schemaName [, ...] ]
......@@ -165,8 +163,7 @@ database files.
If a file name is specified, then the whole
script (including insert statements) is written to this file, and a result set
without the insert statements is returned. When using encryption, only DEFLATE
and LZF are supported (LZF is faster but uses more space).
without the insert statements is returned.
The password must be in single quotes; it is case sensitive and can contain spaces.
......@@ -479,7 +476,8 @@ CREATE DOMAIN EMAIL AS VARCHAR(255) CHECK (POSITION('@', VALUE) > 1)
"
"Commands (DDL)","CREATE INDEX","
CREATE { [ UNIQUE ] [ HASH ] INDEX [ [ IF NOT EXISTS ] newIndexName ]
CREATE
{ [ UNIQUE ] [ HASH ] INDEX [ [ IF NOT EXISTS ] newIndexName ]
| PRIMARY KEY [ HASH ] }
ON tableName ( indexColumn [,...] )
","
......@@ -1928,10 +1926,11 @@ The action SET DEFAULT will set the column in the referencing (child) table to t
FOREIGN KEY(ID) REFERENCES TEST(ID) ON UPDATE CASCADE
"
"Other Grammar","Script Compression","
COMPRESSION { DEFLATE | LZF | ZIP | GZIP }
"Other Grammar","Script Compression Encryption","
[ COMPRESSION { DEFLATE | LZF | ZIP | GZIP } ] [ CIPHER cipher PASSWORD string ]
","
The compression algorithm to use for script files.
The compression and encryption algorithm to use for script files.
When using encryption, only DEFLATE and LZF are supported.
LZF is faster but uses more space.
","
COMPRESSION LZF
......
......@@ -18,9 +18,10 @@ Change Log
<h1>Change Log</h1>
<h2>Next Version (unreleased)</h2>
<ul><li>The CreateCluster tool could not be used if the source database contained a CLOB or BLOB.
The root cause was that the TCP server did not synchronize on the session, which caused a problem
when using the exclusive mode.
<ul><li>H2 Console system tray icon: support for Mac OS X retina displays.
</li><li>The CreateCluster tool could not be used if the source database contained a CLOB or BLOB.
The root cause was that the TCP server did not synchronize on the session, which caused a problem
when using the exclusive mode.
</li><li>Statement.getQueryTimeout(): only the first call to this method will query the database.
If the query timeout was changed in another way than calling setQueryTimeout,
this method will always return the last value. This was changed because Hibernate
......
......@@ -411,7 +411,8 @@ As in all modes, both persistent and in-memory databases are supported.
There is no limit on the number of database open concurrently,
or on the number of open connections.
</p>
<img src="images/connection-mode-embedded.png"
<img src="images/connection-mode-embedded-2.png"
width="208" height="259"
alt="The database is embedded in the application" />
<h3>Server Mode</h3>
......@@ -428,7 +429,8 @@ As in all modes, both persistent and in-memory databases are supported.
There is no limit on the number of database open concurrently per server,
or on the number of open connections.
</p>
<img src="images/connection-mode-remote.png"
<img src="images/connection-mode-remote-2.png"
width="376" height="218"
alt="The database is running in a server; the application connects to the server" />
<h3>Mixed Mode</h3>
......@@ -445,7 +447,8 @@ or automatically (automatic mixed mode). When using the <a href="#auto_mixed_mod
all clients that want to connect to the database (no matter if
it's an local or remote connection) can do so using the exact same database URL.
</p>
<img src="images/connection-mode-mixed.png"
<img src="images/connection-mode-mixed-2.png"
width="403" height="240"
alt="Database, server, and application run in one JVM; an application connects" />
<h2 id="database_url">Database URL Overview</h2>
......
......@@ -15,7 +15,10 @@ Initial Developer: H2 Group
<table class="nav" onmousemove="return mouseMove(event)"><tr class="nav"><td class="nav" valign="top">
<div id = "searchMenu" style="width: 180px; overflow: hidden;">
<div class="menu" style="white-space:nowrap;">
<img src="images/h2-logo.png" alt="H2 database logo" onclick="document.location='main.html'" width="136" height="74"/>
<img src="images/h2-logo-2.png"
alt="H2 database logo"
onclick="document.location='main.html'"
width="136" height="74"/>
&nbsp;&nbsp;<span id = "goTop" onclick="window.scrollTo(0,0)" style="color: #fff; position:fixed; font-size: 20px; cursor: pointer;">&#x25b2;</span>
</div>
......
......@@ -38,12 +38,12 @@ Welcome to H2, the Java SQL database. The main features of H2 are:
Version ${version} (${versionDate})
</td></tr>
<tr><td style="border: 0px; background-color: #eee;">
<a href="http://www.h2database.com/h2-setup-${versionDate}.exe"><img style="border: 1px #00f solid;" src="images/download.png" alt="Download this database" width="22" height="20"/></a>
<a href="http://www.h2database.com/h2-setup-${versionDate}.exe"><img style="border: 1px #00f solid;" src="images/download-2.png" alt="Download this database" width="22" height="22"/></a>
</td><td style="vertical-align: middle; border: 0px; background-color: #eee;">
<a href="http://www.h2database.com/h2-setup-${versionDate}.exe">Windows Installer (4 MB)</a>
</td></tr>
<tr><td style="border: 0px; background-color: #eee;">
<a href="http://www.h2database.com/h2-${versionDate}.zip"><img style="border: 1px #00f solid;" src="images/download.png" alt="Download this database" width="22" height="20"/></a>
<a href="http://www.h2database.com/h2-${versionDate}.zip"><img style="border: 1px #00f solid;" src="images/download-2.png" alt="Download this database" width="22" height="22"/></a>
</td><td style="vertical-align: middle; border: 0px; background-color: #eee;">
<a href="http://www.h2database.com/h2-${versionDate}.zip">All Platforms (zip, 5 MB)</a>
</td></tr>
......@@ -176,7 +176,7 @@ Welcome to H2, the Java SQL database. The main features of H2 are:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<p>
<input type="hidden" name="cmd" value="_s-xclick"/>
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" name="submit" alt="PayPal icon"/>
<input type="image" src="images/paypal-donate.png" width="108" height="108" name="submit" alt="PayPal icon"/>
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHNwYJKoZIhvcNAQcEoIIHKDCCByQCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYBT5YHCnqqyWDNUoD0DGudVB/0gMr1D2iOAKr/X+zR9VGBMeZsBtgmJphsbszGxXXEGxwzIVAv/ys+8TKW/uvk9UvZcDqFbCvupXmVIv3dp143N1xHsyLQGGHd8aFNraqCF7fdFoQ8GHzwvNw0VaPbGqU6udswpKz/225zBkMCjTjELMAkGBSsOAwIaBQAwgbQGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIvFAVO1Ru/gCAgZCWN/nYxfM8UtcqFy4Z+KefQIgmUISauadMhddUvvkARcSyEOITMCoEkJCc0KC+2mp9noBz2VhDO7uxNIjdj4O74V4iNcRsSy2d7CJe4QEBw2PCrnw2GsLkcL0DDfCE4Y0KfF6zHyUq/GNGUVR8ZhrFTSSLjh4tJJzuLYBPIbWHv89K1OJsWGuHs8dB5zGcbQ6gggOHMIIDgzCCAuygAwIBAgIBADANBgkqhkiG9w0BAQUFADCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20wHhcNMDQwMjEzMTAxMzE1WhcNMzUwMjEzMTAxMzE1WjCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAMFHTt38RMxLXJyO2SmS+Ndl72T7oKJ4u4uw+6awntALWh03PewmIJuzbALScsTS4sZoS1fKciBGoh11gIfHzylvkdNe/hJl66/RGqrj5rFb08sAABNTzDTiqqNpJeBsYs/c2aiGozptX2RlnBktH+SUNpAajW724Nv2Wvhif6sFAgMBAAGjge4wgeswHQYDVR0OBBYEFJaffLvGbxe9WT9S1wob7BDWZJRrMIG7BgNVHSMEgbMwgbCAFJaffLvGbxe9WT9S1wob7BDWZJRroYGUpIGRMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbYIBADAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBQUAA4GBAIFfOlaagFrl71+jq6OKidbWFSE+Q4FqROvdgIONth+8kSK//Y/4ihuE4Ymvzn5ceE3S/iBSQQMjyvb+s2TWbQYDwcp129OPIbD9epdr4tJOUNiSojw7BHwYRiPh58S1xGlFgHFXwrEBb3dgNbMUa+u4qectsMAXpVHnD9wIyfmHMYIBmjCCAZYCAQEwgZQwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tAgEAMAkGBSsOAwIaBQCgXTAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0wNzAxMDcxMTI5MzFaMCMGCSqGSIb3DQEJBDEWBBRCGFuirr8xc1NmatO8jdDYt93luzANBgkqhkiG9w0BAQEFAASBgLJMfUrlr/Ckx/peA6UOkMqsB20W7M9FC4dYaGrlhSf0Og2N3NVlBrliloxGq85KpLnwJsKsh1wbP2aMGHvbicpCOsRoogPVvFI0cLb2UfPFkT0fRuEKerxcVVZQq26WjMq3h/Gps5tQEBGEB5Ok9IGP/dusNA+YijCt5XA/WM47-----END PKCS7-----"/>
</p>
</form>
......
......@@ -36,7 +36,9 @@ This database can be used in embedded mode, or in server mode. To use it in embe
<p>
The Console lets you access a SQL database using a browser interface.
<br />
<img src="images/console.png" alt="Web Browser - H2 Console Server - H2 Database" />
<img src="images/console-2.png"
width="535" height="179"
alt="Web Browser - H2 Console Server - H2 Database" />
<br />
If you don't have Windows XP, or if something does not work as expected,
please see the detailed description in the <a href="tutorial.html">Tutorial</a>.
......
......@@ -301,9 +301,10 @@ td.index {
margin: 0px;
border-collapse: collapse;
vertical-align: top;
width: 16px;
height: 24px;
background-image: url(images/div-ts.png);
width: 16px;
background-size: 16px 512px;
}
.ls {
......@@ -312,9 +313,10 @@ td.index {
margin: 0px;
border-collapse: collapse;
vertical-align: top;
width: 16px;
height: 24px;
background-image: url(images/div-ls.png);
width: 16px;
background-size: 16px 512px;
}
.ks {
......@@ -323,9 +325,10 @@ td.index {
margin: 0px;
border-collapse: collapse;
vertical-align: top;
width: 16px;
height: 24px;
background-image: url(images/div-ks.png);
width: 16px;
background-size: 16px 512px;
}
.te {
......@@ -334,9 +337,10 @@ td.index {
margin: 0px;
border-collapse: collapse;
vertical-align: top;
width: 16px;
height: 24px;
background-image: url(images/div-te.png);
width: 16px;
background-size: 16px 512px;
}
.le {
......@@ -345,9 +349,10 @@ td.index {
margin: 0px;
border-collapse: collapse;
vertical-align: top;
width: 16px;
height: 24px;
background-image: url(images/div-le.png);
width: 16px;
background-size: 16px 512px;
}
.ke {
......@@ -356,9 +361,10 @@ td.index {
margin: 0px;
border-collapse: collapse;
vertical-align: top;
width: 16px;
height: 24px;
background-image: url(images/div-ke.png);
width: 16px;
background-size: 16px 512px;
}
.d {
......@@ -367,8 +373,8 @@ td.index {
margin: 0px;
border-collapse: collapse;
vertical-align: top;
min-width: 16px;
height: 24px;
background-image: url(images/div-d.png);
background-repeat: repeat-x;
min-width: 16px;
background-size: 1024px 512px;
}
......@@ -74,7 +74,9 @@ Tutorial
The H2 Console application lets you access a database using a browser.
This can be a H2 database, or another database that supports the JDBC API.
</p>
<img src="images/console.png" alt="Web Browser - H2 Console Server - H2 Database" />
<img src="images/console-2.png"
width="535" height="179"
alt="Web Browser - H2 Console Server - H2 Database" />
<p>
This is a client/server application, so both a server and a client (a browser) are required to run it.
</p><p>
......@@ -88,7 +90,9 @@ Depending on your platform and environment, there are multiple ways to start the
Click [Start], [All Programs], [H2], and [H2 Console (Command Line)]<br />
When using the Sun JDK 1.5, a window with the title 'H2 Console ' should appear.
When using the Sun JDK 1.6, an icon will be added to the system tray:
<img src="images/db-16.png" alt="H2 database icon" /><br />
<img src="images/db-64-t.png"
width="32" height="32"
alt="H2 database icon" /><br />
If you don't get the window and the system tray icon,
then maybe Java is not installed correctly (in this case, try another way to start the application).
A browser window should open and point to the login page at <code>http://localhost:8082</code>.
......
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="744.09448819"
height="1052.3622047"
id="svg2"
version="1.1"
inkscape:version="0.48.2 r9819"
sodipodi:docname="New document 1">
<defs
id="defs4">
<linearGradient
id="linearGradient3771">
<stop
id="stop3773"
offset="0"
style="stop-color:#99e354;stop-opacity:1;" />
<stop
id="stop3775"
offset="1"
style="stop-color:#6a9e3b;stop-opacity:1;" />
</linearGradient>
<linearGradient
id="linearGradient3763">
<stop
style="stop-color:#76d849;stop-opacity:1;"
offset="0"
id="stop3765" />
<stop
style="stop-color:#689556;stop-opacity:1;"
offset="1"
id="stop3767" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3771"
id="linearGradient3783"
x1="0"
y1="252.36218"
x2="720"
y2="892.36218"
gradientUnits="userSpaceOnUse" />
<filter
inkscape:collect="always"
id="filter3913">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="13.92"
id="feGaussianBlur3915" />
</filter>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.34029514"
inkscape:cx="361.88904"
inkscape:cy="470.59183"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="true"
inkscape:window-width="1189"
inkscape:window-height="695"
inkscape:window-x="90"
inkscape:window-y="76"
inkscape:window-maximized="0">
<inkscape:grid
type="xygrid"
id="grid2985" />
</sodipodi:namedview>
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<path
d="m 840,572.36218 a 480,480 0 1 1 -960,0 480,480 0 1 1 960,0 z"
sodipodi:ry="480"
sodipodi:rx="480"
sodipodi:cy="572.36218"
sodipodi:cx="360"
id="path3813"
style="fill:#2b2b2b;fill-opacity:1;fill-rule:evenodd;stroke:none;filter:url(#filter3913)"
sodipodi:type="arc"
transform="translate(20,20)" />
<path
sodipodi:type="arc"
style="fill:url(#linearGradient3783);fill-opacity:1;fill-rule:evenodd;stroke:#ebebeb;stroke-width:30;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
id="path2989"
sodipodi:cx="360"
sodipodi:cy="572.36218"
sodipodi:rx="480"
sodipodi:ry="480"
d="m 840,572.36218 a 480,480 0 1 1 -960,0 480,480 0 1 1 960,0 z" />
<path
style="fill:#ebebeb;fill-opacity:1;stroke:#ffffff;stroke-opacity:1"
d="m 200,292.36218 0,260 -160,0 c -20,0 -20,20 0,40 l 320,360 320,-360 c 20,-20 20,-40 0,-40 l -160,0 0,-260 c 0,-40 -20,-60 -60,-60 l -200,0 c -40,0 -60,20 -60,60 z"
id="path2987"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccccccccsscc" />
</g>
</svg>
......@@ -1634,540 +1634,546 @@ Change Log
Next Version (unreleased)
@changelog_1002_li
Statement.getQueryTimeout(): only the first call to this method will query the database. If the query timeout was changed in another way than calling setQueryTimeout, this method will always return the last value. This was changed because Hibernate calls getQueryTimeout() a lot.
H2 Console system tray icon: support for Mac OS X retina displays.
@changelog_1003_li
Issue 416: PreparedStatement.setNString throws AbstractMethodError. All implemented JDBC 4 methods that don't break compatibility with Java 5 are now included in the default jar file.
The CreateCluster tool could not be used if the source database contained a CLOB or BLOB. The root cause was that the TCP server did not synchronize on the session, which caused a problem when using the exclusive mode.
@changelog_1004_li
Issue 414: for some functions, the parameters were evaluated twice (for example "char(nextval(..))" ran "nextval(..)" twice).
Statement.getQueryTimeout(): only the first call to this method will query the database. If the query timeout was changed in another way than calling setQueryTimeout, this method will always return the last value. This was changed because Hibernate calls getQueryTimeout() a lot.
@changelog_1005_li
The ResultSetMetaData methods getSchemaName and getTableName could return null instead of "" (an empty string) as specified in the JDBC API.
Issue 416: PreparedStatement.setNString throws AbstractMethodError. All implemented JDBC 4 methods that don't break compatibility with Java 5 are now included in the default jar file.
@changelog_1006_li
Issue 414: for some functions, the parameters were evaluated twice (for example "char(nextval(..))" ran "nextval(..)" twice).
@changelog_1007_li
The ResultSetMetaData methods getSchemaName and getTableName could return null instead of "" (an empty string) as specified in the JDBC API.
@changelog_1008_li
Added compatibility for "SET NAMES" query in MySQL compatibility mode.
@changelog_1007_h2
@changelog_1009_h2
Version 1.3.168 (2012-07-13)
@changelog_1008_li
@changelog_1010_li
The message "Transaction log could not be truncated" was sometimes written to the .trace.db file even if there was no problem truncating the transaction log.
@changelog_1009_li
@changelog_1011_li
New system property "h2.serializeJavaObject" (default: true) that allows to disable serializing Java objects, so that the objects compareTo and toString methods can be used.
@changelog_1010_li
@changelog_1012_li
Dylan has translated the H2 Console tool to Korean. Thanks a lot!
@changelog_1011_li
@changelog_1013_li
Executing the statement CREATE INDEX IF ALREADY EXISTS if the index already exists no longer fails for a read only database.
@changelog_1012_li
@changelog_1014_li
MVCC: concurrently updating a row could result in the row to appear deleted in the second connection, if there are multiple unique indexes (or a primary key and at least one unique index). Thanks a lot to Teruo for the patch!
@changelog_1013_li
@changelog_1015_li
Fulltext search: in-memory Lucene indexes are now supported.
@changelog_1014_li
@changelog_1016_li
Fulltext search: UUID primary keys are now supported.
@changelog_1015_li
@changelog_1017_li
Apache Tomcat 7.x will now longer log a warning when unloading the web application, if using a connection pool.
@changelog_1016_li
@changelog_1018_li
H2 Console: support the Midori browser (for Debian / Raspberry Pi)
@changelog_1017_li
@changelog_1019_li
When opening a remote session, don't open a temporary file if the trace level is set to zero
@changelog_1018_li
@changelog_1020_li
Use HMAC for authenticating remote LOB id's, removing the need for maintaining a cache, and removing the limit on the number of LOBs per result set.
@changelog_1019_li
@changelog_1021_li
H2 Console: HTML and XML documents can now be edited in an updatable result set. There is (limited) support for editing multi-line documents.
@changelog_1020_h2
@changelog_1022_h2
Version 1.3.167 (2012-05-23)
@changelog_1021_li
@changelog_1023_li
H2 Console: when editing a row, an empty varchar column was replaced with a single space.
@changelog_1022_li
@changelog_1024_li
Lukas Eder has updated the jOOQ documentation.
@changelog_1023_li
@changelog_1025_li
Some nested joins could not be executed, for example: select * from (select * from (select * from a) a right join b b) c;
@changelog_1024_li
@changelog_1026_li
MS SQL Server compatibility: ISNULL is now an alias for IFNULL.
@changelog_1025_li
@changelog_1027_li
Terrence Huang has completed the translation of the H2 Console tool to Chinese. Thanks a lot!
@changelog_1026_li
@changelog_1028_li
Server mode: the number of CLOB / BLOB values that were cached on the server is now the maximum of: 5 times the SERVER_RESULT_SET_FETCH_SIZE (which is 100 by default), and SysProperties.SERVER_CACHED_OBJECTS.
@changelog_1027_li
@changelog_1029_li
In the trace file, the query execution time was incorrect in some cases, specially for the statement SET TRACE_LEVEL_FILE 2.
@changelog_1028_li
@changelog_1030_li
The feature LOG_SIZE_LIMIT that was introduced in version 1.3.165 did not always work correctly (specially with regards to multithreading) and has been removed. The message "Transaction log could not be truncated" is still written to the .trace.db file if required.
@changelog_1029_li
@changelog_1031_li
Then reading from a resource using the prefix "classpath:", the ContextClassLoader is now used if the resource can't be read otherwise.
@changelog_1030_li
@changelog_1032_li
DatabaseEventListener now calls setProgress whenever a statement starts and ends.
@changelog_1031_li
@changelog_1033_li
DatabaseEventListener now calls setProgress periodically while a statement is running.
@changelog_1032_li
@changelog_1034_li
The table INFORMATION_SCHEMA.FUNCTION_ALIASES now includes a column TYPE_NAME.
@changelog_1033_li
@changelog_1035_li
Issue 378: when using views, the wrong values were bound to a parameter in some cases.
@changelog_1034_li
@changelog_1036_li
Terrence Huang has translated the error messages to Chinese. Thanks a lot!
@changelog_1035_li
@changelog_1037_li
TRUNC was added as an alias for TRUNCATE.
@changelog_1036_li
@changelog_1038_li
Small optimisation for accessing result values by column name.
@changelog_1037_li
@changelog_1039_li
Fix for bug in Statement.getMoreResults(int)
@changelog_1038_li
@changelog_1040_li
The SCRIPT statements now supports filtering by schema and table. Thanks a lot to Jacob Qvortrup for providing the patch!
@changelog_1039_h2
@changelog_1041_h2
Version 1.3.166 (2012-04-08)
@changelog_1040_li
@changelog_1042_li
Indexes on column that are larger than half the page size (wide indexes) could sometimes get corrupt, resulting in an ArrayIndexOutOfBoundsException in PageBtree.getRow or "Row not found" in PageBtreeLeaf. Also, such indexes used too much disk space.
@changelog_1041_li
@changelog_1043_li
Server mode: when retrieving more than 64 rows each containing a CLOB or BLOB, the error message "The object is already closed" was thrown.
@changelog_1042_li
@changelog_1044_li
ConvertTraceFile: the time in the trace file is now parsed as a long.
@changelog_1043_li
@changelog_1045_li
Invalid connection settings are now detected.
@changelog_1044_li
@changelog_1046_li
Issue 387: WHERE condition getting pushed into sub-query with LIMIT.
@changelog_1045_h2
@changelog_1047_h2
Version 1.3.165 (2012-03-18)
@changelog_1046_li
@changelog_1048_li
Better string representation for decimal values (for example 0.00000000 instead of 0E-26).
@changelog_1047_li
@changelog_1049_li
Prepared statements could only be re-used if the same data types were used the second time they were executed.
@changelog_1048_li
@changelog_1050_li
In error messages about referential constraint violation, the values are now included.
@changelog_1049_li
@changelog_1051_li
SCRIPT and RUNSCRIPT: the password can now be set using a prepared statement. Previously, it was required to be a literal in the SQL statement.
@changelog_1050_li
@changelog_1052_li
MySQL compatibility: SUBSTR with a negative start index now works like MySQL.
@changelog_1051_li
@changelog_1053_li
When enabling autocommit, the transaction is now committed (as required by the JDBC API).
@changelog_1052_li
@changelog_1054_li
The shell script <code>h2.sh</code> did not work with spaces in the path. It also works now with quoted spaces in the argument list. Thanks a lot to Shimizu Fumiyuki for the patch!
@changelog_1053_li
@changelog_1055_li
If the transaction log could not be truncated because of an uncommitted transaction, now "Transaction log could not be truncated" is written to the .trace.db file. Before, the database file was growing and it was hard to find out what the root cause was. To avoid the database file from growing, a new feature to automatically rollback the oldest transaction is available now. To enable it, append ;LOG_SIZE_LIMIT=32 to the database URL (in that case, the oldest session is rolled back if the transaction log is 32 MB).
@changelog_1054_li
@changelog_1056_li
ALTER TABLE ADD can now add more than one column at a time.
@changelog_1055_li
@changelog_1057_li
Issue 380: ALTER TABLE ADD FOREIGN KEY with an explicit index didn't verify the index can be used, which would lead to a NullPointerException later on.
@changelog_1056_li
@changelog_1058_li
Issue 384: the wrong kind of exception (NullPointerException) was thrown in a UNION query with an incorrect ORDER BY expression.
@changelog_1057_li
@changelog_1059_li
Issue 362: support LIMIT in UPDATE statements.
@changelog_1058_li
@changelog_1060_li
Browser: if no default browser is set, Google Chrome is now used if available. If not available, then Konqueror, Netscape, or Opera is used if available (as before).
@changelog_1059_li
@changelog_1061_li
CSV tool: new feature to disable writing the column header (option writeColumnHeader).
@changelog_1060_li
@changelog_1062_li
CSV tool: new feature to preserve the case sensitivity of column names (option caseSensitiveColumnNames).
@changelog_1061_li
@changelog_1063_li
PostgreSQL compatibility: LOG(x) is base 10 in the PostgreSQL mode.
@changelog_1062_h2
@changelog_1064_h2
Version 1.3.164 (2012-02-03)
@changelog_1063_li
@changelog_1065_li
New built-in function ARRAY_CONTAINS.
@changelog_1064_li
@changelog_1066_li
Some DatabaseMetaData methods didn't work when using ALLOW_LITERALS NONE.
@changelog_1065_li
@changelog_1067_li
Trying to convert a VARCHAR to UUID will now fail if the text contains a character that is not a hex digit, '-', or not a whitespace.
@changelog_1066_li
@changelog_1068_li
TriggerAdapter: in "before" triggers, values can be changed using the ResultSet.updateX methods.
@changelog_1067_li
@changelog_1069_li
Creating a table with column data type NULL now works (even if not very useful).
@changelog_1068_li
@changelog_1070_li
ALTER TABLE ALTER COLUMN no longer copies the data for widening conversions (for example if only the precision was increased) unless necessary.
@changelog_1069_li
@changelog_1071_li
Multi-threaded kernel: concurrently running an online backup and updating the database resulted in a broken (transactionally incorrect) backup file in some cases.
@changelog_1070_li
@changelog_1072_li
The script created by SCRIPT DROP did not always work if multiple views existed that depend on each other.
@changelog_1071_li
@changelog_1073_li
MathUtils.getSecureRandom could log a warning to System.err in case the /dev/random is very slow, and the System.getProperties().toString() returned a string larger than 64 KB.
@changelog_1072_li
@changelog_1074_li
The database file locking mechanism "FS" (;FILE_LOCK=FS) did not work on Linux since version 1.3.161.
@changelog_1073_li
@changelog_1075_li
Sequences: the functions NEXTVAL and CURRVAL did not work as expected when using quoted, mixed case sequence names.
@changelog_1074_li
@changelog_1076_li
The constructor for Csv objects is now public, and Csv.getInstance() is now deprecated.
@changelog_1075_li
@changelog_1077_li
SimpleResultSet: updating a result set is now supported.
@changelog_1076_li
@changelog_1078_li
Database URL: extra semicolons are not supported.
@changelog_1077_h2
@changelog_1079_h2
Version 1.3.163 (2011-12-30)
@changelog_1078_li
@changelog_1080_li
On out of disk space, the database could get corrupt sometimes, if later write operations succeeded. The same problem happened on other kinds of I/O exceptions (where one or some of the writes fail, but subsequent writes succeed). Now the file is closed on the first unsuccessful write operation, so that later requests fail consistently.
@changelog_1079_li
@changelog_1081_li
DatabaseEventListener.diskSpaceIsLow() is no longer supported because it can't be guaranteed that it always works correctly.
@changelog_1080_li
@changelog_1082_li
XMLTEXT now supports an optional parameter to escape newlines.
@changelog_1081_li
@changelog_1083_li
XMLNODE now support an optional parameter to disable indentation.
@changelog_1082_li
@changelog_1084_li
Csv.write now formats date, time, and timestamp values using java.sql.Date / Time / Timestamp.toString(). Previously, ResultSet.getString() was used, which didn't work well for Oracle.
@changelog_1083_li
@changelog_1085_li
The shell script <code>h2.sh</code> can now be run from within a different directory. Thanks a lot to Daniel Serodio for the patch!
@changelog_1084_li
@changelog_1086_li
The page size of a persistent database can now be queries using: select * from information_schema.settings where name = 'info.PAGE_SIZE'
@changelog_1085_li
@changelog_1087_li
In the server mode, BLOB and CLOB objects are no longer closed when the result set is closed (as required by the JDBC spec).
@changelog_1086_h2
@changelog_1088_h2
Version 1.3.162 (2011-11-26)
@changelog_1087_li
@changelog_1089_li
The following system properties are no longer supported: <code>h2.allowBigDecimalExtensions</code>, <code>h2.emptyPassword</code>, <code>h2.minColumnNameMap</code>, <code>h2.returnLobObjects</code>, <code>h2.webMaxValueLength</code>.
@changelog_1088_li
@changelog_1090_li
When using a VPN, starting a H2 server did not work (for some VPN software).
@changelog_1089_li
@changelog_1091_li
Oracle compatibility: support for DECODE(...).
@changelog_1090_li
@changelog_1092_li
Lucene fulltext search: creating an index is now faster if the table already contains data. Thanks a lot to Angel Leon from the FrostWire Team for the patch!
@changelog_1091_li
@changelog_1093_li
Update statements with a column list in brackets did not work if the list only contains one column. Example: update test set (id)=(id).
@changelog_1092_li
@changelog_1094_li
Read-only databases in a zip file did not work when using the -baseDir option.
@changelog_1093_li
@changelog_1095_li
Issue 334: SimpleResultSet.getString now also works for Clob columns.
@changelog_1094_li
@changelog_1096_li
Subqueries with an aggregate did not always work. Example: select (select count(*) from test where a = t.a and b = 0) from test t group by a
@changelog_1095_li
@changelog_1097_li
Server: in some (theoretical) cases, exceptions while closing the connection were ignored.
@changelog_1096_li
@changelog_1098_li
Server.createTcpServer, createPgServer, createWebServer: invalid arguments are now detected.
@changelog_1097_li
@changelog_1099_li
The selectivity of LOB columns is no longer calculated because indexes on LOB columns are not supported (however this should have little effect on performance, as the selectivity is calculated from the hash code and not the data).
@changelog_1098_li
@changelog_1100_li
New experimental system property "h2.modifyOnWrite": when enabled, the database file is only modified when writing to the database. When enabled, the serialized file lock is much faster for read-only operations.
@changelog_1099_li
@changelog_1101_li
A NullPointerException could occur in TableView.isDeterministic for invalid views.
@changelog_1100_li
@changelog_1102_li
Issue 180: when deserializing objects, the context class loader is used instead of the default class loader if the system property "h2.useThreadContextClassLoader" is set. Thanks a lot to Noah Fontes for the patch!
@changelog_1101_li
@changelog_1103_li
When using the exclusive mode, LOB operations could cause the thread to block. This also affected the CreateCluster tool (when using BLOB or CLOB data).
@changelog_1102_li
@changelog_1104_li
The optimization for "group by" was not working correctly if the group by column was aliased in the select list.
@changelog_1103_li
@changelog_1105_li
Issue 326: improved support for case sensitive (mixed case) identifiers without quotes when using DATABASE_TO_UPPER=FALSE.
@changelog_1104_h2
@changelog_1106_h2
Version 1.3.161 (2011-10-28)
@changelog_1105_li
@changelog_1107_li
Issue 351: MySQL mode: can not create a table with the column "KEY", and can not open databases where such a table already exists.
@changelog_1106_li
@changelog_1108_li
TCP server: when using the trace option ("-trace"), the trace output contained unnecessary stack traces when stopping the server.
@changelog_1107_li
@changelog_1109_li
Issue 354: when using the multi-threaded kernel option, and multiple threads concurrently prepared SQL statements that use the same view or the same index of a view, then in some cases an infinite loop could occur.
@changelog_1108_li
@changelog_1110_li
Issue 350: when using instead of triggers, executeUpdate for delete operations always returned 0.
@changelog_1109_li
@changelog_1111_li
Some timestamps with timezone were not converted correctly. For example, in the PST timezone, the timestamp 2011-10-26 08:00:00Z was converted to 2011-10-25 25:00:00 instead of 2011-10-26 01:00:00. Depending on the database operation, this caused subsequent error.
@changelog_1110_li
@changelog_1112_li
Sequences with cache size smaller than 0 did not work correctly.
@changelog_1111_li
@changelog_1113_li
Issue 356: for Blob objects, InputStream.skip() returned 0, causing EOFException in Blob.getBytes(.., ..).
@changelog_1112_li
@changelog_1114_li
Updatable result sets: if the value is not set when inserting a new row, the default value is now used (the same behavior as MySQL, PostgreSQL, and Apache Derby) instead of NULL.
@changelog_1113_li
@changelog_1115_li
Conditions of the form IN(SELECT ...) where slow and increased the database size if the subquery result size was larger then the configured MAX_MEMORY_ROWS.
@changelog_1114_li
@changelog_1116_li
Issue 347: the RunScript and Shell tools now ignore empty statements.
@changelog_1115_li
@changelog_1117_li
Issue 246: improved error message for data conversion problems.
@changelog_1116_li
@changelog_1118_li
Issue 344: the build now supports a custom Maven repository location.
@changelog_1117_li
@changelog_1119_li
Issue 334: Java functions that return CLOB or BLOB objects could not be used as tables.
@changelog_1118_li
@changelog_1120_li
SimpleResultSet now supports getColumnTypeName and getColumnClassName.
@changelog_1119_li
@changelog_1121_li
SimpleResultSet now has minimal BLOB and CLOB support.
@changelog_1120_li
@changelog_1122_li
Improved performance for large databases (many GB), and databases with a small page size.
@changelog_1121_li
@changelog_1123_li
The Polish translation has been improved by Jaros&#322;aw Kokoci&#324;ski.
@changelog_1122_li
@changelog_1124_li
When using the built-in connection pool, after calling the "shutdown" SQL statement, a warning was written to the .trace.db file about an unclosed connection.
@changelog_1123_li
@changelog_1125_li
Improved compatibility for "fetch first / next row(s)". Thanks a lot to litailang for the patch!
@changelog_1124_li
@changelog_1126_li
Improved compatibility with the Java 7 FileSystem abstraction.
@changelog_1125_h2
@changelog_1127_h2
Version 1.3.160 (2011-09-11)
@changelog_1126_li
@changelog_1128_li
Computed columns could not refer to itself.
@changelog_1127_li
@changelog_1129_li
Issue 340: Comparison with "x = all(select ...)" or similar in a view or subquery that was used as a table returned the wrong result.
@changelog_1128_li
@changelog_1130_li
Comparison with "x = all(select ...)" or similar returned the wrong result for some cases (for example if the subquery returned no rows, or multiple rows with the same value, or null, or if x was null).
@changelog_1129_li
@changelog_1131_li
Issue 335: Could not run DROP ALL OBJECTS DELETE FILES on older databases with CLOB or BLOB data. The problem was that the metadata table was not locked in some cases, so that a rollback could result in a corrupt database in a database if the lob storage was upgraded.
@changelog_1130_li
@changelog_1132_li
Source code switching using //## has been simplified. The Java 1.5 tag has been removed because is no longer needed.
@changelog_1131_li
@changelog_1133_li
The JDBC methods PreparedStatement.setTimestamp, setTime, and setDate with a calendar, and the methods ResultSet.getTimestamp, getTime, and getDate with a calendar converted the value in the wrong way, so that for some timestamps the converted value was wrong (where summertime starts, one hour per year).
@changelog_1132_li
@changelog_1134_li
Invalid tables names in 'order by' columns were not detected in some cases. Example: select x from dual order by y.x
@changelog_1133_li
@changelog_1135_li
Issue 329: CASE expression: data type problem is not detected.
@changelog_1134_li
@changelog_1136_li
Issue 311: File lock mode serialized: selecting the next value from a sequence didn't work after a pause, because the database thought this is a read-only operation.
@changelog_1135_h2
@changelog_1137_h2
Version 1.3.159 (2011-08-13)
@changelog_1136_li
@changelog_1138_li
Creating a temporary table with the option 'transactional' will now also create the indexes in transactional mode, if the indexes are included in the 'create table' statement as follows: "create local temporary table temp(id int primary key, name varchar, constraint x index(name)) transactional".
@changelog_1137_li
@changelog_1139_li
The database file size grows now 35%, but at most 256 MB at a time.
@changelog_1138_li
@changelog_1140_li
Improved error message on network configuration problems.
@changelog_1139_li
@changelog_1141_li
The build now support an offline build using ./build.sh offline. This will list the required dependencies if jar files are missing.
@changelog_1140_li
@changelog_1142_li
The BLOB / CLOB data was dropped a little bit before the table was dropped. This could cause "lob not found" errors when the process was killed while a table was dropped.
@changelog_1141_li
@changelog_1143_li
"group_concat(distinct ...)" did not work correctly in a view or subquery (the 'distinct' was lost). Example: select * from (select group_concat(distinct 1) from system_range(1, 3));
@changelog_1142_li
@changelog_1144_li
Database URLs can now be re-mapped to another URL using the system property "h2.urlMap", which points to a properties file with database URL mappings.
@changelog_1143_li
@changelog_1145_li
When using InputStream.skip, trying to read past the end of a BLOB failed with the exception "IO Exception: Missing lob entry: ..." [90028-...].
@changelog_1144_li
@changelog_1146_li
The in-memory file system "memFS:" now has limited support for directories.
@changelog_1145_li
@changelog_1147_li
To test recovery, append ;RECOVER_TEST=64 to the database URL. This will simulate an application crash after each 64 writes to the database file. A log file named databaseName.h2.db.log is created that lists the operations. The recovery is tested using an in-memory file system, that means it may require a larger heap setting.
@changelog_1146_li
@changelog_1148_li
Converting a hex string to a byte array is now faster.
@changelog_1147_li
@changelog_1149_li
The SQL statement "shutdown defrag" could corrupt the database if the process was killed while the shutdown was in progress. The same problem could occur when the database setting "defrag_always" was used.
@changelog_1148_h2
@changelog_1150_h2
Version 1.3.158 (2011-07-17)
@changelog_1149_li
@changelog_1151_li
Fulltext search (native): after re-opening the connection once the fulltext index was created, a transaction rollback did not roll back the modifications in the index.
@changelog_1150_li
@changelog_1152_li
Support for ROW_NUMBER() OVER() as an alias for ROWNUM() for compatibility with PostgreSQL and Apache Derby.
@changelog_1151_li
@changelog_1153_li
Issue 325: a deadlock in the fulltext search could occur if the connection that was used while initializing the fulltext search was later used to query the database. This was actually not only a problem for fulltext search, but also for other triggers that used the initializing connection later on.
@changelog_1152_li
@changelog_1154_li
DATABASE_TO_UPPER: when set to false, all identifier names (table names, column names) are case sensitive (except aggregate, built-in functions, data types, and keywords). This is for improved compatibility with MySQL and PostgreSQL.
@changelog_1153_li
@changelog_1155_li
When upgrading from an older 1.3.x version to version 1.3.157, when using BLOB or CLOB data, the database could only be opened once.
@changelog_1154_li
@changelog_1156_li
SUM on a boolean expression will now count the number of 'true' rows.
@changelog_1155_li
@changelog_1157_li
Simplified test cases using assertThrows(...).
@changelog_1156_li
@changelog_1158_li
A Java function that returns a result set that was generated using the provided connection could cause an internal error in some cases. Now such result sets are copied early on.
@changelog_1157_li
@changelog_1159_li
Data type RESULT_SET: information_schema.function_aliases returned type 0; now type -10 is returned (the same as Oracle: OracleTypes.CURSOR = -10).
@changelog_1158_li
@changelog_1160_li
Data type RESULT_SET: tables with columns of type RESULT_SET could be created, but no data could be persisted in this column.
@changelog_1159_li
@changelog_1161_li
H2 Console: improved system tray icon for Mac OS X (transparent background).
@changelog_1160_li
@changelog_1162_li
String.toUpperCase() was used a few places, which is problematic when using the Turkish locale. The method has been replaced with toUpperCase(Locale.ENGLISH) to solve such problems.
@changelog_1161_li
@changelog_1163_li
Shell tool: the built-in command "distinct" has been removed (use the SQL statements "show tables" / "show columns from tableName" instead). The result set formatting has been improved.
@changelog_1162_li
@changelog_1164_li
MERGE: if a unique key was violated (but not the primary key or the key columns of the merge itself), the wrong exception was thrown.
@changelog_1163_li
@changelog_1165_li
IBM DB2 and Apache Derby compatibility: support the pseudo-table SYSIBM.SYSDUMMY1.
@changelog_1164_li
@changelog_1166_li
ROWNUM() did not work in combination with IN(..). The following query did not work as expected: select * from (select rownum r from test) where r in (1, 2).
@changelog_1165_li
@changelog_1167_li
H2 Console autocomplete: the autocomplete feature didn't support quoted names.
@changelog_1166_li
@changelog_1168_li
It is now longer allowed to create an index on a CLOB or BLOB column (except for in-memory databases or indexes), because recovery doesn't work on such columns. Fulltext indexes on such column are still supported of course.
@changelog_1167_li
@changelog_1169_li
The PUBLIC schema could be renamed, which could result in a database that can't be opened normally. Now it can no longer be renamed. The schema INFORMATION_SCHEMA can also no longer be renamed.
@changelog_1168_li
@changelog_1170_li
Server mode: the problem with server and client using different timezones with different daylight saving rules has been solved (this only applies when both the client and the server use this or a newer version).
@changelog_1169_li
@changelog_1171_li
There is a new system property "h2.storeLocalTime" to avoid problems opening a database file in a timezone that has different daylight saving rules (see also below).
@changelog_1170_li
@changelog_1172_li
Date, time, and timestamp data type processing has been re-implemented. Time now supports nanoseconds resolution and now now supports a wider range (negative and large values), similar to PostgreSQL.
@changelog_1171_li
@changelog_1173_li
SQL statements with a non-breaking space were considered invalid.
@changelog_1172_h2
@changelog_1174_h2
Version 1.3.157 (2011-06-25)
@changelog_1173_li
@changelog_1175_li
The syntax for CREATE TABLE ... AS SELECT ... has been changed: options such as NOT PERSISTENT are now before the query (AS SELECT), because otherwise they might be interpreted as a part of the query.
@changelog_1174_li
@changelog_1176_li
With version 1.3.156, the DB2 mode could not be used with CLOB and BLOB data.
@changelog_1175_li
@changelog_1177_li
When upgrading from an older 1.3.x version to version 1.3.156, CLOB and BLOB data was lost in many cases.
@changelog_1176_li
@changelog_1178_li
The optimization for COUNT(..) on columns that are not nullable was also used for COUNT(DISTINCT ..), which is incorrect.
@changelog_1177_li
@changelog_1179_li
PgServer: non-admin users could not open a database.
@changelog_1178_li
@changelog_1180_li
Non-admin users could not open a database using a mode (MODE=xxx) if the database was already open, even if the mode matched.
@changelog_1179_li
@changelog_1181_li
The SQL state of the following exceptions has been changed: From 90009, 90010, 90011 to 22007: "Cannot parse DATE/TIME/TIMESTAMP constant ...".
@changelog_1180_li
@changelog_1182_li
There is a problem when opening a database file in a timezone that has different daylight saving rules: the time part of dates where the daylight saving doesn't match will differ. This is not a problem within regions that use the same rules (such as, within USA, or within Europe), even if the timezone itself is different. As a workaround, export the database to a SQL script using the old timezone, and create a new database in the new timezone. The same problem occurs when accessing a database over TCP/IP if the client and server timezones use different rules, if an old server or client is used.
@cheatSheet_1000_h1
......
......@@ -1634,540 +1634,546 @@ Centralリポジトリの利用
#Next Version (unreleased)
@changelog_1002_li
#Statement.getQueryTimeout(): only the first call to this method will query the database. If the query timeout was changed in another way than calling setQueryTimeout, this method will always return the last value. This was changed because Hibernate calls getQueryTimeout() a lot.
#H2 Console system tray icon: support for Mac OS X retina displays.
@changelog_1003_li
#Issue 416: PreparedStatement.setNString throws AbstractMethodError. All implemented JDBC 4 methods that don't break compatibility with Java 5 are now included in the default jar file.
#The CreateCluster tool could not be used if the source database contained a CLOB or BLOB. The root cause was that the TCP server did not synchronize on the session, which caused a problem when using the exclusive mode.
@changelog_1004_li
#Issue 414: for some functions, the parameters were evaluated twice (for example "char(nextval(..))" ran "nextval(..)" twice).
#Statement.getQueryTimeout(): only the first call to this method will query the database. If the query timeout was changed in another way than calling setQueryTimeout, this method will always return the last value. This was changed because Hibernate calls getQueryTimeout() a lot.
@changelog_1005_li
#The ResultSetMetaData methods getSchemaName and getTableName could return null instead of "" (an empty string) as specified in the JDBC API.
#Issue 416: PreparedStatement.setNString throws AbstractMethodError. All implemented JDBC 4 methods that don't break compatibility with Java 5 are now included in the default jar file.
@changelog_1006_li
#Issue 414: for some functions, the parameters were evaluated twice (for example "char(nextval(..))" ran "nextval(..)" twice).
@changelog_1007_li
#The ResultSetMetaData methods getSchemaName and getTableName could return null instead of "" (an empty string) as specified in the JDBC API.
@changelog_1008_li
#Added compatibility for "SET NAMES" query in MySQL compatibility mode.
@changelog_1007_h2
@changelog_1009_h2
#Version 1.3.168 (2012-07-13)
@changelog_1008_li
@changelog_1010_li
#The message "Transaction log could not be truncated" was sometimes written to the .trace.db file even if there was no problem truncating the transaction log.
@changelog_1009_li
@changelog_1011_li
#New system property "h2.serializeJavaObject" (default: true) that allows to disable serializing Java objects, so that the objects compareTo and toString methods can be used.
@changelog_1010_li
@changelog_1012_li
#Dylan has translated the H2 Console tool to Korean. Thanks a lot!
@changelog_1011_li
@changelog_1013_li
#Executing the statement CREATE INDEX IF ALREADY EXISTS if the index already exists no longer fails for a read only database.
@changelog_1012_li
@changelog_1014_li
#MVCC: concurrently updating a row could result in the row to appear deleted in the second connection, if there are multiple unique indexes (or a primary key and at least one unique index). Thanks a lot to Teruo for the patch!
@changelog_1013_li
@changelog_1015_li
#Fulltext search: in-memory Lucene indexes are now supported.
@changelog_1014_li
@changelog_1016_li
#Fulltext search: UUID primary keys are now supported.
@changelog_1015_li
@changelog_1017_li
#Apache Tomcat 7.x will now longer log a warning when unloading the web application, if using a connection pool.
@changelog_1016_li
@changelog_1018_li
#H2 Console: support the Midori browser (for Debian / Raspberry Pi)
@changelog_1017_li
@changelog_1019_li
#When opening a remote session, don't open a temporary file if the trace level is set to zero
@changelog_1018_li
@changelog_1020_li
#Use HMAC for authenticating remote LOB id's, removing the need for maintaining a cache, and removing the limit on the number of LOBs per result set.
@changelog_1019_li
@changelog_1021_li
#H2 Console: HTML and XML documents can now be edited in an updatable result set. There is (limited) support for editing multi-line documents.
@changelog_1020_h2
@changelog_1022_h2
#Version 1.3.167 (2012-05-23)
@changelog_1021_li
@changelog_1023_li
#H2 Console: when editing a row, an empty varchar column was replaced with a single space.
@changelog_1022_li
@changelog_1024_li
#Lukas Eder has updated the jOOQ documentation.
@changelog_1023_li
@changelog_1025_li
#Some nested joins could not be executed, for example: select * from (select * from (select * from a) a right join b b) c;
@changelog_1024_li
@changelog_1026_li
#MS SQL Server compatibility: ISNULL is now an alias for IFNULL.
@changelog_1025_li
@changelog_1027_li
#Terrence Huang has completed the translation of the H2 Console tool to Chinese. Thanks a lot!
@changelog_1026_li
@changelog_1028_li
#Server mode: the number of CLOB / BLOB values that were cached on the server is now the maximum of: 5 times the SERVER_RESULT_SET_FETCH_SIZE (which is 100 by default), and SysProperties.SERVER_CACHED_OBJECTS.
@changelog_1027_li
@changelog_1029_li
#In the trace file, the query execution time was incorrect in some cases, specially for the statement SET TRACE_LEVEL_FILE 2.
@changelog_1028_li
@changelog_1030_li
#The feature LOG_SIZE_LIMIT that was introduced in version 1.3.165 did not always work correctly (specially with regards to multithreading) and has been removed. The message "Transaction log could not be truncated" is still written to the .trace.db file if required.
@changelog_1029_li
@changelog_1031_li
#Then reading from a resource using the prefix "classpath:", the ContextClassLoader is now used if the resource can't be read otherwise.
@changelog_1030_li
@changelog_1032_li
#DatabaseEventListener now calls setProgress whenever a statement starts and ends.
@changelog_1031_li
@changelog_1033_li
#DatabaseEventListener now calls setProgress periodically while a statement is running.
@changelog_1032_li
@changelog_1034_li
#The table INFORMATION_SCHEMA.FUNCTION_ALIASES now includes a column TYPE_NAME.
@changelog_1033_li
@changelog_1035_li
#Issue 378: when using views, the wrong values were bound to a parameter in some cases.
@changelog_1034_li
@changelog_1036_li
#Terrence Huang has translated the error messages to Chinese. Thanks a lot!
@changelog_1035_li
@changelog_1037_li
#TRUNC was added as an alias for TRUNCATE.
@changelog_1036_li
@changelog_1038_li
#Small optimisation for accessing result values by column name.
@changelog_1037_li
@changelog_1039_li
#Fix for bug in Statement.getMoreResults(int)
@changelog_1038_li
@changelog_1040_li
#The SCRIPT statements now supports filtering by schema and table. Thanks a lot to Jacob Qvortrup for providing the patch!
@changelog_1039_h2
@changelog_1041_h2
#Version 1.3.166 (2012-04-08)
@changelog_1040_li
@changelog_1042_li
#Indexes on column that are larger than half the page size (wide indexes) could sometimes get corrupt, resulting in an ArrayIndexOutOfBoundsException in PageBtree.getRow or "Row not found" in PageBtreeLeaf. Also, such indexes used too much disk space.
@changelog_1041_li
@changelog_1043_li
#Server mode: when retrieving more than 64 rows each containing a CLOB or BLOB, the error message "The object is already closed" was thrown.
@changelog_1042_li
@changelog_1044_li
#ConvertTraceFile: the time in the trace file is now parsed as a long.
@changelog_1043_li
@changelog_1045_li
#Invalid connection settings are now detected.
@changelog_1044_li
@changelog_1046_li
#Issue 387: WHERE condition getting pushed into sub-query with LIMIT.
@changelog_1045_h2
@changelog_1047_h2
#Version 1.3.165 (2012-03-18)
@changelog_1046_li
@changelog_1048_li
#Better string representation for decimal values (for example 0.00000000 instead of 0E-26).
@changelog_1047_li
@changelog_1049_li
#Prepared statements could only be re-used if the same data types were used the second time they were executed.
@changelog_1048_li
@changelog_1050_li
#In error messages about referential constraint violation, the values are now included.
@changelog_1049_li
@changelog_1051_li
#SCRIPT and RUNSCRIPT: the password can now be set using a prepared statement. Previously, it was required to be a literal in the SQL statement.
@changelog_1050_li
@changelog_1052_li
#MySQL compatibility: SUBSTR with a negative start index now works like MySQL.
@changelog_1051_li
@changelog_1053_li
#When enabling autocommit, the transaction is now committed (as required by the JDBC API).
@changelog_1052_li
@changelog_1054_li
#The shell script <code>h2.sh</code> did not work with spaces in the path. It also works now with quoted spaces in the argument list. Thanks a lot to Shimizu Fumiyuki for the patch!
@changelog_1053_li
@changelog_1055_li
#If the transaction log could not be truncated because of an uncommitted transaction, now "Transaction log could not be truncated" is written to the .trace.db file. Before, the database file was growing and it was hard to find out what the root cause was. To avoid the database file from growing, a new feature to automatically rollback the oldest transaction is available now. To enable it, append ;LOG_SIZE_LIMIT=32 to the database URL (in that case, the oldest session is rolled back if the transaction log is 32 MB).
@changelog_1054_li
@changelog_1056_li
#ALTER TABLE ADD can now add more than one column at a time.
@changelog_1055_li
@changelog_1057_li
#Issue 380: ALTER TABLE ADD FOREIGN KEY with an explicit index didn't verify the index can be used, which would lead to a NullPointerException later on.
@changelog_1056_li
@changelog_1058_li
#Issue 384: the wrong kind of exception (NullPointerException) was thrown in a UNION query with an incorrect ORDER BY expression.
@changelog_1057_li
@changelog_1059_li
#Issue 362: support LIMIT in UPDATE statements.
@changelog_1058_li
@changelog_1060_li
#Browser: if no default browser is set, Google Chrome is now used if available. If not available, then Konqueror, Netscape, or Opera is used if available (as before).
@changelog_1059_li
@changelog_1061_li
#CSV tool: new feature to disable writing the column header (option writeColumnHeader).
@changelog_1060_li
@changelog_1062_li
#CSV tool: new feature to preserve the case sensitivity of column names (option caseSensitiveColumnNames).
@changelog_1061_li
@changelog_1063_li
#PostgreSQL compatibility: LOG(x) is base 10 in the PostgreSQL mode.
@changelog_1062_h2
@changelog_1064_h2
#Version 1.3.164 (2012-02-03)
@changelog_1063_li
@changelog_1065_li
#New built-in function ARRAY_CONTAINS.
@changelog_1064_li
@changelog_1066_li
#Some DatabaseMetaData methods didn't work when using ALLOW_LITERALS NONE.
@changelog_1065_li
@changelog_1067_li
#Trying to convert a VARCHAR to UUID will now fail if the text contains a character that is not a hex digit, '-', or not a whitespace.
@changelog_1066_li
@changelog_1068_li
#TriggerAdapter: in "before" triggers, values can be changed using the ResultSet.updateX methods.
@changelog_1067_li
@changelog_1069_li
#Creating a table with column data type NULL now works (even if not very useful).
@changelog_1068_li
@changelog_1070_li
#ALTER TABLE ALTER COLUMN no longer copies the data for widening conversions (for example if only the precision was increased) unless necessary.
@changelog_1069_li
@changelog_1071_li
#Multi-threaded kernel: concurrently running an online backup and updating the database resulted in a broken (transactionally incorrect) backup file in some cases.
@changelog_1070_li
@changelog_1072_li
#The script created by SCRIPT DROP did not always work if multiple views existed that depend on each other.
@changelog_1071_li
@changelog_1073_li
#MathUtils.getSecureRandom could log a warning to System.err in case the /dev/random is very slow, and the System.getProperties().toString() returned a string larger than 64 KB.
@changelog_1072_li
@changelog_1074_li
#The database file locking mechanism "FS" (;FILE_LOCK=FS) did not work on Linux since version 1.3.161.
@changelog_1073_li
@changelog_1075_li
#Sequences: the functions NEXTVAL and CURRVAL did not work as expected when using quoted, mixed case sequence names.
@changelog_1074_li
@changelog_1076_li
#The constructor for Csv objects is now public, and Csv.getInstance() is now deprecated.
@changelog_1075_li
@changelog_1077_li
#SimpleResultSet: updating a result set is now supported.
@changelog_1076_li
@changelog_1078_li
#Database URL: extra semicolons are not supported.
@changelog_1077_h2
@changelog_1079_h2
#Version 1.3.163 (2011-12-30)
@changelog_1078_li
@changelog_1080_li
#On out of disk space, the database could get corrupt sometimes, if later write operations succeeded. The same problem happened on other kinds of I/O exceptions (where one or some of the writes fail, but subsequent writes succeed). Now the file is closed on the first unsuccessful write operation, so that later requests fail consistently.
@changelog_1079_li
@changelog_1081_li
#DatabaseEventListener.diskSpaceIsLow() is no longer supported because it can't be guaranteed that it always works correctly.
@changelog_1080_li
@changelog_1082_li
#XMLTEXT now supports an optional parameter to escape newlines.
@changelog_1081_li
@changelog_1083_li
#XMLNODE now support an optional parameter to disable indentation.
@changelog_1082_li
@changelog_1084_li
#Csv.write now formats date, time, and timestamp values using java.sql.Date / Time / Timestamp.toString(). Previously, ResultSet.getString() was used, which didn't work well for Oracle.
@changelog_1083_li
@changelog_1085_li
#The shell script <code>h2.sh</code> can now be run from within a different directory. Thanks a lot to Daniel Serodio for the patch!
@changelog_1084_li
@changelog_1086_li
#The page size of a persistent database can now be queries using: select * from information_schema.settings where name = 'info.PAGE_SIZE'
@changelog_1085_li
@changelog_1087_li
#In the server mode, BLOB and CLOB objects are no longer closed when the result set is closed (as required by the JDBC spec).
@changelog_1086_h2
@changelog_1088_h2
#Version 1.3.162 (2011-11-26)
@changelog_1087_li
@changelog_1089_li
#The following system properties are no longer supported: <code>h2.allowBigDecimalExtensions</code>, <code>h2.emptyPassword</code>, <code>h2.minColumnNameMap</code>, <code>h2.returnLobObjects</code>, <code>h2.webMaxValueLength</code>.
@changelog_1088_li
@changelog_1090_li
#When using a VPN, starting a H2 server did not work (for some VPN software).
@changelog_1089_li
@changelog_1091_li
#Oracle compatibility: support for DECODE(...).
@changelog_1090_li
@changelog_1092_li
#Lucene fulltext search: creating an index is now faster if the table already contains data. Thanks a lot to Angel Leon from the FrostWire Team for the patch!
@changelog_1091_li
@changelog_1093_li
#Update statements with a column list in brackets did not work if the list only contains one column. Example: update test set (id)=(id).
@changelog_1092_li
@changelog_1094_li
#Read-only databases in a zip file did not work when using the -baseDir option.
@changelog_1093_li
@changelog_1095_li
#Issue 334: SimpleResultSet.getString now also works for Clob columns.
@changelog_1094_li
@changelog_1096_li
#Subqueries with an aggregate did not always work. Example: select (select count(*) from test where a = t.a and b = 0) from test t group by a
@changelog_1095_li
@changelog_1097_li
#Server: in some (theoretical) cases, exceptions while closing the connection were ignored.
@changelog_1096_li
@changelog_1098_li
#Server.createTcpServer, createPgServer, createWebServer: invalid arguments are now detected.
@changelog_1097_li
@changelog_1099_li
#The selectivity of LOB columns is no longer calculated because indexes on LOB columns are not supported (however this should have little effect on performance, as the selectivity is calculated from the hash code and not the data).
@changelog_1098_li
@changelog_1100_li
#New experimental system property "h2.modifyOnWrite": when enabled, the database file is only modified when writing to the database. When enabled, the serialized file lock is much faster for read-only operations.
@changelog_1099_li
@changelog_1101_li
#A NullPointerException could occur in TableView.isDeterministic for invalid views.
@changelog_1100_li
@changelog_1102_li
#Issue 180: when deserializing objects, the context class loader is used instead of the default class loader if the system property "h2.useThreadContextClassLoader" is set. Thanks a lot to Noah Fontes for the patch!
@changelog_1101_li
@changelog_1103_li
#When using the exclusive mode, LOB operations could cause the thread to block. This also affected the CreateCluster tool (when using BLOB or CLOB data).
@changelog_1102_li
@changelog_1104_li
#The optimization for "group by" was not working correctly if the group by column was aliased in the select list.
@changelog_1103_li
@changelog_1105_li
#Issue 326: improved support for case sensitive (mixed case) identifiers without quotes when using DATABASE_TO_UPPER=FALSE.
@changelog_1104_h2
@changelog_1106_h2
#Version 1.3.161 (2011-10-28)
@changelog_1105_li
@changelog_1107_li
#Issue 351: MySQL mode: can not create a table with the column "KEY", and can not open databases where such a table already exists.
@changelog_1106_li
@changelog_1108_li
#TCP server: when using the trace option ("-trace"), the trace output contained unnecessary stack traces when stopping the server.
@changelog_1107_li
@changelog_1109_li
#Issue 354: when using the multi-threaded kernel option, and multiple threads concurrently prepared SQL statements that use the same view or the same index of a view, then in some cases an infinite loop could occur.
@changelog_1108_li
@changelog_1110_li
#Issue 350: when using instead of triggers, executeUpdate for delete operations always returned 0.
@changelog_1109_li
@changelog_1111_li
#Some timestamps with timezone were not converted correctly. For example, in the PST timezone, the timestamp 2011-10-26 08:00:00Z was converted to 2011-10-25 25:00:00 instead of 2011-10-26 01:00:00. Depending on the database operation, this caused subsequent error.
@changelog_1110_li
@changelog_1112_li
#Sequences with cache size smaller than 0 did not work correctly.
@changelog_1111_li
@changelog_1113_li
#Issue 356: for Blob objects, InputStream.skip() returned 0, causing EOFException in Blob.getBytes(.., ..).
@changelog_1112_li
@changelog_1114_li
#Updatable result sets: if the value is not set when inserting a new row, the default value is now used (the same behavior as MySQL, PostgreSQL, and Apache Derby) instead of NULL.
@changelog_1113_li
@changelog_1115_li
#Conditions of the form IN(SELECT ...) where slow and increased the database size if the subquery result size was larger then the configured MAX_MEMORY_ROWS.
@changelog_1114_li
@changelog_1116_li
#Issue 347: the RunScript and Shell tools now ignore empty statements.
@changelog_1115_li
@changelog_1117_li
#Issue 246: improved error message for data conversion problems.
@changelog_1116_li
@changelog_1118_li
#Issue 344: the build now supports a custom Maven repository location.
@changelog_1117_li
@changelog_1119_li
#Issue 334: Java functions that return CLOB or BLOB objects could not be used as tables.
@changelog_1118_li
@changelog_1120_li
#SimpleResultSet now supports getColumnTypeName and getColumnClassName.
@changelog_1119_li
@changelog_1121_li
#SimpleResultSet now has minimal BLOB and CLOB support.
@changelog_1120_li
@changelog_1122_li
#Improved performance for large databases (many GB), and databases with a small page size.
@changelog_1121_li
@changelog_1123_li
#The Polish translation has been improved by Jaros&#322;aw Kokoci&#324;ski.
@changelog_1122_li
@changelog_1124_li
#When using the built-in connection pool, after calling the "shutdown" SQL statement, a warning was written to the .trace.db file about an unclosed connection.
@changelog_1123_li
@changelog_1125_li
#Improved compatibility for "fetch first / next row(s)". Thanks a lot to litailang for the patch!
@changelog_1124_li
@changelog_1126_li
#Improved compatibility with the Java 7 FileSystem abstraction.
@changelog_1125_h2
@changelog_1127_h2
#Version 1.3.160 (2011-09-11)
@changelog_1126_li
@changelog_1128_li
#Computed columns could not refer to itself.
@changelog_1127_li
@changelog_1129_li
#Issue 340: Comparison with "x = all(select ...)" or similar in a view or subquery that was used as a table returned the wrong result.
@changelog_1128_li
@changelog_1130_li
#Comparison with "x = all(select ...)" or similar returned the wrong result for some cases (for example if the subquery returned no rows, or multiple rows with the same value, or null, or if x was null).
@changelog_1129_li
@changelog_1131_li
#Issue 335: Could not run DROP ALL OBJECTS DELETE FILES on older databases with CLOB or BLOB data. The problem was that the metadata table was not locked in some cases, so that a rollback could result in a corrupt database in a database if the lob storage was upgraded.
@changelog_1130_li
@changelog_1132_li
#Source code switching using //## has been simplified. The Java 1.5 tag has been removed because is no longer needed.
@changelog_1131_li
@changelog_1133_li
#The JDBC methods PreparedStatement.setTimestamp, setTime, and setDate with a calendar, and the methods ResultSet.getTimestamp, getTime, and getDate with a calendar converted the value in the wrong way, so that for some timestamps the converted value was wrong (where summertime starts, one hour per year).
@changelog_1132_li
@changelog_1134_li
#Invalid tables names in 'order by' columns were not detected in some cases. Example: select x from dual order by y.x
@changelog_1133_li
@changelog_1135_li
#Issue 329: CASE expression: data type problem is not detected.
@changelog_1134_li
@changelog_1136_li
#Issue 311: File lock mode serialized: selecting the next value from a sequence didn't work after a pause, because the database thought this is a read-only operation.
@changelog_1135_h2
@changelog_1137_h2
#Version 1.3.159 (2011-08-13)
@changelog_1136_li
@changelog_1138_li
#Creating a temporary table with the option 'transactional' will now also create the indexes in transactional mode, if the indexes are included in the 'create table' statement as follows: "create local temporary table temp(id int primary key, name varchar, constraint x index(name)) transactional".
@changelog_1137_li
@changelog_1139_li
#The database file size grows now 35%, but at most 256 MB at a time.
@changelog_1138_li
@changelog_1140_li
#Improved error message on network configuration problems.
@changelog_1139_li
@changelog_1141_li
#The build now support an offline build using ./build.sh offline. This will list the required dependencies if jar files are missing.
@changelog_1140_li
@changelog_1142_li
#The BLOB / CLOB data was dropped a little bit before the table was dropped. This could cause "lob not found" errors when the process was killed while a table was dropped.
@changelog_1141_li
@changelog_1143_li
#"group_concat(distinct ...)" did not work correctly in a view or subquery (the 'distinct' was lost). Example: select * from (select group_concat(distinct 1) from system_range(1, 3));
@changelog_1142_li
@changelog_1144_li
#Database URLs can now be re-mapped to another URL using the system property "h2.urlMap", which points to a properties file with database URL mappings.
@changelog_1143_li
@changelog_1145_li
#When using InputStream.skip, trying to read past the end of a BLOB failed with the exception "IO Exception: Missing lob entry: ..." [90028-...].
@changelog_1144_li
@changelog_1146_li
#The in-memory file system "memFS:" now has limited support for directories.
@changelog_1145_li
@changelog_1147_li
#To test recovery, append ;RECOVER_TEST=64 to the database URL. This will simulate an application crash after each 64 writes to the database file. A log file named databaseName.h2.db.log is created that lists the operations. The recovery is tested using an in-memory file system, that means it may require a larger heap setting.
@changelog_1146_li
@changelog_1148_li
#Converting a hex string to a byte array is now faster.
@changelog_1147_li
@changelog_1149_li
#The SQL statement "shutdown defrag" could corrupt the database if the process was killed while the shutdown was in progress. The same problem could occur when the database setting "defrag_always" was used.
@changelog_1148_h2
@changelog_1150_h2
#Version 1.3.158 (2011-07-17)
@changelog_1149_li
@changelog_1151_li
#Fulltext search (native): after re-opening the connection once the fulltext index was created, a transaction rollback did not roll back the modifications in the index.
@changelog_1150_li
@changelog_1152_li
#Support for ROW_NUMBER() OVER() as an alias for ROWNUM() for compatibility with PostgreSQL and Apache Derby.
@changelog_1151_li
@changelog_1153_li
#Issue 325: a deadlock in the fulltext search could occur if the connection that was used while initializing the fulltext search was later used to query the database. This was actually not only a problem for fulltext search, but also for other triggers that used the initializing connection later on.
@changelog_1152_li
@changelog_1154_li
#DATABASE_TO_UPPER: when set to false, all identifier names (table names, column names) are case sensitive (except aggregate, built-in functions, data types, and keywords). This is for improved compatibility with MySQL and PostgreSQL.
@changelog_1153_li
@changelog_1155_li
#When upgrading from an older 1.3.x version to version 1.3.157, when using BLOB or CLOB data, the database could only be opened once.
@changelog_1154_li
@changelog_1156_li
#SUM on a boolean expression will now count the number of 'true' rows.
@changelog_1155_li
@changelog_1157_li
#Simplified test cases using assertThrows(...).
@changelog_1156_li
@changelog_1158_li
#A Java function that returns a result set that was generated using the provided connection could cause an internal error in some cases. Now such result sets are copied early on.
@changelog_1157_li
@changelog_1159_li
#Data type RESULT_SET: information_schema.function_aliases returned type 0; now type -10 is returned (the same as Oracle: OracleTypes.CURSOR = -10).
@changelog_1158_li
@changelog_1160_li
#Data type RESULT_SET: tables with columns of type RESULT_SET could be created, but no data could be persisted in this column.
@changelog_1159_li
@changelog_1161_li
#H2 Console: improved system tray icon for Mac OS X (transparent background).
@changelog_1160_li
@changelog_1162_li
#String.toUpperCase() was used a few places, which is problematic when using the Turkish locale. The method has been replaced with toUpperCase(Locale.ENGLISH) to solve such problems.
@changelog_1161_li
@changelog_1163_li
#Shell tool: the built-in command "distinct" has been removed (use the SQL statements "show tables" / "show columns from tableName" instead). The result set formatting has been improved.
@changelog_1162_li
@changelog_1164_li
#MERGE: if a unique key was violated (but not the primary key or the key columns of the merge itself), the wrong exception was thrown.
@changelog_1163_li
@changelog_1165_li
#IBM DB2 and Apache Derby compatibility: support the pseudo-table SYSIBM.SYSDUMMY1.
@changelog_1164_li
@changelog_1166_li
#ROWNUM() did not work in combination with IN(..). The following query did not work as expected: select * from (select rownum r from test) where r in (1, 2).
@changelog_1165_li
@changelog_1167_li
#H2 Console autocomplete: the autocomplete feature didn't support quoted names.
@changelog_1166_li
@changelog_1168_li
#It is now longer allowed to create an index on a CLOB or BLOB column (except for in-memory databases or indexes), because recovery doesn't work on such columns. Fulltext indexes on such column are still supported of course.
@changelog_1167_li
@changelog_1169_li
#The PUBLIC schema could be renamed, which could result in a database that can't be opened normally. Now it can no longer be renamed. The schema INFORMATION_SCHEMA can also no longer be renamed.
@changelog_1168_li
@changelog_1170_li
#Server mode: the problem with server and client using different timezones with different daylight saving rules has been solved (this only applies when both the client and the server use this or a newer version).
@changelog_1169_li
@changelog_1171_li
#There is a new system property "h2.storeLocalTime" to avoid problems opening a database file in a timezone that has different daylight saving rules (see also below).
@changelog_1170_li
@changelog_1172_li
#Date, time, and timestamp data type processing has been re-implemented. Time now supports nanoseconds resolution and now now supports a wider range (negative and large values), similar to PostgreSQL.
@changelog_1171_li
@changelog_1173_li
#SQL statements with a non-breaking space were considered invalid.
@changelog_1172_h2
@changelog_1174_h2
#Version 1.3.157 (2011-06-25)
@changelog_1173_li
@changelog_1175_li
#The syntax for CREATE TABLE ... AS SELECT ... has been changed: options such as NOT PERSISTENT are now before the query (AS SELECT), because otherwise they might be interpreted as a part of the query.
@changelog_1174_li
@changelog_1176_li
#With version 1.3.156, the DB2 mode could not be used with CLOB and BLOB data.
@changelog_1175_li
@changelog_1177_li
#When upgrading from an older 1.3.x version to version 1.3.156, CLOB and BLOB data was lost in many cases.
@changelog_1176_li
@changelog_1178_li
#The optimization for COUNT(..) on columns that are not nullable was also used for COUNT(DISTINCT ..), which is incorrect.
@changelog_1177_li
@changelog_1179_li
#PgServer: non-admin users could not open a database.
@changelog_1178_li
@changelog_1180_li
#Non-admin users could not open a database using a mode (MODE=xxx) if the database was already open, even if the mode matched.
@changelog_1179_li
@changelog_1181_li
#The SQL state of the following exceptions has been changed: From 90009, 90010, 90011 to 22007: "Cannot parse DATE/TIME/TIMESTAMP constant ...".
@changelog_1180_li
@changelog_1182_li
#There is a problem when opening a database file in a timezone that has different daylight saving rules: the time part of dates where the daylight saving doesn't match will differ. This is not a problem within regions that use the same rules (such as, within USA, or within Europe), even if the timezone itself is different. As a workaround, export the database to a SQL script using the old timezone, and create a new database in the new timezone. The same problem occurs when accessing a database over TCP/IP if the client and server timezones use different rules, if an old server or client is used.
@cheatSheet_1000_h1
......@@ -2927,7 +2933,7 @@ ORDER BY, GROUP BY, HAVING, UNION, LIMIT, TOP
# This comparison is based on H2 1.3, <a href="http://db.apache.org/derby">Apache Derby version 10.8</a>, <a href="http://hsqldb.org">HSQLDB 2.2</a>, <a href="http://mysql.com">MySQL 5.5</a>, <a href="http://www.postgresql.org">PostgreSQL 9.0</a>.
@features_1088_th
#Feature #H2
#Feature
@features_1089_th
H2
......@@ -2981,7 +2987,7 @@ Pure Java
非対応
@features_1106_td
#In-Memory Mode #対応
#In-Memory Mode
@features_1107_td
対応
......@@ -2999,13 +3005,13 @@ Pure Java
非対応
@features_1112_td
#Explain Plan #対応
#Explain Plan
@features_1113_td
対応
@features_1114_td
#Yes *12 #対応
#Yes *12
@features_1115_td
対応
......@@ -3017,7 +3023,7 @@ Pure Java
対応
@features_1118_td
#Built-in Clustering / Replication #対応
#Built-in Clustering / Replication
@features_1119_td
対応
......@@ -3044,7 +3050,7 @@ Pure Java
#Yes *10
@features_1127_td
#Yes *10 #非対応
#Yes *10
@features_1128_td
非対応
......@@ -3065,7 +3071,7 @@ Pure Java
#Partially *1
@features_1134_td
#Partially *2 #非対応
#Partially *2
@features_1135_td
非対応
......@@ -3107,7 +3113,7 @@ ODBCドライバ
対応
@features_1148_td
#Domains (User-Defined Types) #対応
#Domains (User-Defined Types)
@features_1149_td
対応
......@@ -3146,13 +3152,13 @@ ODBCドライバ
#Row Level Locking
@features_1161_td
#Yes *9 #対応
#Yes *9
@features_1162_td
対応
@features_1163_td
#Yes *9 #対応
#Yes *9
@features_1164_td
対応
......@@ -3161,7 +3167,7 @@ ODBCドライバ
対応
@features_1166_td
#Multi Version Concurrency #対応
#Multi Version Concurrency
@features_1167_td
対応
......@@ -3182,7 +3188,7 @@ ODBCドライバ
#Multi-Threaded Statement Processing
@features_1173_td
#No *11 #対応
#No *11
@features_1174_td
対応
......@@ -3197,13 +3203,13 @@ ODBCドライバ
対応
@features_1178_td
#Role Based Security #対応
#Role Based Security
@features_1179_td
対応
@features_1180_td
#Yes *3 #対応
#Yes *3
@features_1181_td
対応
......@@ -3215,13 +3221,13 @@ ODBCドライバ
対応
@features_1184_td
#Updatable Result Sets #対応
#Updatable Result Sets
@features_1185_td
対応
@features_1186_td
#Yes *7 #対応
#Yes *7
@features_1187_td
対応
......@@ -3233,7 +3239,7 @@ ODBCドライバ
対応
@features_1190_td
#Sequences #対応
#Sequences
@features_1191_td
対応
......@@ -3251,13 +3257,13 @@ ODBCドライバ
対応
@features_1196_td
#Limit and Offset #対応
#Limit and Offset
@features_1197_td
対応
@features_1198_td
#Yes *13 #対応
#Yes *13
@features_1199_td
対応
......@@ -3275,7 +3281,7 @@ ODBCドライバ
#No *15
@features_1204_td
#No *15 #非対応
#No *15
@features_1205_td
非対応
......@@ -3287,13 +3293,13 @@ ODBCドライバ
対応
@features_1208_td
#Temporary Tables #対応
#Temporary Tables
@features_1209_td
対応
@features_1210_td
#Yes *4 #対応
#Yes *4
@features_1211_td
対応
......@@ -3305,13 +3311,13 @@ ODBCドライバ
対応
@features_1214_td
#Information Schema #対応
#Information Schema
@features_1215_td
対応
@features_1216_td
#No *8 #対応
#No *8
@features_1217_td
対応
......@@ -3323,7 +3329,7 @@ ODBCドライバ
対応
@features_1220_td
#Computed Columns #対応
#Computed Columns
@features_1221_td
対応
......@@ -3341,13 +3347,13 @@ ODBCドライバ
#Yes *6
@features_1226_td
#Case Insensitive Columns #対応
#Case Insensitive Columns
@features_1227_td
対応
@features_1228_td
#Yes *14 #対応
#Yes *14
@features_1229_td
対応
......@@ -3359,7 +3365,7 @@ ODBCドライバ
#Yes *6
@features_1232_td
#Custom Aggregate Functions #対応
#Custom Aggregate Functions
@features_1233_td
対応
......@@ -3377,7 +3383,7 @@ ODBCドライバ
対応
@features_1238_td
#CLOB/BLOB Compression #対応
#CLOB/BLOB Compression
@features_1239_td
対応
......@@ -3890,13 +3896,13 @@ Read
# CALL SELECT MAX(ID) FROM TEST;
@features_1409_td
# SCRIPT; #Write
# SCRIPT;
@features_1410_td
Write
@features_1411_td
#SELECT * FROM TEST WHERE 1=0 FOR UPDATE; #Write
#SELECT * FROM TEST WHERE 1=0 FOR UPDATE;
@features_1412_td
Write
......@@ -3911,7 +3917,7 @@ Write
# UPDATE TEST SET NAME='Hi';
@features_1416_td
# DELETE FROM TEST; #Write
# DELETE FROM TEST;
@features_1417_td
Write
......
......@@ -543,185 +543,187 @@ build_1111_li=The rail images (one straight, four junctions, two turns) are gene
build_1112_p=\ To generate railroad diagrams for other grammars, see the package <code>org.h2.jcr</code>. This package is used to generate the SQL-2 railroad diagrams for the JCR 2.0 specification.
changelog_1000_h1=Change Log
changelog_1001_h2=Next Version (unreleased)
changelog_1002_li=Statement.getQueryTimeout()\: only the first call to this method will query the database. If the query timeout was changed in another way than calling setQueryTimeout, this method will always return the last value. This was changed because Hibernate calls getQueryTimeout() a lot.
changelog_1003_li=Issue 416\: PreparedStatement.setNString throws AbstractMethodError. All implemented JDBC 4 methods that don't break compatibility with Java 5 are now included in the default jar file.
changelog_1004_li=Issue 414\: for some functions, the parameters were evaluated twice (for example "char(nextval(..))" ran "nextval(..)" twice).
changelog_1005_li=The ResultSetMetaData methods getSchemaName and getTableName could return null instead of "" (an empty string) as specified in the JDBC API.
changelog_1006_li=Added compatibility for "SET NAMES" query in MySQL compatibility mode.
changelog_1007_h2=Version 1.3.168 (2012-07-13)
changelog_1008_li=The message "Transaction log could not be truncated" was sometimes written to the .trace.db file even if there was no problem truncating the transaction log.
changelog_1009_li=New system property "h2.serializeJavaObject" (default\: true) that allows to disable serializing Java objects, so that the objects compareTo and toString methods can be used.
changelog_1010_li=Dylan has translated the H2 Console tool to Korean. Thanks a lot\!
changelog_1011_li=Executing the statement CREATE INDEX IF ALREADY EXISTS if the index already exists no longer fails for a read only database.
changelog_1012_li=MVCC\: concurrently updating a row could result in the row to appear deleted in the second connection, if there are multiple unique indexes (or a primary key and at least one unique index). Thanks a lot to Teruo for the patch\!
changelog_1013_li=Fulltext search\: in-memory Lucene indexes are now supported.
changelog_1014_li=Fulltext search\: UUID primary keys are now supported.
changelog_1015_li=Apache Tomcat 7.x will now longer log a warning when unloading the web application, if using a connection pool.
changelog_1016_li=H2 Console\: support the Midori browser (for Debian / Raspberry Pi)
changelog_1017_li=When opening a remote session, don't open a temporary file if the trace level is set to zero
changelog_1018_li=Use HMAC for authenticating remote LOB id's, removing the need for maintaining a cache, and removing the limit on the number of LOBs per result set.
changelog_1019_li=H2 Console\: HTML and XML documents can now be edited in an updatable result set. There is (limited) support for editing multi-line documents.
changelog_1020_h2=Version 1.3.167 (2012-05-23)
changelog_1021_li=H2 Console\: when editing a row, an empty varchar column was replaced with a single space.
changelog_1022_li=Lukas Eder has updated the jOOQ documentation.
changelog_1023_li=Some nested joins could not be executed, for example\: select * from (select * from (select * from a) a right join b b) c;
changelog_1024_li=MS SQL Server compatibility\: ISNULL is now an alias for IFNULL.
changelog_1025_li=Terrence Huang has completed the translation of the H2 Console tool to Chinese. Thanks a lot\!
changelog_1026_li=Server mode\: the number of CLOB / BLOB values that were cached on the server is now the maximum of\: 5 times the SERVER_RESULT_SET_FETCH_SIZE (which is 100 by default), and SysProperties.SERVER_CACHED_OBJECTS.
changelog_1027_li=In the trace file, the query execution time was incorrect in some cases, specially for the statement SET TRACE_LEVEL_FILE 2.
changelog_1028_li=The feature LOG_SIZE_LIMIT that was introduced in version 1.3.165 did not always work correctly (specially with regards to multithreading) and has been removed. The message "Transaction log could not be truncated" is still written to the .trace.db file if required.
changelog_1029_li=Then reading from a resource using the prefix "classpath\:", the ContextClassLoader is now used if the resource can't be read otherwise.
changelog_1030_li=DatabaseEventListener now calls setProgress whenever a statement starts and ends.
changelog_1031_li=DatabaseEventListener now calls setProgress periodically while a statement is running.
changelog_1032_li=The table INFORMATION_SCHEMA.FUNCTION_ALIASES now includes a column TYPE_NAME.
changelog_1033_li=Issue 378\: when using views, the wrong values were bound to a parameter in some cases.
changelog_1034_li=Terrence Huang has translated the error messages to Chinese. Thanks a lot\!
changelog_1035_li=TRUNC was added as an alias for TRUNCATE.
changelog_1036_li=Small optimisation for accessing result values by column name.
changelog_1037_li=Fix for bug in Statement.getMoreResults(int)
changelog_1038_li=The SCRIPT statements now supports filtering by schema and table. Thanks a lot to Jacob Qvortrup for providing the patch\!
changelog_1039_h2=Version 1.3.166 (2012-04-08)
changelog_1040_li=Indexes on column that are larger than half the page size (wide indexes) could sometimes get corrupt, resulting in an ArrayIndexOutOfBoundsException in PageBtree.getRow or "Row not found" in PageBtreeLeaf. Also, such indexes used too much disk space.
changelog_1041_li=Server mode\: when retrieving more than 64 rows each containing a CLOB or BLOB, the error message "The object is already closed" was thrown.
changelog_1042_li=ConvertTraceFile\: the time in the trace file is now parsed as a long.
changelog_1043_li=Invalid connection settings are now detected.
changelog_1044_li=Issue 387\: WHERE condition getting pushed into sub-query with LIMIT.
changelog_1045_h2=Version 1.3.165 (2012-03-18)
changelog_1046_li=Better string representation for decimal values (for example 0.00000000 instead of 0E-26).
changelog_1047_li=Prepared statements could only be re-used if the same data types were used the second time they were executed.
changelog_1048_li=In error messages about referential constraint violation, the values are now included.
changelog_1049_li=SCRIPT and RUNSCRIPT\: the password can now be set using a prepared statement. Previously, it was required to be a literal in the SQL statement.
changelog_1050_li=MySQL compatibility\: SUBSTR with a negative start index now works like MySQL.
changelog_1051_li=When enabling autocommit, the transaction is now committed (as required by the JDBC API).
changelog_1052_li=The shell script <code>h2.sh</code> did not work with spaces in the path. It also works now with quoted spaces in the argument list. Thanks a lot to Shimizu Fumiyuki for the patch\!
changelog_1053_li=If the transaction log could not be truncated because of an uncommitted transaction, now "Transaction log could not be truncated" is written to the .trace.db file. Before, the database file was growing and it was hard to find out what the root cause was. To avoid the database file from growing, a new feature to automatically rollback the oldest transaction is available now. To enable it, append ;LOG_SIZE_LIMIT\=32 to the database URL (in that case, the oldest session is rolled back if the transaction log is 32 MB).
changelog_1054_li=ALTER TABLE ADD can now add more than one column at a time.
changelog_1055_li=Issue 380\: ALTER TABLE ADD FOREIGN KEY with an explicit index didn't verify the index can be used, which would lead to a NullPointerException later on.
changelog_1056_li=Issue 384\: the wrong kind of exception (NullPointerException) was thrown in a UNION query with an incorrect ORDER BY expression.
changelog_1057_li=Issue 362\: support LIMIT in UPDATE statements.
changelog_1058_li=Browser\: if no default browser is set, Google Chrome is now used if available. If not available, then Konqueror, Netscape, or Opera is used if available (as before).
changelog_1059_li=CSV tool\: new feature to disable writing the column header (option writeColumnHeader).
changelog_1060_li=CSV tool\: new feature to preserve the case sensitivity of column names (option caseSensitiveColumnNames).
changelog_1061_li=PostgreSQL compatibility\: LOG(x) is base 10 in the PostgreSQL mode.
changelog_1062_h2=Version 1.3.164 (2012-02-03)
changelog_1063_li=New built-in function ARRAY_CONTAINS.
changelog_1064_li=Some DatabaseMetaData methods didn't work when using ALLOW_LITERALS NONE.
changelog_1065_li=Trying to convert a VARCHAR to UUID will now fail if the text contains a character that is not a hex digit, '-', or not a whitespace.
changelog_1066_li=TriggerAdapter\: in "before" triggers, values can be changed using the ResultSet.updateX methods.
changelog_1067_li=Creating a table with column data type NULL now works (even if not very useful).
changelog_1068_li=ALTER TABLE ALTER COLUMN no longer copies the data for widening conversions (for example if only the precision was increased) unless necessary.
changelog_1069_li=Multi-threaded kernel\: concurrently running an online backup and updating the database resulted in a broken (transactionally incorrect) backup file in some cases.
changelog_1070_li=The script created by SCRIPT DROP did not always work if multiple views existed that depend on each other.
changelog_1071_li=MathUtils.getSecureRandom could log a warning to System.err in case the /dev/random is very slow, and the System.getProperties().toString() returned a string larger than 64 KB.
changelog_1072_li=The database file locking mechanism "FS" (;FILE_LOCK\=FS) did not work on Linux since version 1.3.161.
changelog_1073_li=Sequences\: the functions NEXTVAL and CURRVAL did not work as expected when using quoted, mixed case sequence names.
changelog_1074_li=The constructor for Csv objects is now public, and Csv.getInstance() is now deprecated.
changelog_1075_li=SimpleResultSet\: updating a result set is now supported.
changelog_1076_li=Database URL\: extra semicolons are not supported.
changelog_1077_h2=Version 1.3.163 (2011-12-30)
changelog_1078_li=On out of disk space, the database could get corrupt sometimes, if later write operations succeeded. The same problem happened on other kinds of I/O exceptions (where one or some of the writes fail, but subsequent writes succeed). Now the file is closed on the first unsuccessful write operation, so that later requests fail consistently.
changelog_1079_li=DatabaseEventListener.diskSpaceIsLow() is no longer supported because it can't be guaranteed that it always works correctly.
changelog_1080_li=XMLTEXT now supports an optional parameter to escape newlines.
changelog_1081_li=XMLNODE now support an optional parameter to disable indentation.
changelog_1082_li=Csv.write now formats date, time, and timestamp values using java.sql.Date / Time / Timestamp.toString(). Previously, ResultSet.getString() was used, which didn't work well for Oracle.
changelog_1083_li=The shell script <code>h2.sh</code> can now be run from within a different directory. Thanks a lot to Daniel Serodio for the patch\!
changelog_1084_li=The page size of a persistent database can now be queries using\: select * from information_schema.settings where name \= 'info.PAGE_SIZE'
changelog_1085_li=In the server mode, BLOB and CLOB objects are no longer closed when the result set is closed (as required by the JDBC spec).
changelog_1086_h2=Version 1.3.162 (2011-11-26)
changelog_1087_li=The following system properties are no longer supported\: <code>h2.allowBigDecimalExtensions</code>, <code>h2.emptyPassword</code>, <code>h2.minColumnNameMap</code>, <code>h2.returnLobObjects</code>, <code>h2.webMaxValueLength</code>.
changelog_1088_li=When using a VPN, starting a H2 server did not work (for some VPN software).
changelog_1089_li=Oracle compatibility\: support for DECODE(...).
changelog_1090_li=Lucene fulltext search\: creating an index is now faster if the table already contains data. Thanks a lot to Angel Leon from the FrostWire Team for the patch\!
changelog_1091_li=Update statements with a column list in brackets did not work if the list only contains one column. Example\: update test set (id)\=(id).
changelog_1092_li=Read-only databases in a zip file did not work when using the -baseDir option.
changelog_1093_li=Issue 334\: SimpleResultSet.getString now also works for Clob columns.
changelog_1094_li=Subqueries with an aggregate did not always work. Example\: select (select count(*) from test where a \= t.a and b \= 0) from test t group by a
changelog_1095_li=Server\: in some (theoretical) cases, exceptions while closing the connection were ignored.
changelog_1096_li=Server.createTcpServer, createPgServer, createWebServer\: invalid arguments are now detected.
changelog_1097_li=The selectivity of LOB columns is no longer calculated because indexes on LOB columns are not supported (however this should have little effect on performance, as the selectivity is calculated from the hash code and not the data).
changelog_1098_li=New experimental system property "h2.modifyOnWrite"\: when enabled, the database file is only modified when writing to the database. When enabled, the serialized file lock is much faster for read-only operations.
changelog_1099_li=A NullPointerException could occur in TableView.isDeterministic for invalid views.
changelog_1100_li=Issue 180\: when deserializing objects, the context class loader is used instead of the default class loader if the system property "h2.useThreadContextClassLoader" is set. Thanks a lot to Noah Fontes for the patch\!
changelog_1101_li=When using the exclusive mode, LOB operations could cause the thread to block. This also affected the CreateCluster tool (when using BLOB or CLOB data).
changelog_1102_li=The optimization for "group by" was not working correctly if the group by column was aliased in the select list.
changelog_1103_li=Issue 326\: improved support for case sensitive (mixed case) identifiers without quotes when using DATABASE_TO_UPPER\=FALSE.
changelog_1104_h2=Version 1.3.161 (2011-10-28)
changelog_1105_li=Issue 351\: MySQL mode\: can not create a table with the column "KEY", and can not open databases where such a table already exists.
changelog_1106_li=TCP server\: when using the trace option ("-trace"), the trace output contained unnecessary stack traces when stopping the server.
changelog_1107_li=Issue 354\: when using the multi-threaded kernel option, and multiple threads concurrently prepared SQL statements that use the same view or the same index of a view, then in some cases an infinite loop could occur.
changelog_1108_li=Issue 350\: when using instead of triggers, executeUpdate for delete operations always returned 0.
changelog_1109_li=Some timestamps with timezone were not converted correctly. For example, in the PST timezone, the timestamp 2011-10-26 08\:00\:00Z was converted to 2011-10-25 25\:00\:00 instead of 2011-10-26 01\:00\:00. Depending on the database operation, this caused subsequent error.
changelog_1110_li=Sequences with cache size smaller than 0 did not work correctly.
changelog_1111_li=Issue 356\: for Blob objects, InputStream.skip() returned 0, causing EOFException in Blob.getBytes(.., ..).
changelog_1112_li=Updatable result sets\: if the value is not set when inserting a new row, the default value is now used (the same behavior as MySQL, PostgreSQL, and Apache Derby) instead of NULL.
changelog_1113_li=Conditions of the form IN(SELECT ...) where slow and increased the database size if the subquery result size was larger then the configured MAX_MEMORY_ROWS.
changelog_1114_li=Issue 347\: the RunScript and Shell tools now ignore empty statements.
changelog_1115_li=Issue 246\: improved error message for data conversion problems.
changelog_1116_li=Issue 344\: the build now supports a custom Maven repository location.
changelog_1117_li=Issue 334\: Java functions that return CLOB or BLOB objects could not be used as tables.
changelog_1118_li=SimpleResultSet now supports getColumnTypeName and getColumnClassName.
changelog_1119_li=SimpleResultSet now has minimal BLOB and CLOB support.
changelog_1120_li=Improved performance for large databases (many GB), and databases with a small page size.
changelog_1121_li=The Polish translation has been improved by Jaros&\#322;aw Kokoci&\#324;ski.
changelog_1122_li=When using the built-in connection pool, after calling the "shutdown" SQL statement, a warning was written to the .trace.db file about an unclosed connection.
changelog_1123_li=Improved compatibility for "fetch first / next row(s)". Thanks a lot to litailang for the patch\!
changelog_1124_li=Improved compatibility with the Java 7 FileSystem abstraction.
changelog_1125_h2=Version 1.3.160 (2011-09-11)
changelog_1126_li=Computed columns could not refer to itself.
changelog_1127_li=Issue 340\: Comparison with "x \= all(select ...)" or similar in a view or subquery that was used as a table returned the wrong result.
changelog_1128_li=Comparison with "x \= all(select ...)" or similar returned the wrong result for some cases (for example if the subquery returned no rows, or multiple rows with the same value, or null, or if x was null).
changelog_1129_li=Issue 335\: Could not run DROP ALL OBJECTS DELETE FILES on older databases with CLOB or BLOB data. The problem was that the metadata table was not locked in some cases, so that a rollback could result in a corrupt database in a database if the lob storage was upgraded.
changelog_1130_li=Source code switching using //\#\# has been simplified. The Java 1.5 tag has been removed because is no longer needed.
changelog_1131_li=The JDBC methods PreparedStatement.setTimestamp, setTime, and setDate with a calendar, and the methods ResultSet.getTimestamp, getTime, and getDate with a calendar converted the value in the wrong way, so that for some timestamps the converted value was wrong (where summertime starts, one hour per year).
changelog_1132_li=Invalid tables names in 'order by' columns were not detected in some cases. Example\: select x from dual order by y.x
changelog_1133_li=Issue 329\: CASE expression\: data type problem is not detected.
changelog_1134_li=Issue 311\: File lock mode serialized\: selecting the next value from a sequence didn't work after a pause, because the database thought this is a read-only operation.
changelog_1135_h2=Version 1.3.159 (2011-08-13)
changelog_1136_li=Creating a temporary table with the option 'transactional' will now also create the indexes in transactional mode, if the indexes are included in the 'create table' statement as follows\: "create local temporary table temp(id int primary key, name varchar, constraint x index(name)) transactional".
changelog_1137_li=The database file size grows now 35%, but at most 256 MB at a time.
changelog_1138_li=Improved error message on network configuration problems.
changelog_1139_li=The build now support an offline build using ./build.sh offline. This will list the required dependencies if jar files are missing.
changelog_1140_li=The BLOB / CLOB data was dropped a little bit before the table was dropped. This could cause "lob not found" errors when the process was killed while a table was dropped.
changelog_1141_li="group_concat(distinct ...)" did not work correctly in a view or subquery (the 'distinct' was lost). Example\: select * from (select group_concat(distinct 1) from system_range(1, 3));
changelog_1142_li=Database URLs can now be re-mapped to another URL using the system property "h2.urlMap", which points to a properties file with database URL mappings.
changelog_1143_li=When using InputStream.skip, trying to read past the end of a BLOB failed with the exception "IO Exception\: Missing lob entry\: ..." [90028-...].
changelog_1144_li=The in-memory file system "memFS\:" now has limited support for directories.
changelog_1145_li=To test recovery, append ;RECOVER_TEST\=64 to the database URL. This will simulate an application crash after each 64 writes to the database file. A log file named databaseName.h2.db.log is created that lists the operations. The recovery is tested using an in-memory file system, that means it may require a larger heap setting.
changelog_1146_li=Converting a hex string to a byte array is now faster.
changelog_1147_li=The SQL statement "shutdown defrag" could corrupt the database if the process was killed while the shutdown was in progress. The same problem could occur when the database setting "defrag_always" was used.
changelog_1148_h2=Version 1.3.158 (2011-07-17)
changelog_1149_li=Fulltext search (native)\: after re-opening the connection once the fulltext index was created, a transaction rollback did not roll back the modifications in the index.
changelog_1150_li=Support for ROW_NUMBER() OVER() as an alias for ROWNUM() for compatibility with PostgreSQL and Apache Derby.
changelog_1151_li=Issue 325\: a deadlock in the fulltext search could occur if the connection that was used while initializing the fulltext search was later used to query the database. This was actually not only a problem for fulltext search, but also for other triggers that used the initializing connection later on.
changelog_1152_li=DATABASE_TO_UPPER\: when set to false, all identifier names (table names, column names) are case sensitive (except aggregate, built-in functions, data types, and keywords). This is for improved compatibility with MySQL and PostgreSQL.
changelog_1153_li=When upgrading from an older 1.3.x version to version 1.3.157, when using BLOB or CLOB data, the database could only be opened once.
changelog_1154_li=SUM on a boolean expression will now count the number of 'true' rows.
changelog_1155_li=Simplified test cases using assertThrows(...).
changelog_1156_li=A Java function that returns a result set that was generated using the provided connection could cause an internal error in some cases. Now such result sets are copied early on.
changelog_1157_li=Data type RESULT_SET\: information_schema.function_aliases returned type 0; now type -10 is returned (the same as Oracle\: OracleTypes.CURSOR \= -10).
changelog_1158_li=Data type RESULT_SET\: tables with columns of type RESULT_SET could be created, but no data could be persisted in this column.
changelog_1159_li=H2 Console\: improved system tray icon for Mac OS X (transparent background).
changelog_1160_li=String.toUpperCase() was used a few places, which is problematic when using the Turkish locale. The method has been replaced with toUpperCase(Locale.ENGLISH) to solve such problems.
changelog_1161_li=Shell tool\: the built-in command "distinct" has been removed (use the SQL statements "show tables" / "show columns from tableName" instead). The result set formatting has been improved.
changelog_1162_li=MERGE\: if a unique key was violated (but not the primary key or the key columns of the merge itself), the wrong exception was thrown.
changelog_1163_li=IBM DB2 and Apache Derby compatibility\: support the pseudo-table SYSIBM.SYSDUMMY1.
changelog_1164_li=ROWNUM() did not work in combination with IN(..). The following query did not work as expected\: select * from (select rownum r from test) where r in (1, 2).
changelog_1165_li=H2 Console autocomplete\: the autocomplete feature didn't support quoted names.
changelog_1166_li=It is now longer allowed to create an index on a CLOB or BLOB column (except for in-memory databases or indexes), because recovery doesn't work on such columns. Fulltext indexes on such column are still supported of course.
changelog_1167_li=The PUBLIC schema could be renamed, which could result in a database that can't be opened normally. Now it can no longer be renamed. The schema INFORMATION_SCHEMA can also no longer be renamed.
changelog_1168_li=Server mode\: the problem with server and client using different timezones with different daylight saving rules has been solved (this only applies when both the client and the server use this or a newer version).
changelog_1169_li=There is a new system property "h2.storeLocalTime" to avoid problems opening a database file in a timezone that has different daylight saving rules (see also below).
changelog_1170_li=Date, time, and timestamp data type processing has been re-implemented. Time now supports nanoseconds resolution and now now supports a wider range (negative and large values), similar to PostgreSQL.
changelog_1171_li=SQL statements with a non-breaking space were considered invalid.
changelog_1172_h2=Version 1.3.157 (2011-06-25)
changelog_1173_li=The syntax for CREATE TABLE ... AS SELECT ... has been changed\: options such as NOT PERSISTENT are now before the query (AS SELECT), because otherwise they might be interpreted as a part of the query.
changelog_1174_li=With version 1.3.156, the DB2 mode could not be used with CLOB and BLOB data.
changelog_1175_li=When upgrading from an older 1.3.x version to version 1.3.156, CLOB and BLOB data was lost in many cases.
changelog_1176_li=The optimization for COUNT(..) on columns that are not nullable was also used for COUNT(DISTINCT ..), which is incorrect.
changelog_1177_li=PgServer\: non-admin users could not open a database.
changelog_1178_li=Non-admin users could not open a database using a mode (MODE\=xxx) if the database was already open, even if the mode matched.
changelog_1179_li=The SQL state of the following exceptions has been changed\: From 90009, 90010, 90011 to 22007\: "Cannot parse DATE/TIME/TIMESTAMP constant ...".
changelog_1180_li=There is a problem when opening a database file in a timezone that has different daylight saving rules\: the time part of dates where the daylight saving doesn't match will differ. This is not a problem within regions that use the same rules (such as, within USA, or within Europe), even if the timezone itself is different. As a workaround, export the database to a SQL script using the old timezone, and create a new database in the new timezone. The same problem occurs when accessing a database over TCP/IP if the client and server timezones use different rules, if an old server or client is used.
changelog_1002_li=H2 Console system tray icon\: support for Mac OS X retina displays.
changelog_1003_li=The CreateCluster tool could not be used if the source database contained a CLOB or BLOB. The root cause was that the TCP server did not synchronize on the session, which caused a problem when using the exclusive mode.
changelog_1004_li=Statement.getQueryTimeout()\: only the first call to this method will query the database. If the query timeout was changed in another way than calling setQueryTimeout, this method will always return the last value. This was changed because Hibernate calls getQueryTimeout() a lot.
changelog_1005_li=Issue 416\: PreparedStatement.setNString throws AbstractMethodError. All implemented JDBC 4 methods that don't break compatibility with Java 5 are now included in the default jar file.
changelog_1006_li=Issue 414\: for some functions, the parameters were evaluated twice (for example "char(nextval(..))" ran "nextval(..)" twice).
changelog_1007_li=The ResultSetMetaData methods getSchemaName and getTableName could return null instead of "" (an empty string) as specified in the JDBC API.
changelog_1008_li=Added compatibility for "SET NAMES" query in MySQL compatibility mode.
changelog_1009_h2=Version 1.3.168 (2012-07-13)
changelog_1010_li=The message "Transaction log could not be truncated" was sometimes written to the .trace.db file even if there was no problem truncating the transaction log.
changelog_1011_li=New system property "h2.serializeJavaObject" (default\: true) that allows to disable serializing Java objects, so that the objects compareTo and toString methods can be used.
changelog_1012_li=Dylan has translated the H2 Console tool to Korean. Thanks a lot\!
changelog_1013_li=Executing the statement CREATE INDEX IF ALREADY EXISTS if the index already exists no longer fails for a read only database.
changelog_1014_li=MVCC\: concurrently updating a row could result in the row to appear deleted in the second connection, if there are multiple unique indexes (or a primary key and at least one unique index). Thanks a lot to Teruo for the patch\!
changelog_1015_li=Fulltext search\: in-memory Lucene indexes are now supported.
changelog_1016_li=Fulltext search\: UUID primary keys are now supported.
changelog_1017_li=Apache Tomcat 7.x will now longer log a warning when unloading the web application, if using a connection pool.
changelog_1018_li=H2 Console\: support the Midori browser (for Debian / Raspberry Pi)
changelog_1019_li=When opening a remote session, don't open a temporary file if the trace level is set to zero
changelog_1020_li=Use HMAC for authenticating remote LOB id's, removing the need for maintaining a cache, and removing the limit on the number of LOBs per result set.
changelog_1021_li=H2 Console\: HTML and XML documents can now be edited in an updatable result set. There is (limited) support for editing multi-line documents.
changelog_1022_h2=Version 1.3.167 (2012-05-23)
changelog_1023_li=H2 Console\: when editing a row, an empty varchar column was replaced with a single space.
changelog_1024_li=Lukas Eder has updated the jOOQ documentation.
changelog_1025_li=Some nested joins could not be executed, for example\: select * from (select * from (select * from a) a right join b b) c;
changelog_1026_li=MS SQL Server compatibility\: ISNULL is now an alias for IFNULL.
changelog_1027_li=Terrence Huang has completed the translation of the H2 Console tool to Chinese. Thanks a lot\!
changelog_1028_li=Server mode\: the number of CLOB / BLOB values that were cached on the server is now the maximum of\: 5 times the SERVER_RESULT_SET_FETCH_SIZE (which is 100 by default), and SysProperties.SERVER_CACHED_OBJECTS.
changelog_1029_li=In the trace file, the query execution time was incorrect in some cases, specially for the statement SET TRACE_LEVEL_FILE 2.
changelog_1030_li=The feature LOG_SIZE_LIMIT that was introduced in version 1.3.165 did not always work correctly (specially with regards to multithreading) and has been removed. The message "Transaction log could not be truncated" is still written to the .trace.db file if required.
changelog_1031_li=Then reading from a resource using the prefix "classpath\:", the ContextClassLoader is now used if the resource can't be read otherwise.
changelog_1032_li=DatabaseEventListener now calls setProgress whenever a statement starts and ends.
changelog_1033_li=DatabaseEventListener now calls setProgress periodically while a statement is running.
changelog_1034_li=The table INFORMATION_SCHEMA.FUNCTION_ALIASES now includes a column TYPE_NAME.
changelog_1035_li=Issue 378\: when using views, the wrong values were bound to a parameter in some cases.
changelog_1036_li=Terrence Huang has translated the error messages to Chinese. Thanks a lot\!
changelog_1037_li=TRUNC was added as an alias for TRUNCATE.
changelog_1038_li=Small optimisation for accessing result values by column name.
changelog_1039_li=Fix for bug in Statement.getMoreResults(int)
changelog_1040_li=The SCRIPT statements now supports filtering by schema and table. Thanks a lot to Jacob Qvortrup for providing the patch\!
changelog_1041_h2=Version 1.3.166 (2012-04-08)
changelog_1042_li=Indexes on column that are larger than half the page size (wide indexes) could sometimes get corrupt, resulting in an ArrayIndexOutOfBoundsException in PageBtree.getRow or "Row not found" in PageBtreeLeaf. Also, such indexes used too much disk space.
changelog_1043_li=Server mode\: when retrieving more than 64 rows each containing a CLOB or BLOB, the error message "The object is already closed" was thrown.
changelog_1044_li=ConvertTraceFile\: the time in the trace file is now parsed as a long.
changelog_1045_li=Invalid connection settings are now detected.
changelog_1046_li=Issue 387\: WHERE condition getting pushed into sub-query with LIMIT.
changelog_1047_h2=Version 1.3.165 (2012-03-18)
changelog_1048_li=Better string representation for decimal values (for example 0.00000000 instead of 0E-26).
changelog_1049_li=Prepared statements could only be re-used if the same data types were used the second time they were executed.
changelog_1050_li=In error messages about referential constraint violation, the values are now included.
changelog_1051_li=SCRIPT and RUNSCRIPT\: the password can now be set using a prepared statement. Previously, it was required to be a literal in the SQL statement.
changelog_1052_li=MySQL compatibility\: SUBSTR with a negative start index now works like MySQL.
changelog_1053_li=When enabling autocommit, the transaction is now committed (as required by the JDBC API).
changelog_1054_li=The shell script <code>h2.sh</code> did not work with spaces in the path. It also works now with quoted spaces in the argument list. Thanks a lot to Shimizu Fumiyuki for the patch\!
changelog_1055_li=If the transaction log could not be truncated because of an uncommitted transaction, now "Transaction log could not be truncated" is written to the .trace.db file. Before, the database file was growing and it was hard to find out what the root cause was. To avoid the database file from growing, a new feature to automatically rollback the oldest transaction is available now. To enable it, append ;LOG_SIZE_LIMIT\=32 to the database URL (in that case, the oldest session is rolled back if the transaction log is 32 MB).
changelog_1056_li=ALTER TABLE ADD can now add more than one column at a time.
changelog_1057_li=Issue 380\: ALTER TABLE ADD FOREIGN KEY with an explicit index didn't verify the index can be used, which would lead to a NullPointerException later on.
changelog_1058_li=Issue 384\: the wrong kind of exception (NullPointerException) was thrown in a UNION query with an incorrect ORDER BY expression.
changelog_1059_li=Issue 362\: support LIMIT in UPDATE statements.
changelog_1060_li=Browser\: if no default browser is set, Google Chrome is now used if available. If not available, then Konqueror, Netscape, or Opera is used if available (as before).
changelog_1061_li=CSV tool\: new feature to disable writing the column header (option writeColumnHeader).
changelog_1062_li=CSV tool\: new feature to preserve the case sensitivity of column names (option caseSensitiveColumnNames).
changelog_1063_li=PostgreSQL compatibility\: LOG(x) is base 10 in the PostgreSQL mode.
changelog_1064_h2=Version 1.3.164 (2012-02-03)
changelog_1065_li=New built-in function ARRAY_CONTAINS.
changelog_1066_li=Some DatabaseMetaData methods didn't work when using ALLOW_LITERALS NONE.
changelog_1067_li=Trying to convert a VARCHAR to UUID will now fail if the text contains a character that is not a hex digit, '-', or not a whitespace.
changelog_1068_li=TriggerAdapter\: in "before" triggers, values can be changed using the ResultSet.updateX methods.
changelog_1069_li=Creating a table with column data type NULL now works (even if not very useful).
changelog_1070_li=ALTER TABLE ALTER COLUMN no longer copies the data for widening conversions (for example if only the precision was increased) unless necessary.
changelog_1071_li=Multi-threaded kernel\: concurrently running an online backup and updating the database resulted in a broken (transactionally incorrect) backup file in some cases.
changelog_1072_li=The script created by SCRIPT DROP did not always work if multiple views existed that depend on each other.
changelog_1073_li=MathUtils.getSecureRandom could log a warning to System.err in case the /dev/random is very slow, and the System.getProperties().toString() returned a string larger than 64 KB.
changelog_1074_li=The database file locking mechanism "FS" (;FILE_LOCK\=FS) did not work on Linux since version 1.3.161.
changelog_1075_li=Sequences\: the functions NEXTVAL and CURRVAL did not work as expected when using quoted, mixed case sequence names.
changelog_1076_li=The constructor for Csv objects is now public, and Csv.getInstance() is now deprecated.
changelog_1077_li=SimpleResultSet\: updating a result set is now supported.
changelog_1078_li=Database URL\: extra semicolons are not supported.
changelog_1079_h2=Version 1.3.163 (2011-12-30)
changelog_1080_li=On out of disk space, the database could get corrupt sometimes, if later write operations succeeded. The same problem happened on other kinds of I/O exceptions (where one or some of the writes fail, but subsequent writes succeed). Now the file is closed on the first unsuccessful write operation, so that later requests fail consistently.
changelog_1081_li=DatabaseEventListener.diskSpaceIsLow() is no longer supported because it can't be guaranteed that it always works correctly.
changelog_1082_li=XMLTEXT now supports an optional parameter to escape newlines.
changelog_1083_li=XMLNODE now support an optional parameter to disable indentation.
changelog_1084_li=Csv.write now formats date, time, and timestamp values using java.sql.Date / Time / Timestamp.toString(). Previously, ResultSet.getString() was used, which didn't work well for Oracle.
changelog_1085_li=The shell script <code>h2.sh</code> can now be run from within a different directory. Thanks a lot to Daniel Serodio for the patch\!
changelog_1086_li=The page size of a persistent database can now be queries using\: select * from information_schema.settings where name \= 'info.PAGE_SIZE'
changelog_1087_li=In the server mode, BLOB and CLOB objects are no longer closed when the result set is closed (as required by the JDBC spec).
changelog_1088_h2=Version 1.3.162 (2011-11-26)
changelog_1089_li=The following system properties are no longer supported\: <code>h2.allowBigDecimalExtensions</code>, <code>h2.emptyPassword</code>, <code>h2.minColumnNameMap</code>, <code>h2.returnLobObjects</code>, <code>h2.webMaxValueLength</code>.
changelog_1090_li=When using a VPN, starting a H2 server did not work (for some VPN software).
changelog_1091_li=Oracle compatibility\: support for DECODE(...).
changelog_1092_li=Lucene fulltext search\: creating an index is now faster if the table already contains data. Thanks a lot to Angel Leon from the FrostWire Team for the patch\!
changelog_1093_li=Update statements with a column list in brackets did not work if the list only contains one column. Example\: update test set (id)\=(id).
changelog_1094_li=Read-only databases in a zip file did not work when using the -baseDir option.
changelog_1095_li=Issue 334\: SimpleResultSet.getString now also works for Clob columns.
changelog_1096_li=Subqueries with an aggregate did not always work. Example\: select (select count(*) from test where a \= t.a and b \= 0) from test t group by a
changelog_1097_li=Server\: in some (theoretical) cases, exceptions while closing the connection were ignored.
changelog_1098_li=Server.createTcpServer, createPgServer, createWebServer\: invalid arguments are now detected.
changelog_1099_li=The selectivity of LOB columns is no longer calculated because indexes on LOB columns are not supported (however this should have little effect on performance, as the selectivity is calculated from the hash code and not the data).
changelog_1100_li=New experimental system property "h2.modifyOnWrite"\: when enabled, the database file is only modified when writing to the database. When enabled, the serialized file lock is much faster for read-only operations.
changelog_1101_li=A NullPointerException could occur in TableView.isDeterministic for invalid views.
changelog_1102_li=Issue 180\: when deserializing objects, the context class loader is used instead of the default class loader if the system property "h2.useThreadContextClassLoader" is set. Thanks a lot to Noah Fontes for the patch\!
changelog_1103_li=When using the exclusive mode, LOB operations could cause the thread to block. This also affected the CreateCluster tool (when using BLOB or CLOB data).
changelog_1104_li=The optimization for "group by" was not working correctly if the group by column was aliased in the select list.
changelog_1105_li=Issue 326\: improved support for case sensitive (mixed case) identifiers without quotes when using DATABASE_TO_UPPER\=FALSE.
changelog_1106_h2=Version 1.3.161 (2011-10-28)
changelog_1107_li=Issue 351\: MySQL mode\: can not create a table with the column "KEY", and can not open databases where such a table already exists.
changelog_1108_li=TCP server\: when using the trace option ("-trace"), the trace output contained unnecessary stack traces when stopping the server.
changelog_1109_li=Issue 354\: when using the multi-threaded kernel option, and multiple threads concurrently prepared SQL statements that use the same view or the same index of a view, then in some cases an infinite loop could occur.
changelog_1110_li=Issue 350\: when using instead of triggers, executeUpdate for delete operations always returned 0.
changelog_1111_li=Some timestamps with timezone were not converted correctly. For example, in the PST timezone, the timestamp 2011-10-26 08\:00\:00Z was converted to 2011-10-25 25\:00\:00 instead of 2011-10-26 01\:00\:00. Depending on the database operation, this caused subsequent error.
changelog_1112_li=Sequences with cache size smaller than 0 did not work correctly.
changelog_1113_li=Issue 356\: for Blob objects, InputStream.skip() returned 0, causing EOFException in Blob.getBytes(.., ..).
changelog_1114_li=Updatable result sets\: if the value is not set when inserting a new row, the default value is now used (the same behavior as MySQL, PostgreSQL, and Apache Derby) instead of NULL.
changelog_1115_li=Conditions of the form IN(SELECT ...) where slow and increased the database size if the subquery result size was larger then the configured MAX_MEMORY_ROWS.
changelog_1116_li=Issue 347\: the RunScript and Shell tools now ignore empty statements.
changelog_1117_li=Issue 246\: improved error message for data conversion problems.
changelog_1118_li=Issue 344\: the build now supports a custom Maven repository location.
changelog_1119_li=Issue 334\: Java functions that return CLOB or BLOB objects could not be used as tables.
changelog_1120_li=SimpleResultSet now supports getColumnTypeName and getColumnClassName.
changelog_1121_li=SimpleResultSet now has minimal BLOB and CLOB support.
changelog_1122_li=Improved performance for large databases (many GB), and databases with a small page size.
changelog_1123_li=The Polish translation has been improved by Jaros&\#322;aw Kokoci&\#324;ski.
changelog_1124_li=When using the built-in connection pool, after calling the "shutdown" SQL statement, a warning was written to the .trace.db file about an unclosed connection.
changelog_1125_li=Improved compatibility for "fetch first / next row(s)". Thanks a lot to litailang for the patch\!
changelog_1126_li=Improved compatibility with the Java 7 FileSystem abstraction.
changelog_1127_h2=Version 1.3.160 (2011-09-11)
changelog_1128_li=Computed columns could not refer to itself.
changelog_1129_li=Issue 340\: Comparison with "x \= all(select ...)" or similar in a view or subquery that was used as a table returned the wrong result.
changelog_1130_li=Comparison with "x \= all(select ...)" or similar returned the wrong result for some cases (for example if the subquery returned no rows, or multiple rows with the same value, or null, or if x was null).
changelog_1131_li=Issue 335\: Could not run DROP ALL OBJECTS DELETE FILES on older databases with CLOB or BLOB data. The problem was that the metadata table was not locked in some cases, so that a rollback could result in a corrupt database in a database if the lob storage was upgraded.
changelog_1132_li=Source code switching using //\#\# has been simplified. The Java 1.5 tag has been removed because is no longer needed.
changelog_1133_li=The JDBC methods PreparedStatement.setTimestamp, setTime, and setDate with a calendar, and the methods ResultSet.getTimestamp, getTime, and getDate with a calendar converted the value in the wrong way, so that for some timestamps the converted value was wrong (where summertime starts, one hour per year).
changelog_1134_li=Invalid tables names in 'order by' columns were not detected in some cases. Example\: select x from dual order by y.x
changelog_1135_li=Issue 329\: CASE expression\: data type problem is not detected.
changelog_1136_li=Issue 311\: File lock mode serialized\: selecting the next value from a sequence didn't work after a pause, because the database thought this is a read-only operation.
changelog_1137_h2=Version 1.3.159 (2011-08-13)
changelog_1138_li=Creating a temporary table with the option 'transactional' will now also create the indexes in transactional mode, if the indexes are included in the 'create table' statement as follows\: "create local temporary table temp(id int primary key, name varchar, constraint x index(name)) transactional".
changelog_1139_li=The database file size grows now 35%, but at most 256 MB at a time.
changelog_1140_li=Improved error message on network configuration problems.
changelog_1141_li=The build now support an offline build using ./build.sh offline. This will list the required dependencies if jar files are missing.
changelog_1142_li=The BLOB / CLOB data was dropped a little bit before the table was dropped. This could cause "lob not found" errors when the process was killed while a table was dropped.
changelog_1143_li="group_concat(distinct ...)" did not work correctly in a view or subquery (the 'distinct' was lost). Example\: select * from (select group_concat(distinct 1) from system_range(1, 3));
changelog_1144_li=Database URLs can now be re-mapped to another URL using the system property "h2.urlMap", which points to a properties file with database URL mappings.
changelog_1145_li=When using InputStream.skip, trying to read past the end of a BLOB failed with the exception "IO Exception\: Missing lob entry\: ..." [90028-...].
changelog_1146_li=The in-memory file system "memFS\:" now has limited support for directories.
changelog_1147_li=To test recovery, append ;RECOVER_TEST\=64 to the database URL. This will simulate an application crash after each 64 writes to the database file. A log file named databaseName.h2.db.log is created that lists the operations. The recovery is tested using an in-memory file system, that means it may require a larger heap setting.
changelog_1148_li=Converting a hex string to a byte array is now faster.
changelog_1149_li=The SQL statement "shutdown defrag" could corrupt the database if the process was killed while the shutdown was in progress. The same problem could occur when the database setting "defrag_always" was used.
changelog_1150_h2=Version 1.3.158 (2011-07-17)
changelog_1151_li=Fulltext search (native)\: after re-opening the connection once the fulltext index was created, a transaction rollback did not roll back the modifications in the index.
changelog_1152_li=Support for ROW_NUMBER() OVER() as an alias for ROWNUM() for compatibility with PostgreSQL and Apache Derby.
changelog_1153_li=Issue 325\: a deadlock in the fulltext search could occur if the connection that was used while initializing the fulltext search was later used to query the database. This was actually not only a problem for fulltext search, but also for other triggers that used the initializing connection later on.
changelog_1154_li=DATABASE_TO_UPPER\: when set to false, all identifier names (table names, column names) are case sensitive (except aggregate, built-in functions, data types, and keywords). This is for improved compatibility with MySQL and PostgreSQL.
changelog_1155_li=When upgrading from an older 1.3.x version to version 1.3.157, when using BLOB or CLOB data, the database could only be opened once.
changelog_1156_li=SUM on a boolean expression will now count the number of 'true' rows.
changelog_1157_li=Simplified test cases using assertThrows(...).
changelog_1158_li=A Java function that returns a result set that was generated using the provided connection could cause an internal error in some cases. Now such result sets are copied early on.
changelog_1159_li=Data type RESULT_SET\: information_schema.function_aliases returned type 0; now type -10 is returned (the same as Oracle\: OracleTypes.CURSOR \= -10).
changelog_1160_li=Data type RESULT_SET\: tables with columns of type RESULT_SET could be created, but no data could be persisted in this column.
changelog_1161_li=H2 Console\: improved system tray icon for Mac OS X (transparent background).
changelog_1162_li=String.toUpperCase() was used a few places, which is problematic when using the Turkish locale. The method has been replaced with toUpperCase(Locale.ENGLISH) to solve such problems.
changelog_1163_li=Shell tool\: the built-in command "distinct" has been removed (use the SQL statements "show tables" / "show columns from tableName" instead). The result set formatting has been improved.
changelog_1164_li=MERGE\: if a unique key was violated (but not the primary key or the key columns of the merge itself), the wrong exception was thrown.
changelog_1165_li=IBM DB2 and Apache Derby compatibility\: support the pseudo-table SYSIBM.SYSDUMMY1.
changelog_1166_li=ROWNUM() did not work in combination with IN(..). The following query did not work as expected\: select * from (select rownum r from test) where r in (1, 2).
changelog_1167_li=H2 Console autocomplete\: the autocomplete feature didn't support quoted names.
changelog_1168_li=It is now longer allowed to create an index on a CLOB or BLOB column (except for in-memory databases or indexes), because recovery doesn't work on such columns. Fulltext indexes on such column are still supported of course.
changelog_1169_li=The PUBLIC schema could be renamed, which could result in a database that can't be opened normally. Now it can no longer be renamed. The schema INFORMATION_SCHEMA can also no longer be renamed.
changelog_1170_li=Server mode\: the problem with server and client using different timezones with different daylight saving rules has been solved (this only applies when both the client and the server use this or a newer version).
changelog_1171_li=There is a new system property "h2.storeLocalTime" to avoid problems opening a database file in a timezone that has different daylight saving rules (see also below).
changelog_1172_li=Date, time, and timestamp data type processing has been re-implemented. Time now supports nanoseconds resolution and now now supports a wider range (negative and large values), similar to PostgreSQL.
changelog_1173_li=SQL statements with a non-breaking space were considered invalid.
changelog_1174_h2=Version 1.3.157 (2011-06-25)
changelog_1175_li=The syntax for CREATE TABLE ... AS SELECT ... has been changed\: options such as NOT PERSISTENT are now before the query (AS SELECT), because otherwise they might be interpreted as a part of the query.
changelog_1176_li=With version 1.3.156, the DB2 mode could not be used with CLOB and BLOB data.
changelog_1177_li=When upgrading from an older 1.3.x version to version 1.3.156, CLOB and BLOB data was lost in many cases.
changelog_1178_li=The optimization for COUNT(..) on columns that are not nullable was also used for COUNT(DISTINCT ..), which is incorrect.
changelog_1179_li=PgServer\: non-admin users could not open a database.
changelog_1180_li=Non-admin users could not open a database using a mode (MODE\=xxx) if the database was already open, even if the mode matched.
changelog_1181_li=The SQL state of the following exceptions has been changed\: From 90009, 90010, 90011 to 22007\: "Cannot parse DATE/TIME/TIMESTAMP constant ...".
changelog_1182_li=There is a problem when opening a database file in a timezone that has different daylight saving rules\: the time part of dates where the daylight saving doesn't match will differ. This is not a problem within regions that use the same rules (such as, within USA, or within Europe), even if the timezone itself is different. As a workaround, export the database to a SQL script using the old timezone, and create a new database in the new timezone. The same problem occurs when accessing a database over TCP/IP if the client and server timezones use different rules, if an old server or client is used.
cheatSheet_1000_h1=H2 Database Engine Cheat Sheet
cheatSheet_1001_h2=Using H2
cheatSheet_1002_a=H2
......
......@@ -10,22 +10,15 @@ mkdir ..\h2web
rmdir /s /q bin 2>nul
rmdir /s /q temp 2>nul
call java15 >nul 2>nul
call build -quiet
call java16 >nul 2>nul
call build -quiet compile
call build -quiet spellcheck javadocImpl jarClient
echo %time:~0,8% JDK 1.5
call java15 >nul 2>nul
call build -quiet clean compile installer mavenDeployCentral
rem call build -quiet compile benchmark
rem == Copy the benchmark results and update the performance page and diagram
call java15 >nul 2>nul
call build -quiet switchSource
ren ..\h2web h2web-%today%
echo %time:~0,8% Done
......@@ -6,26 +6,13 @@ mkdir ../h2web
rm -rf bin
rm -rf temp
JAVA_HOME=$JAVA15
PATH=$JAVA15/bin:$PATH
./build.sh -quiet
JAVA_HOME=$JAVA16
PATH=$JAVA16/bin:$PATH
./build.sh -quiet compile
./build.sh -quiet spellcheck javadocImpl jarClient
echo $(date "+%H:%M:%S") JDK 1.5
JAVA_HOME=$JAVA15
PATH=$JAVA15/bin:$PATH
./build.sh -quiet clean compile installer mavenDeployCentral
# ./build.sh -quiet compile benchmark
# == Copy the benchmark results
# == and update the performance page and diagram
JAVA_HOME=$JAVA15
PATH=$JAVA15/bin:$PATH
./build.sh -quiet switchSource
echo $(date "+%H:%M:%S") Done
......@@ -48,15 +48,14 @@ MERGE INTO tableName [ ( columnName [,...] ) ]
","
Updates existing rows, and insert rows that don't exist."
"Commands (DML)","RUNSCRIPT","
RUNSCRIPT FROM fileNameString [ scriptCompression ]
[ CIPHER cipher PASSWORD string ] [ CHARSET charsetString ]
RUNSCRIPT FROM fileNameString scriptCompressionEncryption
[ CHARSET charsetString ]
","
Runs a SQL script from a file."
"Commands (DML)","SCRIPT","
SCRIPT [ SIMPLE ] [ NODATA ] [ NOPASSWORDS ] [ NOSETTINGS ]
[ DROP ] [ BLOCKSIZE blockSizeInt ]
[ TO fileNameString [ scriptCompression ]
[ CIPHER cipher PASSWORD string ]
[ TO fileNameString scriptCompressionEncryption
[ CHARSET charsetString ] ]
[ TABLE tableName [, ...] ]
[ SCHEMA schemaName [, ...] ]
......@@ -644,10 +643,10 @@ Defines a referential constraint."
CASCADE | RESTRICT | NO ACTION | SET { DEFAULT | NULL }
","
The action CASCADE will cause conflicting rows in the referencing (child) table to be deleted or updated."
"Other Grammar","Script Compression","
COMPRESSION { DEFLATE | LZF | ZIP | GZIP }
"Other Grammar","Script Compression Encryption","
[ COMPRESSION { DEFLATE | LZF | ZIP | GZIP } ] [ CIPHER cipher PASSWORD string ]
","
The compression algorithm to use for script files."
The compression and encryption algorithm to use for script files."
"Other Grammar","Select Expression","
* | expression [ [ AS ] columnAlias ] | tableAlias.*
","
......
......@@ -175,11 +175,11 @@ function resortTable(link) {
newRows.sort(sortCallback);
var arrow;
if (span.getAttribute("sortDir") == 'down') {
arrow = '&nbsp;<img src="sort_up.gif" with=7 height=10 border=0/>';
arrow = '&nbsp;<span style="color:gray">&#x25b2;</span>';
newRows.reverse();
span.setAttribute('sortDir','up');
} else {
arrow = '&nbsp;<img src="sort_down.gif" with=7 height=10 border=0/>';
arrow = '&nbsp;<span style="color:gray">&#x25bc;</span>';
span.setAttribute('sortDir','down');
}
......
......@@ -392,12 +392,15 @@ ShutdownHandler {
// Dimension d = tray.getTrayIconSize();
Dimension d = (Dimension) Utils.callMethod(tray, "getTrayIconSize");
String iconFile;
if (d.width >= 24 && d.height >= 24) {
iconFile = "/org/h2/res/h2-24.png";
} else if (d.width >= 22 && d.height >= 22) {
iconFile = "/org/h2/res/h2-22-t.png";
// for Mac OS X 10.8.1 with retina display:
// the reported resolution is 22 x 22, but the image
// is scaled and the real resolution is 44 x 44
iconFile = "/org/h2/res/h2-64-t.png";
// iconFile = "/org/h2/res/h2-22-t.png";
} else {
iconFile = "/org/h2/res/h2.png";
}
......
......@@ -20,10 +20,10 @@ import javax.imageio.ImageIO;
*/
public class RailroadImages {
private static final int SIZE = 128;
private static final int SIZE = 64;
private static final int LINE_REPEAT = 32;
private static final int DIV = 8;
private static final int STROKE = 16;
private static final int DIV = 2;
private static final int STROKE = 6;
private String outDir;
......@@ -47,14 +47,17 @@ public class RailroadImages {
new File(out).mkdirs();
BufferedImage img;
Graphics2D g;
img = new BufferedImage(SIZE, SIZE, BufferedImage.TYPE_INT_ARGB);
img = new BufferedImage(SIZE * 64, SIZE * LINE_REPEAT, BufferedImage.TYPE_INT_ARGB);
g = img.createGraphics();
for (int i = 0; i < 2; i++) {
setStroke(g, i);
g.drawLine(0, SIZE / 2, SIZE, SIZE / 2);
g.drawLine(0, SIZE / 2, SIZE * 64, SIZE / 2);
}
g.dispose();
savePng(img, "div-d.png");
img = null;
img = new BufferedImage(SIZE, SIZE * LINE_REPEAT, BufferedImage.TYPE_INT_ARGB);
g = img.createGraphics();
for (int i = 0; i < 2; i++) {
......@@ -67,6 +70,8 @@ public class RailroadImages {
g.dispose();
savePng(img, "div-ts.png");
savePng(flipHorizontal(img), "div-te.png");
img = null;
img = new BufferedImage(SIZE, SIZE * LINE_REPEAT, BufferedImage.TYPE_INT_ARGB);
g = img.createGraphics();
for (int i = 0; i < 2; i++) {
......@@ -84,12 +89,13 @@ public class RailroadImages {
g.dispose();
savePng(img, "div-ks.png");
savePng(flipHorizontal(img), "div-ke.png");
img = null;
}
private static void setStroke(Graphics2D g, int i) {
if (i == 0) {
g.setColor(Color.WHITE);
g.setStroke(new BasicStroke(STROKE * 2));
g.setStroke(new BasicStroke(STROKE * 3));
} else {
g.setColor(Color.BLACK);
g.setStroke(new BasicStroke(STROKE));
......
......@@ -711,4 +711,4 @@ zurich bern biel lugano geneva gallen lausanne chur basel winterthur
bellinzona thun lucerne bienne visualize modifies
pasted deliberate unsaved invented earliest expose pruning revert
derive bounding greatly extreme terribly iterating pruned percentage
apart render cloned costly antialiasing antialias quercus rect mvr
apart render cloned costly antialiasing antialias quercus rect mvr retina
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论