提交 20d71e3b authored 作者: Thomas Mueller's avatar Thomas Mueller

The documentation no longer uses a frameset (except the Javadocs).

上级 5ef99d18
......@@ -9,9 +9,11 @@ Initial Developer: H2 Group
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
Advanced Topics
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>Advanced Topics</h1>
<a href="#result_sets">
......@@ -132,9 +134,6 @@ Oracle XE needs to be restarted after changing these values:
alter system set processes=100 scope=spfile;
alter system set sessions=100 scope=spfile;
</pre>
<p>
</p>
<br /><a name="transaction_isolation"></a>
<h2>Transaction Isolation</h2>
......@@ -1199,4 +1198,4 @@ OR X = 2 OR X = 2 OR X = 2 OR X = 2 OR X = 2
</tr>
</table>
</div></td></tr></table><!-- analytics --></body></html>
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
......@@ -9,9 +9,11 @@ Initial Developer: H2 Group
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
Build
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>Build</h1>
<a href="#portability">
......@@ -159,4 +161,5 @@ If you like to provide patches, please consider the following guidelines to simp
</li><li>Submit patches as .patch files (compressed if big). To create a patch, use for example Eclipse Team/Create Patch.
</li></ul>
</div></td></tr></table><!-- analytics --></body></html>
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
......@@ -9,16 +9,19 @@ Initial Developer: H2 Group
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
Change Log
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>Change Log</h1>
<h2>Next Version (unreleased)</h2>
<ul><li>When using DB_CLOSE_DELAY, sometimes a NullPointerException is thrown when
the database is opened almost at the same time as it is closed automatically.
Thanks a lot to Dmitry Pekar for finding this!
<ul><li>The documentation no longer uses a frameset (except the Javadocs).
</li><li>When using DB_CLOSE_DELAY, sometimes a NullPointerException is thrown when
the database is opened almost at the same time as it is closed automatically.
Thanks a lot to Dmitry Pekar for finding this!
</li><li>Java methods with variable number of parameters can now be used (for Java 1.5 or newer).
</li><li>The Japanese translation has been improved by Masahiro Ikemoto. Thanks a lot!
</li><li>The H2 Console replaced an empty user name with a single space.
......@@ -566,4 +569,5 @@ Change Log
</li><li>Using a function in a GROUP BY expression that is used in a view as a condition did not always work.
</li></ul>
</div></td></tr></table><!-- analytics --></body></html>
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
......@@ -9,9 +9,11 @@ Initial Developer: H2 Group
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
Data Types
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>Data Types</h1>
<c:forEach var="item" items="dataTypes">
......@@ -32,4 +34,5 @@ ${item.example}
<br />
</c:forEach>
</div></td></tr></table><!-- analytics --></body></html>
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
......@@ -7,13 +7,15 @@ Initial Developer: H2 Group
-->
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
H2 Database Engine
Downloads
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<link rel="alternate" type="application/atom+xml" title="H2 Newsfeed (Atom)" href="http://www.h2database.com/html/newsfeed-atom.xml" />
<link rel="alternate" type="application/rss+xml" title="H2 Newsfeed (RSS)" href="http://www.h2database.com/html/newsfeed-rss.xml" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>Downloads</h1>
......@@ -43,4 +45,5 @@ H2 Database Engine
For details about changes, see the <a href="changelog.html">Change Log</a>.
</p>
</div></td></tr></table><!-- analytics --></body></html>
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
......@@ -9,9 +9,11 @@ Initial Developer: H2 Group
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
Frequently Asked Questions
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>Frequently Asked Questions</h1>
......@@ -205,4 +207,4 @@ For more information, see
<a href="build.html#translating">Build/Translating</a>.
</p>
</div></td></tr></table><!-- analytics --></body></html>
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
......@@ -9,9 +9,11 @@ Initial Developer: H2 Group
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
Features
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>Features</h1>
......@@ -1588,4 +1590,5 @@ call SELECT * FROM INFORMATION_SCHEMA.SETTINGS. The number of pages read / writt
is listed for the data and index file.
</p>
</div></td></tr></table><!-- analytics --></body></html>
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
<!--
Copyright 2004-2008 H2 Group. Multiple-Licensed under the H2 License, Version 1.0,,
and under the Eclipse Public License, Version 1.0
(http://h2database.com/html/license.html).
Initial Developer: H2 Group
-->
<html><head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Fragments</title>
<!-- [search] { -->
<script type="text/javascript" src="index.js"></script>
<script type="text/javascript" src="navigation.js"></script>
<script type="text/javascript" src="search.js"></script>
</head><body onload="highlight();">
<table class="nav" onmousemove="return mouseMove(event)"><tr class="nav"><td class="nav">
<div id="searchMenu" style="width: 180px; overflow: hidden;">
<div class="menu">
<img border="0" src="images/h2-logo.png" alt="H2 Logo" onclick="document.location='main.html'" />
</div>
<form name="searchForm" action="submit" onsubmit="return goFirst();">
<table width="100%" class="search">
<tr class="search">
<td class="search" colspan="2">
<a href="frame.html"><img border="0" src="images/language_en.gif" alt="English" /></a>
<a href="frame_ja.html"><img border="0" src="images/language_ja.gif" alt="Japanese" /></a>
</td>
</tr>
<tr class="search">
<td class="search" colspan="2">
<b> Search: </b>
</td>
</tr>
<tr class="search">
<td class="search" colspan="2">
<input id="search" name="search" type="text" size="21" maxlength="100" onkeyup="listWords(this.value, '')" /><br />
<input type="reset" id="clear" style="display:none;" value="Clear" onclick="listWords('', '');" />
</td>
</tr>
<tr class="search" style="display:none;" >
<td width="1%" class="search" style="vertical-align: middle;"><input id="highlight" type="checkbox" checked="checked" onclick="highlightCurrent(this.checked, search.value)" /></td>
<td width="99%" class="search" style="padding: 0px; vertical-align: middle;"> Highlight keyword(s) </td>
</tr>
<tr class="search">
<td class="search" colspan="2">
<table id="result" style="border: 0px;">
</table>
</td>
</tr>
</table>
</form>
<div class="menu">
<b><a href="main.html"> Home </a></b><br />
<a href="quickstart.html"> Quickstart </a><br />
<a href="installation.html"> Installation </a><br />
<a href="tutorial.html"> Tutorial </a><br />
<a href="features.html"> Features </a><br />
<a href="performance.html"> Performance </a><br />
<a href="advanced.html"> Advanced Topics </a><br />
<a href="jaqu.html"> JaQu </a><br />
<a href="download.html"> Download </a><br />
<br />
<b> Reference </b><br />
<a href="grammar.html"> SQL Grammar </a><br />
<a href="functions.html"> Functions </a><br />
<a href="datatypes.html"> Data Types </a><br />
<a href="../javadoc/index.html"> Javadoc </a><br />
<a href="../h2.pdf" target="_blank"> Docs as PDF </a><br />
<a href="sourceError.html"> Error Analyzer </a><br />
<br />
<b> Appendix </b><br />
<a href="build.html"> Build </a><br />
<a href="history.html"> History &amp; Roadmap </a><br />
<a href="links.html"> Links </a><br />
<a href="faq.html"> FAQ </a><br />
<a href="license.html"> License </a><br />
<br />
</div>
</div>
</td>
<td class="nav" style="cursor: e-resize;" onmousedown="return mouseDown(event)" onmouseup="return mouseUp(event)">&nbsp;</td>
<td class="nav" style="padding: 0px 10px 0px 0px; ">
<!-- } -->
<!-- [close] { -->
</td></tr></table>
<!-- } -->
</body></html>
\ No newline at end of file
......@@ -9,9 +9,11 @@ Initial Developer: H2 Group
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
Functions
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>Functions</h1>
......@@ -54,4 +56,5 @@ ${item.example}
<br />
</c:forEach>
</div></td></tr></table><!-- analytics --></body></html>
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
......@@ -9,9 +9,11 @@ Initial Developer: H2 Group
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
SQL Grammar
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>SQL Grammar</h1>
<h2>Commands (Data Manipulation)</h2>
......@@ -85,4 +87,5 @@ The table is used as follows:
SELECT X FROM SYSTEM_RANGE(1, 10);
</pre>
</div></td></tr></table><!-- analytics --></body></html>
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
......@@ -9,9 +9,11 @@ Initial Developer: H2 Group
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
History
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>History and Roadmap</h1>
<a href="#changelog">
......@@ -112,4 +114,5 @@ via PayPal:
</li><li>Pete Haidinyak, USA
</li></ul>
</div></td></tr></table><!-- analytics --></body></html>
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
......@@ -9,9 +9,11 @@ Initial Developer: H2 Group
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
Installation
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>Installation</h1>
......@@ -92,4 +94,5 @@ After installing, you should get the following directory structure:
</tr>
</table>
</div></td></tr></table><!-- analytics --></body></html>
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
......@@ -9,9 +9,11 @@ Initial Developer: H2 Group
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
JaQu
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>JaQu</h1>
......@@ -276,4 +278,5 @@ Some ideas for what to implement include:
<a href="http://groups.google.de/group/jlinq">Google Group about adding LINQ features to Java</a><br />
</p>
</div></td></tr></table><!-- analytics --></body></html>
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
......@@ -9,9 +9,11 @@ Initial Developer: H2 Group
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
License
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>License</h1>
......@@ -696,4 +698,5 @@ than one year after the cause of action arose. Each party waives its rights
to a jury trial in any resulting litigation.
</p>
</div></td></tr></table><!-- analytics --></body></html>
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
......@@ -9,9 +9,11 @@ Initial Developer: H2 Group
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
H2 In Use and Links
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>H2 In Use and Links</h1>
<p>
......@@ -445,4 +447,5 @@ Volunteer database</a><br />
A database front end to register volunteers, partnership and donation for a Non Profit organization.
</p>
</div></td></tr></table><!-- analytics --></body></html>
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
......@@ -9,9 +9,11 @@ Initial Developer: H2 Group
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
H2 Database Engine
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>H2 Database Engine</h1>
<p>
......@@ -37,4 +39,5 @@ Go through the samples.
See what this database can do and how to use these features.
</p>
</div></td></tr></table></body></html>
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- Copyright 2004-2008 H2 Group. Multiple-Licensed under the H2 License, Version 1.0,,
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Copyright 2004-2008 H2 Group. Multiple-Licensed under the H2 License, Version 1.0,,
and under the Eclipse Public License, Version 1.0
(http://h2database.com/html/license.html). -->
(http://h2database.com/html/license.html).
Initial Developer: H2 Group
-->
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
H2 Database Engine
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<link rel="alternate" type="application/atom+xml" title="H2 Newsfeed (Atom)" href="http://www.h2database.com/html/newsfeed-atom.xml" />
<link rel="alternate" type="application/rss+xml" title="H2 Newsfeed (RSS)" href="http://www.h2database.com/html/newsfeed-rss.xml" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
<style type="text/css">
<!--
h3 { margin-top: 0px; margin-bottom: 10px; }
-->
</style>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>H2 Database Engine</h1>
<p>
......@@ -135,4 +135,4 @@ Welcome to H2, the Java SQL database. The main feature of H2 are:
</table>
</div></td></tr></table><!-- analytics --></body></html>
\ No newline at end of file
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
......@@ -33,7 +33,7 @@ function frameMe(frame) {
var s = frameset + "?" + file + "&" + frame;
top.location.replace(s);
} else {
highlight();
highlightFrame();
}
return;
}
......@@ -48,7 +48,7 @@ function addHighlight(page, word, count) {
}
}
function highlight() {
function highlightFrame() {
var url = new String(top.main.location.href);
if(url.indexOf('?highlight=') < 0) {
return;
......@@ -61,6 +61,21 @@ function highlight() {
}
}
function highlight() {
var url = new String(document.location.href);
if(url.indexOf('?highlight=') < 0) {
return;
} else {
var page = url.split('highlight=')[1].split('&')[0];
var search = decodeURIComponent(url.split('search=')[1].split('#')[0]);
var word = decodeURIComponent(page);
document.body.innerHTML = highlightSearchTerms(document.body, word);
document.location = '#firstFound';
document.getElementById('search').value = search;
listWords(search, '');
}
}
function goFirstFound() {
top.main.location = '#firstFound';
/*
......@@ -125,3 +140,27 @@ function doHighlight(bodyText, searchTerm, highlightStartTag, highlightEndTag) {
}
return newText;
}
var drag = false;
var dragSize = 0;
var dragStart = 0;
function mouseDown(e) {
dragStart = e.clientX || e.pageX;
dragSize = parseInt(document.getElementById('searchMenu').style.width);
drag = true;
return false;
}
function mouseUp(e) {
drag = false;
return false;
}
function mouseMove(e) {
if (drag) {
var e = e || window.event;
var x = e.clientX || e.pageX;
dragSize += x - dragStart;
dragStart = x;
document.getElementById('searchMenu').style.width=dragSize + 'px';
}
return false;
}
......@@ -9,9 +9,11 @@ Initial Developer: H2 Group
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
Performance
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>Performance</h1>
<a href="#performance_comparison">
......@@ -432,4 +434,4 @@ See <code>src/test/org/h2/samples/optimizations.sql</code> for a few examples of
that benefit from special optimizations built into the database.
</p>
</div></td></tr></table><!-- analytics --></body></html>
\ No newline at end of file
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
......@@ -9,9 +9,11 @@ Initial Developer: H2 Group
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
Quickstart
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>Quickstart</h1>
<a href="#embedding">
......@@ -98,4 +100,5 @@ Close the console window.
For more information, see the <a href="tutorial.html">Tutorial</a>.
</p>
</div></td></tr></table><!-- analytics --></body></html>
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
......@@ -9,9 +9,11 @@ Initial Developer: H2 Group
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
Roadmap
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>Roadmap</h1>
<p>
......@@ -390,4 +392,5 @@ Of course, patches are always welcome, but are not always applied as is. Patches
</li><li>String.intern (so that Strings can be compared with ==) will not be used because some VMs have problems when used extensively.
</li></ul>
</div></td></tr></table><!-- analytics --></body></html>
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
......@@ -109,10 +109,17 @@ function goFirst() {
function go(pageId, word) {
var page = pages[pageId];
var load = '../' + page.file + '?highlight=' + encodeURIComponent(word);
if(!top.main.location.href.endsWith(page.file)) {
top.main.location = load;
}
var load = '../' + page.file + '?highlight=' + encodeURIComponent(word);
if(top.main) {
if(!top.main.location.href.endsWith(page.file)) {
top.main.location = load;
}
} else {
if(!document.location.href.endsWith(page.file)) {
var search = document.getElementById('search').value;
document.location = load + '&search=' + encodeURIComponent(search);
}
}
}
function listAnd(keywords) {
......
......@@ -182,6 +182,7 @@ function sizeTextArea() {
<body style="margin:20px" onresize="sizeTextArea();" onload="sizeTextArea();" >
<h1>Online Error Analyzer</h1>
<b><a href="../html/main.html" target="_top">Home</a></b><br />
<h2>
<a href="javascript:select('input')" id="inputTab">Input</a>&nbsp;
<a href="javascript:select('details')" id="detailsTab">Details</a>&nbsp;
......
......@@ -162,6 +162,18 @@ td.searchLink a:hover {
text-decoration: underline;
}
table.nav {
border: 0px;
}
tr.nav {
border: 0px;
}
td.nav {
border: 0px;
}
table.content {
width: 100%;
height: 100%;
......
......@@ -9,9 +9,11 @@ Initial Developer: H2 Group
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
Tutorial
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>Tutorial</h1>
<a href="#tutorial_starting_h2_console">
......@@ -779,4 +781,5 @@ you need to create a SQL script file using the SCRIPT command or Script tool, an
the database using the RUNSCRIPT command or the RunScript tool in the new time zone.
</p>
</div></td></tr></table><!-- analytics --></body></html>
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
......@@ -20,6 +20,7 @@ Initial Developer: H2 Group
<div class="menu">
<b><a href="../html/main.html" target="_top">Home</a></b><br />
<b><a href="overview.html" target="javadoc">API Overview</a></b><br />
<br />
......
......@@ -374,7 +374,7 @@ At this time, the PostgreSQL ODBC driver does not work on 64 bit versions of Win
ODBC Installation
@advanced_1125_p
First, the ODBC driver must be installed. Any recent PostgreSQL ODBC driver should work, however version 8.2.4 or newer is recommended. The Windows version of the PostgreSQL ODBC driver is available at <a href="http://www.postgresql.org/ftp/odbc/versions/msi">http://www.postgresql.org/ftp/odbc/versions/msi</a> .
First, the ODBC driver must be installed. Any recent PostgreSQL ODBC driver should work, however version 8.2 (psqlodbc-08_02*) or newer is recommended. The Windows version of the PostgreSQL ODBC driver is available at <a href="http://www.postgresql.org/ftp/odbc/versions/msi">http://www.postgresql.org/ftp/odbc/versions/msi</a> .
@advanced_1126_h3
Starting the Server
......@@ -1109,1053 +1109,1059 @@ Change Log
Next Version (unreleased)
@changelog_1002_li
Java methods with variable number of parameters can now be used (for Java 1.5 or newer).
The documentation no longer uses a frameset (except the Javadocs).
@changelog_1003_li
The Japanese translation has been improved by Masahiro Ikemoto. Thanks a lot!
When using DB_CLOSE_DELAY, sometimes a NullPointerException is thrown when the database is opened almost at the same time as it is closed automatically. Thanks a lot to Dmitry Pekar for finding this!
@changelog_1004_li
The H2 Console replaced an empty user name with a single space.
Java methods with variable number of parameters can now be used (for Java 1.5 or newer).
@changelog_1005_li
The build target 'build jarSmall' now includes the embedded database.
The Japanese translation has been improved by Masahiro Ikemoto. Thanks a lot!
@changelog_1006_li
JdbcDataSource now keeps the password in a char array where possible.
The H2 Console replaced an empty user name with a single space.
@changelog_1007_li
ResultSet.absolute did not always work with large result sets.
The build target 'build jarSmall' now includes the embedded database.
@changelog_1008_li
Column aliases can now be used in GROUP BY and HAVING.
JdbcDataSource now keeps the password in a char array where possible.
@changelog_1009_li
ResultSet.absolute did not always work with large result sets.
@changelog_1010_li
Column aliases can now be used in GROUP BY and HAVING.
@changelog_1011_li
Jason Brittain has contributed MySQL date functions. Thanks a lot! They are not in the h2.jar file currently, but in src/tools/org/h2/mode/FunctionsMySQL.java. To install, add this class to the classpath and call FunctionsMySQL.register(conn) in the Java code.
@changelog_1010_h2
@changelog_1012_h2
Version 1.0.77 (2008-08-16)
@changelog_1011_li
@changelog_1013_li
JaQu is now using prepared statements and supports Date, Time, Timestamp.
@changelog_1012_li
@changelog_1014_li
When using remote in-memory databases, large LOB objects did not work.
@changelog_1013_li
@changelog_1015_li
Timestamp columns such as TIMESTAMP(6) were not compatible to other database.
@changelog_1014_li
@changelog_1016_li
Opening a large database was slow if there was a problem opening the previous time.
@changelog_1015_li
@changelog_1017_li
NOT IN(SELECT ...) was incorrect if the subquery returns no rows.
@changelog_1016_li
@changelog_1018_li
CREATE TABLE AS SELECT did not work correctly in the multi-version concurrency mode.
@changelog_1017_li
@changelog_1019_li
Support a comma before closing a list, as in: create table test(id int,)
@changelog_1018_li
@changelog_1020_li
MySQL compatibility: linked tables had lower case column names on some systems.
@changelog_1019_li
@changelog_1021_li
DB2 compatibility: the DB2 fetch-first-clause is supported.
@changelog_1020_li
@changelog_1022_li
Oracle compatibility: old style outer join syntax using (+) did work correctly sometimes.
@changelog_1021_li
@changelog_1023_li
ResultSet.setFetchSize is now supported.
@changelog_1022_li
@changelog_1024_li
It has been reported that when using Install4j on some Linux systems and enabling the 'pack200' option, the h2.jar becomes corrupted by the install process, causing application failure. A workaround is to add an empty file h2.jar.nopack next to the h2.jar file. The reason for this problem is not known.
@changelog_1023_h2
@changelog_1025_h2
Version 1.0.76 (2008-07-27)
@changelog_1024_li
@changelog_1026_li
The comment of a domain (user defined data type) is now used as the default column comment when creating a column with this domain.
@changelog_1025_li
@changelog_1027_li
Invalid database names are now detected and a better error message is thrown.
@changelog_1026_li
@changelog_1028_li
ResultSetMetaData.getColumnClassName now returns the correct class name for BLOB and CLOB.
@changelog_1027_li
@changelog_1029_li
Fixed the Oracle mode: Oracle allows multiple rows only where all columns of the unique index are NULL.
@changelog_1028_li
@changelog_1030_li
There is a problem with Hibernate when using Boolean columns. A patch for Hibernate has been submitted at http://opensource.atlassian.com/projects/hibernate/browse/HHH-3401
@changelog_1029_li
@changelog_1031_li
ORDER BY on tableName.columnName didn't work correctly if the column name was also used as an alias.
@changelog_1030_li
@changelog_1032_li
H2 Console: The progress display when opening a database has been improved.
@changelog_1031_li
@changelog_1033_li
The error message when the server doesn't start has been improved.
@changelog_1032_li
@changelog_1034_li
Key values can now be changed in updatable result sets.
@changelog_1033_li
@changelog_1035_li
Changes in updatable result sets are now visible even when resetting the result set.
@changelog_1034_li
@changelog_1036_li
Temporary files were sometimes deleted too late when executing large insert, update, or delete operations.
@changelog_1035_li
@changelog_1037_li
The database file was growing after deleting many rows, and after large update operations.
@changelog_1036_h2
@changelog_1038_h2
Version 1.0.75 (2008-07-14)
@changelog_1037_li
@changelog_1039_li
Multi version concurrency (MVCC): when a row was updated or deleted, but this change was rolled back, the row was not visible by other sessions if no index was used to access it. Fixed.
@changelog_1038_li
@changelog_1040_li
Views with multiple joined tables (where one was an outer join) couldn't be used in some cases. Fixed.
@changelog_1039_li
@changelog_1041_li
The CSVREAD method did not process NULL correctly when using a whitespace field separator.
@changelog_1040_li
@changelog_1042_li
Fixed the Oracle mode: Oracle allows multiple rows with NULL in a unique index.
@changelog_1041_li
@changelog_1043_li
Running out of memory could result in incomplete transactions or corrupted databases. Fixed.
@changelog_1042_li
@changelog_1044_li
When using order by in a query that uses the same table multiple times, the order could be incorrect. Fixed.
@changelog_1043_li
@changelog_1045_li
Referential constraint checking improvement: now the constraint is only checked if the key column values change.
@changelog_1044_li
@changelog_1046_li
Some database metadata calls returned the wrong data type for DATA_TYPE columns.
@changelog_1045_li
@changelog_1047_li
The Lucene fulltext index was empty when opening a database with fulltext index enabled, and re-indexing it didn't work. Fixed.
@changelog_1046_li
@changelog_1048_li
The character '$' could not be used in identifier names (table name, column names and so on). Fixed.
@changelog_1047_li
@changelog_1049_li
The new method org.h2.tools.Server.startWebServer(conn) starts the H2 Console to inspect a database while debugging.
@changelog_1048_li
@changelog_1050_li
Stopping a WebServer didn't always work. Fixed.
@changelog_1049_h2
@changelog_1051_h2
Version 1.0.74 (2008-06-21)
@changelog_1050_li
@changelog_1052_li
Work on row level locking has been started (but there is nothing usable yet).
@changelog_1051_li
@changelog_1053_li
JaQu (Java Query), a tool similar to LINQ (Language Integrated Query; from Microsoft) is now included under src/tools/org/h2/jaqu. A small sample application is included under src/test/org/h2/test/jaqu.
@changelog_1052_li
@changelog_1054_li
The source code is now switched to Java 1.6 by default. To switch back to Java 1.4, run 'build compile'. The h2.jar file is still Java 1.4.
@changelog_1053_li
@changelog_1055_li
The ChangePassword tool is now called ChangeFileEncryption.
@changelog_1054_li
@changelog_1056_li
It is no longer allowed to create columns with the data type NULL. Also, it is no longer allowed to convert a column to the data type NULL. This was possible before but caused data loss.
@changelog_1055_li
@changelog_1057_li
When using computed columns or default values with a different data type than the column data type, a class cast exception could occur. Fixed.
@changelog_1056_li
@changelog_1058_li
Opening databases larger than 1 GB was sometimes very slow if a lot of data was deleted previously. Fixed.
@changelog_1057_li
@changelog_1059_li
RUNSCRIPT could throw a NullPointerException if the script name was an expression.
@changelog_1058_li
@changelog_1060_li
Improved compatibility. New compatibility modes for Oracle and Derby. New compatibility flag uniqueIndexNullDistinct to only allow one row with 'NULL' in a unique index. This flag is enabled for Derby, Oracle, MSSQLServer, and HSQLDB.
@changelog_1059_li
@changelog_1061_li
Linked tables: To view the statements that are executed against the target table, set the trace level to 3.
@changelog_1060_li
@changelog_1062_li
RunScript tool: new options to show and check the results of queries.
@changelog_1061_li
@changelog_1063_li
Deadlocks are now detected. One transaction is rolled back automatically.
@changelog_1062_li
@changelog_1064_li
The Lucene fulltext index was always re-created when opening a database with fulltext index enabled.
@changelog_1063_li
@changelog_1065_li
Support for overloaded Java methods. A user defined function can now be bound to multiple Java methods, if the Java methods have the same name but a different number of parameters. Thanks to Gary Tong for providing a patch!
@changelog_1064_h2
@changelog_1066_h2
Version 1.0.73 (2008-05-31)
@changelog_1065_li
@changelog_1067_li
ParameterMetaData now returns the right data type for most conditions, as in WHERE ID=?.
@changelog_1066_li
@changelog_1068_li
The table SYSTEM_RANGE now supports expressions and parameters.
@changelog_1067_li
@changelog_1069_li
New column INFORMATION_SCHEMA.CONSTRAINTS.UNIQUE_INDEX_NAME that contains the name of the unique index used to enforce this constraint, if there is such an index.
@changelog_1068_li
@changelog_1070_li
SET QUERY_TIMEOUT and Statement.setQueryTimeout no longer commits a transaction. The same applies to SET @VARIABLE, SET LOCK_TIMEOUT, SET TRACE_LEVEL_*, SET THROTTLE, and SET PATH.
@changelog_1069_li
@changelog_1071_li
The SCRIPT command does now emit IF NOT EXISTS for CREATE ROLE.
@changelog_1070_li
@changelog_1072_li
MySQL compatibility: auto_increment column are no longer automatically converted to primary key columns.
@changelog_1071_li
@changelog_1073_li
PostgreSQL compatibility: support for BOOL_OR and BOOL_AND aggregate functions.
@changelog_1072_li
@changelog_1074_li
Negative scale values for DECIMAL or NUMBER columns are now supported in regular tables and in linked tables.
@changelog_1073_li
@changelog_1075_li
A role or right can now be granted or revoked multiple times without getting an exception.
@changelog_1074_li
@changelog_1076_li
Infinite numbers in SQL scripts are listed as POWER(0, -1)), negative infinite as (-POWER(0, -1)), and NaN (not a number) as SQRT(-1).
@changelog_1075_li
@changelog_1077_li
The special double and float values 'NaN' (not a number) did not work correctly when sorting or comparing.
@changelog_1076_li
@changelog_1078_li
The fulltext search did not support CLOB data types.
@changelog_1077_li
@changelog_1079_li
If the drive with the database files was disconnected or unmounted while writing, sometimes a stack overflow exception was thrown instead of a IO exception.
@changelog_1078_li
@changelog_1080_li
The H2 Console could not be shut down from within the tool if the browser supports keepAlive (most browsers do).
@changelog_1079_li
@changelog_1081_li
If the password was passed as a char array, it was kept in an internal buffer longer than required. Theoretically the password could have been stolen if the main memory was swapped to disk before the garbage collection was run.
@changelog_1080_h2
@changelog_1082_h2
Version 1.0.72 (2008-05-10)
@changelog_1081_li
@changelog_1083_li
Some databases could not be opened when appending ;RECOVER=1 to the database URL.
@changelog_1082_li
@changelog_1084_li
The Japanese translation of the error messages and the H2 Console has been completed by Masahiro Ikemoto (Arizona Design Inc.)
@changelog_1083_li
@changelog_1085_li
Updates made to updatable rows are now visible within the same result set. DatabaseMetaData.ownUpdatesAreVisible now returns true.
@changelog_1084_li
@changelog_1086_li
ParameterMetaData now returns the correct data for INSERT and UPDATE statements.
@changelog_1085_li
@changelog_1087_li
H2 Shell: DESCRIBE now supports an schema name.
@changelog_1086_li
@changelog_1088_li
A subset of the PostgreSQL 'dollar quoting' feature is now supported.
@changelog_1087_li
@changelog_1089_li
SLF4J is now supported by using adding TRACE_LEVEL_FILE=4 to the database URL.
@changelog_1088_li
@changelog_1090_li
The recovery tool did not work if the table name contained spaces or if there was a comment on the table.
@changelog_1089_li
@changelog_1091_li
Triggers are no longer executed when changing the table structure (ALTER TABLE).
@changelog_1090_li
@changelog_1092_li
When setting BLOB or CLOB values larger than 65 KB using a remote connection, temporary files were kept on the client longer than required (until the connection was closed or the object is garbage collected). Now they are removed as soon as the PreparedStatement is closed, or when the value is overwritten.
@changelog_1091_li
@changelog_1093_li
Statements can now be cancelled remotely (when using remote connections).
@changelog_1092_li
@changelog_1094_li
The Shell tool now uses java.io.Console to read the password when using JDK 1.6
@changelog_1093_li
@changelog_1095_li
When using read-only databases and setting LOG=2, an exception was written to the trace file when closing the database. Fixed.
@changelog_1094_h2
@changelog_1096_h2
Version 1.0.71 (2008-04-25)
@changelog_1095_li
@changelog_1097_li
H2 is now dual-licensed under the Eclipse Public License (EPL) and the old 'H2 License' (which is basically MPL).
@changelog_1096_li
@changelog_1098_li
Sometimes an exception 'File ID mismatch' or 'try to add a record twice' occurred after large records (8 KB or larger) are updated or deleted. See also http://code.google.com/p/h2database/issues/detail?id=22
@changelog_1097_li
@changelog_1099_li
H2 Console: The tools can now be translated (it didn't work in the last release).
@changelog_1098_li
@changelog_1100_li
New traditional Chinese translation. Thanks a lot to Derek Chao!
@changelog_1099_li
@changelog_1101_li
Indexes were not used when enabling the optimization for IN(SELECT...) (system property h2.optimizeInJoin).
@changelog_1100_h2
@changelog_1102_h2
Version 1.0.70 (2008-04-20)
@changelog_1101_li
@changelog_1103_li
The plan is to dual-license H2. The additional license is EPL (Eclipse Public License). The current license (MPL, Mozilla Public License) will stay. Current users are not affected because they can keep MPL. EPL is very similar to MPL, the only bigger difference is related to patents (EPL is a bit more business friendly in this regard). See also http://opensource.org/licenses/eclipse-1.0.php, http://www.eclipse.org/legal/eplfaq.php (FAQ), http://blogs.zdnet.com/Burnette/?p=131
@changelog_1102_li
@changelog_1104_li
Multi version concurrency (MVCC): when a row was updated, and the updated column was not indexed, this update was visible sometimes for other sessions even if it was not committed.
@changelog_1103_li
@changelog_1105_li
Calling SHUTDOWN on one connection and starting a query on another connection concurrently could result in a Java level deadlock.
@changelog_1104_li
@changelog_1106_li
New system property h2.enableAnonymousSSL (default: true) to enable anonymous SSL connections.
@changelog_1105_li
@changelog_1107_li
The precision if SUBSTR is now calculated if possible.
@changelog_1106_li
@changelog_1108_li
The autocomplete in the H2 Console has been improved a bit.
@changelog_1107_li
@changelog_1109_li
The tools in the H2 Console are now translatable.
@changelog_1108_li
@changelog_1110_li
The servlet and lucene jar files are now automatically downloaded when building.
@changelog_1109_li
@changelog_1111_li
The code switch tool has been replaced by a simpler tool called SwitchSource that just uses find and replace.
@changelog_1110_li
@changelog_1112_li
Started to write a Ant replacement ('JAnt') that uses pure Java build definitions. Advantages: ability to debug the build, extensible, flexible, no XML, a bit faster. Future plan: support creating custom h2 distributions (for embedded use). Maybe create a new project 'Jant' or 'Javen' if other people are interested.
@changelog_1111_li
@changelog_1113_li
The jar file is now about 10% smaller because the variable debugging info is no longer included. The source file and line number debugging info is still included. If required, the jar file size of the full version can be further reduced to about 720 KB using 'build jarSmall' or even more by removing unneeded components.
@changelog_1112_li
@changelog_1114_li
Added shell scripts run.sh and build.sh. chmod +x is required, but otherwise it should work. Feedback or improvements are welcome!
@changelog_1113_li
@changelog_1115_li
Databases in zip files: large queries are now supported. Temp files are created in the temp directory if required. The documentation how to create the zip file has been corrected.
@changelog_1114_li
@changelog_1116_li
Invalid inline views threw confusing SQL exceptions.
@changelog_1115_li
@changelog_1117_li
The Japanese translation of the error messages and the H2 Console has been improved. Thanks a lot to Masahiro IKEMOTO.
@changelog_1116_li
@changelog_1118_li
Optimization for MIN() and MAX() when using MVCC.
@changelog_1117_li
@changelog_1119_li
To protect against remote brute force password attacks, the delay after each unsuccessful login now gets double as long. New system properties h2.delayWrongPasswordMin and h2.delayWrongPasswordMax.
@changelog_1118_li
@changelog_1120_li
After setting the query timeout and then resetting it, the next query would still timeout. Fixed.
@changelog_1119_li
@changelog_1121_li
Adding a IDENTITY column to a table with data threw a lock timeout.
@changelog_1120_li
@changelog_1122_li
OutOfMemoryError could occur when using EXISTS or IN(SELECT ..).
@changelog_1121_li
@changelog_1123_li
The built-in connection pool is not called JdbcConnectionPool. The API and documentation has been changed.
@changelog_1122_li
@changelog_1124_li
The ConvertTraceFile tool now generates SQL statement statistics at the end of the SQL script file (similar to the profiling data generated when using java -Xrunhprof).
@changelog_1123_li
@changelog_1125_li
Nested joins are now supported (A JOIN B JOIN C ON .. ON ..)
@changelog_1124_h2
@changelog_1126_h2
Version 1.0.69 (2008-03-29)
@changelog_1125_li
@changelog_1127_li
Most command line tools can now be called from within the H2 Console.
@changelog_1126_li
@changelog_1128_li
A new Shell tools is now included (org.h2.tools.Shell) to query a database from the command line.
@changelog_1127_li
@changelog_1129_li
The command line options in the tools have changed: instead of '-log true' now '-trace' is used. Also, '-ifExists', '-tcpSSL' and '-tcpAllowOthers' and so on have changed: now the 'true' is no longer needed. The old behavior is still supported.
@changelog_1128_li
@changelog_1130_li
New system property h2.sortNullsHigh to invert the default sorting behavior for NULL. The default didn't change.
@changelog_1129_li
@changelog_1131_li
Performance was very slow when using LOG=2 and deleting or updating all rows of a table in a loop. Fixed.
@changelog_1130_li
@changelog_1132_li
ALTER TABLE or CREATE TABLE now support parameters for the password field.
@changelog_1131_li
@changelog_1133_li
The linear hash has been removed. It was always slower than the b-tree index, and there were some bugs that would be hard to fix.
@changelog_1132_li
@changelog_1134_li
TRACE_LEVEL_ settings are no longer persistent. This was a problem when database initialization code caused a lot of trace output.
@changelog_1133_li
@changelog_1135_li
Fulltext search (native implementation): The words table is no longer an in-memory table because this caused memory problems in some cases.
@changelog_1134_li
@changelog_1136_li
It was possible to create a role with the name as an existing user (but not vice versa). This is not allowed any more.
@changelog_1135_li
@changelog_1137_li
The recovery tool didn't work correctly for tables without rows.
@changelog_1136_li
@changelog_1138_li
For years below 1, the YEAR method didn't return the correct value, and the conversion from date and timestamp to varchar was incorrect.
@changelog_1137_li
@changelog_1139_li
CSVWRITE caused a NullPointerException when not specifying a nullString.
@changelog_1138_li
@changelog_1140_li
When a log file switch occurred just after a truncate table or drop table statement, the database could not be started normally (RECOVER=1 was required). Fixed.
@changelog_1139_li
@changelog_1141_li
When a log file switch occurred in the middle of a sequence flush (sequences are only flushed every 32 values by default), the sequence value was lost. Fixed.
@changelog_1140_li
@changelog_1142_li
Altering a sequence didn't unlock the system table when autocommit switched off.
@changelog_1141_h2
@changelog_1143_h2
Version 1.0.68 (2008-03-18)
@changelog_1142_li
@changelog_1144_li
Very large SELECT DISTINCT and UNION EXCEPT queries are now supported, however this feature is disabled by default. To enable it, set the system property h2.maxMemoryRowsDistinct to a lower value, for example 10000.
@changelog_1143_li
@changelog_1145_li
A error is now thrown when trying to call a method inside a trigger that implicitly commits the current transaction, if an object is locked.
@changelog_1144_li
@changelog_1146_li
Unused LOB files were deleted much too late. Now they are deleted if no longer referenced in memory.
@changelog_1145_li
@changelog_1147_li
ALTER SEQUENCE and ALTER TABLE ALTER COLUMN RESTART can now be used inside a transaction.
@changelog_1146_li
@changelog_1148_li
New system property h2.aliasColumnName. When enabled, aliased columns (as in SELECT ID AS I FROM TEST) return the real table and column name in ResultSetMetaData.getTableName() and getColumnName(). This is disabled by default for compatibility with other databases (HSQLDB, Apache Derby, PostgreSQL, some version of MySQL). In version 1.1 this setting will be enabled.
@changelog_1147_li
@changelog_1149_li
When using encrypted databases, and using the wrong file password, the log file was renamed if the database was not already open. Fixed.
@changelog_1148_li
@changelog_1150_li
Improved performance when using lob files in directories (however this is still disabled by default)
@changelog_1149_li
@changelog_1151_li
H2 Console: autocomplete didn't work with very large scripts. Fixed.
@changelog_1150_li
@changelog_1152_li
Fulltext search: new method SEARCH_DATA that returns the column names and primary keys as arrays.
@changelog_1151_li
@changelog_1153_li
New experimental optimization for GROUP BY queries if an index can be used that matches the group by columns. To enable this optimization, set the system property h2.optimizeGroupSorted to true.
@changelog_1152_li
@changelog_1154_li
When using multi-version concurrency (MVCC=TRUE), duplicate rows could appear in the result set when running queries with uncommitted changes in the same session.
@changelog_1153_li
@changelog_1155_li
H2 Console: remote connections were very slow because getHostName/getRemoteHost was used. Fixed (now using getHostAddress/getRemoteAddr.
@changelog_1154_li
@changelog_1156_li
H2 Console: on Linux, Firefox, Konqueror, or Opera (in this order) are now started if available. This has been tested on Ubuntu.
@changelog_1155_li
@changelog_1157_li
H2 Console: the start window works better with IKVM
@changelog_1156_li
@changelog_1158_li
H2 Console: improved compatibility with Safari (Safari requires keep-alive)
@changelog_1157_li
@changelog_1159_li
Random: the process didn't stop if generating the random seed using the standard way (SecureRandom.generateSeed) was very slow. Now using a daemon thread to avoid this problem.
@changelog_1158_li
@changelog_1160_li
SELECT UNION with a different number of ORDER BY columns did throw an ArrayIndexOutOfBoundsException.
@changelog_1159_li
@changelog_1161_li
When using a view, the column precision was changed to the default scale for some data types.
@changelog_1160_li
@changelog_1162_li
CSVWRITE now supports a 'null string' that is used for parsing and writing NULL.
@changelog_1161_li
@changelog_1163_li
Some long running queries could not be cancelled.
@changelog_1162_li
@changelog_1164_li
Queries with many outer join tables were very slow. Fixed.
@changelog_1163_li
@changelog_1165_li
The performance of text comparison has been improved when using locale sensitive string comparison (SET COLLATOR). Now CollationKey is used with a LRU cache. The default cache size is 10000, and can be changed using the system property h2.collatorCacheSize. Use 0 to disable the cache.
@changelog_1164_li
@changelog_1166_li
UPDATE SET column=DEFAULT is now supported.
@changelog_1165_h2
@changelog_1167_h2
Version 1.0.67 (2008-02-22)
@changelog_1166_li
@changelog_1168_li
New function FILE_READ to read a file or from an URL. Both binary and text data is supported.
@changelog_1167_li
@changelog_1169_li
CREATE TABLE AS SELECT now supports specifying the column list and data types.
@changelog_1168_li
@changelog_1170_li
Connecting to a TCP server and at shutting it down at the same time could cause a Java level deadlock.
@changelog_1169_li
@changelog_1171_li
A user now has all rights on his own local temporary tables.
@changelog_1170_li
@changelog_1172_li
The CSV tool now supports a custom lineSeparator.
@changelog_1171_li
@changelog_1173_li
When using multiple connections, empty space was reused too early sometimes. This could corrupt the database when recovering.
@changelog_1172_li
@changelog_1174_li
The H2 Console has been translated to Dutch. Thanks a lot to Remco Schoen!
@changelog_1173_li
@changelog_1175_li
Databases can now be opened even if trigger classes are not in the classpath. The exception is thrown when trying to fire the trigger.
@changelog_1174_li
@changelog_1176_li
Opening databases with ACCESS_MODE_DATA=r is now supported. In this case the database is read-only, but the files don't not need to be read-only.
@changelog_1175_li
@changelog_1177_li
Security: The database now waits 200 ms before throwing an exception if the user name or password don't match, to slow down dictionary attacks.
@changelog_1176_li
@changelog_1178_li
The value cache is now a soft reference cache. This should help save memory.
@changelog_1177_li
@changelog_1179_li
CREATE INDEX on a table with many rows could run out of memory. Fixed.
@changelog_1178_li
@changelog_1180_li
Large result sets are now a bit faster.
@changelog_1179_li
@changelog_1181_li
ALTER TABLE ALTER COLUMN RESTART and ALTER SEQUENCE now support parameters (any expressions).
@changelog_1180_li
@changelog_1182_li
When setting the base directory on the command line, the user directory prefix ('~') was ignored.
@changelog_1181_li
@changelog_1183_li
The DbStarter servlet didn't start the TCP listener even if configured.
@changelog_1182_li
@changelog_1184_li
Statement.setQueryTimeout() is now supported.
@changelog_1183_li
@changelog_1185_li
New session setting QUERY_TIMEOUT, and new system property h2.maxQueryTimeout.
@changelog_1184_li
@changelog_1186_li
Changing the transaction log level (SET LOG) is now written to the trace file by default.
@changelog_1185_li
@changelog_1187_li
In a SQL script, primary key constraints are now ordered before foreign key constraints.
@changelog_1186_li
@changelog_1188_li
It was not possible to create a referential constraint to a table in a different schema in some situations.
@changelog_1187_li
@changelog_1189_li
The H2 Console was slow when the database contains many tables. Now the column names are not shown in this case.
@changelog_1188_h2
@changelog_1190_h2
Version 1.0.66 (2008-02-02)
@changelog_1189_li
@changelog_1191_li
There is a new online error analyzer tool.
@changelog_1190_li
@changelog_1192_li
H2 Console: stack traces are now links to the source code in the source repository (H2 database only).
@changelog_1191_li
@changelog_1193_li
CHAR data type equals comparison was case insensitive instead of case sensitive.
@changelog_1192_li
@changelog_1194_li
The exception 'Value too long for column' now includes the data.
@changelog_1193_li
@changelog_1195_li
The table name was missing in the documentation of CREATE INDEX.
@changelog_1194_li
@changelog_1196_li
Better support for IKVM (www.ikvm.net): the H2 Console now opens a browser window.
@changelog_1195_li
@changelog_1197_li
The cache size was not correctly calculated for tables with large objects (specially if compression is used). This could lead to out-of-memory exceptions.
@changelog_1196_li
@changelog_1198_li
The exception "Hexadecimal string contains non-hex character" was not always thrown when it should have been. Fixed.
@changelog_1197_li
@changelog_1199_li
The H2 Console now provides a link to the documentation when an error occurs (H2 databases only so far).
@changelog_1198_li
@changelog_1200_li
The acting as PostgreSQL server, when a base directory was set, and the H2 Console was started as well, the base directory was applied twice.
@changelog_1199_li
@changelog_1201_li
Calling EXTRACT(HOUR FROM ...) or EXTRACT(HH FROM ...) returned the wrong values (0 to 11 instead of 0 to 23). All other tested databases return values from 0 to 23. Please check if your application relies on the old behavior before upgrading.
@changelog_1200_li
@changelog_1202_li
For compatibility with other databases the column default (COLUMN_DEF) for columns without default is now null (it was an empty string).
@changelog_1201_li
@changelog_1203_li
Statements that contain very large subqueries (where the subquery result does not fit in memory) are now faster.
@changelog_1202_li
@changelog_1204_li
Variables: large objects (CLOB and BLOB) that don't fit in memory did not work correctly when used as variables.
@changelog_1203_li
@changelog_1205_li
Fulltext search is now supported in named in-memory databases.
@changelog_1204_li
@changelog_1206_li
H2 Console: multiple consecutive spaces in the setting name did not work. Fixed.
@changelog_1205_h2
@changelog_1207_h2
Version 1.0.65 (2008-01-18)
@changelog_1206_li
@changelog_1208_li
The build (ant) now automatically switches the source code to the correct version (JDK 1.4/1.5 or 1.6).
@changelog_1207_li
@changelog_1209_li
A recovery bug has been fixed. With older versions, it was necessary to add ;RECOVER=1 to the database URL in cases where it should not have been required.
@changelog_1208_li
@changelog_1210_li
The performance for DROP and DROP ALL OBJECTS has been improved.
@changelog_1209_li
@changelog_1211_li
The ChangePassword API has been improved.
@changelog_1210_li
@changelog_1212_li
User defined variables are now supported. Examples: SET @VAR=10;CALL @VAR. This can be used for running totals as in: select x, set(@t, ifnull(@t, 0) + x) from system_range(1, 10)
@changelog_1211_li
@changelog_1213_li
The Ukrainian translation has been improved.
@changelog_1212_li
@changelog_1214_li
CALL statements can now be used in batch updates and called using Statement.executeUpdate.
@changelog_1213_li
@changelog_1215_li
New read-only setting CREATE_BUILD (the build number of the database engine that created the database).
@changelog_1214_li
@changelog_1216_li
The optimizer did not use multi column indexes for range queries in some cases. Fixed.
@changelog_1215_li
@changelog_1217_li
The H2 Console now calls DataSource.getConnection() instead of DataSource.getConnection(user, password) when user name and password are not specified.
@changelog_1216_li
@changelog_1218_li
The bind IP address can now be set when using multi-homed host (if multiple network adapters are available) using the system property h2.bindAddress.
@changelog_1217_li
@changelog_1219_li
Batch update: Calling BatchUpdateException.printStackTrace() could result in out of memory. Fixed.
@changelog_1218_li
@changelog_1220_li
Indexes of unique or foreign constraints where not dropped when the constraint was dropped after altering the table (for example dropping a column). Fixed.
@changelog_1219_li
@changelog_1221_li
The performance for large result sets in the server mode has been improved.
@changelog_1220_li
@changelog_1222_li
The setting h2.serverSmallResultSetSize has been renamed to h2.serverResultSetFetchSize.
@changelog_1221_li
@changelog_1223_li
The SCRIPT command now uses multi-row insert statements to save space except if the option SIMPLE is used.
@changelog_1222_li
@changelog_1224_li
The SCRIPT command did not split up CLOB data correctly. Fixed.
@changelog_1223_li
@changelog_1225_li
Optimization for single column distinct queries with an index: select distinct name from test. Can be disabled by setting the system property h2.optimizeDistinct to false.
@changelog_1224_li
@changelog_1226_li
DROP ALL OBJECTS did not drop user defined aggregate functions and domains.
@changelog_1225_li
@changelog_1227_li
PostgreSQL compatibility: COUNT(T.*) is now supported.
@changelog_1226_li
@changelog_1228_li
LIKE comparisons are now faster.
@changelog_1227_li
@changelog_1229_li
Encrypted databases are now faster.
@changelog_1228_h2
@changelog_1230_h2
Version 1.0.64 (2007-12-27)
@changelog_1229_li
@changelog_1231_li
3-way union queries with prepared statement or views could return the wrong results. Fixed.
@changelog_1230_li
@changelog_1232_li
The PostgreSQL ODBC driver did not work in the last release due to a parser regression. Fixed.
@changelog_1231_li
@changelog_1233_li
CSV tool: some escape/separator character combinations did not work. Fixed.
@changelog_1232_li
@changelog_1234_li
CSV tool: the character # could not be used as a separator when reading.
@changelog_1233_li
@changelog_1235_li
Recovery: when the index file is corrupt, now the database deletes it and re-creates it automatically.
@changelog_1234_li
@changelog_1236_li
The MVCC mode did not work well with in-memory databases. Fixed.
@changelog_1235_li
@changelog_1237_li
The FTP server now supports a event listener. Thanks Fulvio Biondi for the help!
@changelog_1236_li
@changelog_1238_li
New system function CANCEL_SESSION to cancel the currently executing statement of another session.
@changelog_1237_li
@changelog_1239_li
The database now supports an exclusive mode. In exclusive mode, new connections are rejected.
@changelog_1238_li
@changelog_1240_li
H2 Console: when editing result sets, columns can now be set to null. The text 'null' must be escaped using '=null'.
@changelog_1239_li
@changelog_1241_li
New built-in functions RPAD and LPAD.
@changelog_1240_li
@changelog_1242_li
New meta data table INFORMATION_SCHEMA.SESSIONS and LOCKS to get information about active connections and locks. Admins will see all connections, non-admins only their own session.
@changelog_1241_li
@changelog_1243_li
The Ukrainian translation was not working in the last release. Fixed.
@changelog_1242_li
@changelog_1244_li
Creating many tables (many hundreds) was slow. Fixed.
@changelog_1243_li
@changelog_1245_li
Opening a database with many indexes (thousands) was slow. Fixed.
@changelog_1244_li
@changelog_1246_li
H2 Console / autocomplete: Ctrl+Space now shows the list in all modes.
@changelog_1245_li
@changelog_1247_li
The method Trigger.init has been changed: the parameters 'before' and 'type', have been added to the init method.
@changelog_1246_li
@changelog_1248_li
The performance has been improved for ResultSet methods with column name.
@changelog_1247_li
@changelog_1249_li
A stack trace was thrown if the system did not provide a quick secure random source and if there is no network or the network settings are not configured. Fixed.
@changelog_1248_li
@changelog_1250_li
The H2 Console has been translated to Turkish. Thanks a lot to Ridvan Agar!
@changelog_1249_li
@changelog_1251_li
Improved debugging support: toString methods of most object now return a meaningful text.
@changelog_1250_li
@changelog_1252_li
The classes DbStarter and WebServlet have been moved to src/main.
@changelog_1251_li
@changelog_1253_li
The column INFORMATION_SCHEMA.TRIGGERS.SQL now contains the CREATE TRIGGER statement.
@changelog_1252_li
@changelog_1254_li
Loading classes and calling methods can be restricted using the new system property h2.allowedClasses.
@changelog_1253_li
@changelog_1255_li
The database could not be used in Java applets due to security exceptions. Fixed.
@changelog_1254_h2
@changelog_1256_h2
Version 1.0.63 (2007-12-02)
@changelog_1255_li
@changelog_1257_li
The SecurePassword example has been improved.
@changelog_1256_li
@changelog_1258_li
In time zones where the summer time saving limit is at midnight, some dates do not work in some virtual machines, for example 2007-10-14 in Chile, using the Sun JVM 1.6.0_03-b05. Fixed.
@changelog_1257_li
@changelog_1259_li
The native fulltext search was not working properly after re-connecting.
@changelog_1258_li
@changelog_1260_li
Improved FTP server: now the PORT command is supported.
@changelog_1259_li
@changelog_1261_li
Temporary views (FROM(...)) with UNION didn't work if nested. Fixed.
@changelog_1260_li
@changelog_1262_li
Performance optimization for IN(...) and IN(SELECT...), currently disabled by default. To enable, use java -Dh2.optimizeInJoin=true
@changelog_1261_li
@changelog_1263_li
The H2 Console has been translated to Ukrainian by Igor Dobrovolskyi. Thanks a lot!
@changelog_1262_li
@changelog_1264_li
New function TABLE_DISTINCT.
@changelog_1263_li
@changelog_1265_li
Using LIMIT with values close to Integer.MAX_VALUE didn't work correctly.
@changelog_1264_li
@changelog_1266_li
Certain setting in the Server didn't work (http://code.google.com/p/h2database/issues/detail?id=7).
@changelog_1265_h2
@changelog_1267_h2
Version 1.0.62 (2007-11-25)
@changelog_1266_li
@changelog_1268_li
Large updates and deletes are now supported by buffering data to disk if required. The threshold is currently set to 100'000 bytes and can be changed using SET MAX_OPERATION_MEMORY or using by appending ;MAX_OPERATION_MEMORY=.. to the database URL. See also the docs.
@changelog_1267_li
@changelog_1269_li
MVCC: now an exception is thrown when an application tries to change the MVCC setting while the database is already open.
@changelog_1268_li
@changelog_1270_li
Referential integrity checks didn't lock the referenced table, and thus could read uncommitted rows of other connections. In that way the referential constraints could get violated (except when using MVCC).
@changelog_1269_li
@changelog_1271_li
Renaming or dropping a user with a schema, or removing the admin property of that user made the schema inaccessible after re-opening the database. Fixed.
@changelog_1270_li
@changelog_1272_li
The H2 Console now also support the command line option -ifExists when started from the Server tool, but only when connecting to H2 databases.
@changelog_1271_li
@changelog_1273_li
Duplicate column names were not detected when renaming columns. Fixed.
@changelog_1272_li
@changelog_1274_li
The console did not display multiple embedded spaces in text correctly. Fixed.
@changelog_1273_li
@changelog_1275_li
Google Android support: use 'ant codeswitchAndroid' to switch the source code to Android.
@changelog_1274_li
@changelog_1276_li
Values of type ARRAY are now sorted as in PostgreSQL.
@changelog_1275_li
@changelog_1277_li
In the cluster mode, could not connect if only one server was running (last release only). Fixed.
@changelog_1276_li
@changelog_1278_li
The performance of large CSV operations has been improved.
@changelog_1277_li
@changelog_1279_li
Now using custom toString() for most JDBC objects and commands.
@changelog_1278_li
@changelog_1280_li
Nested temporary views (SELECT * FROM (SELECT ...)) with parameters didn't work in some cases. Fixed.
@changelog_1279_li
@changelog_1281_li
CSV: Using an empty field delimiter didn't work (a workaround was using char(0)). Fixed.
@changelog_1280_li
@changelog_1282_li
A patch for Apache DDL Utils is available at https://issues.apache.org/jira/browse/DDLUTILS-185
@changelog_1281_li
@changelog_1283_li
The default value for h2.emergencySpaceInitial is now 256 KB (to speed up creating encrypted databases)
@changelog_1282_li
@changelog_1284_li
Eduardo Velasques has translated the H2 Console and the error messages to Brazilian Portuguese. Thanks a lot!
@changelog_1283_li
@changelog_1285_li
Creating a table from GROUP_CONCAT didn't work if the data was longer than 255 characters
@changelog_1284_h2
@changelog_1286_h2
Version 1.0.61 (2007-11-10)
@changelog_1285_li
@changelog_1287_li
The Lucene Fulltext implementation is now compiled and included in the h2.jar. Requires Lucene 2.2.
@changelog_1286_li
@changelog_1288_li
Added more tests. The code coverage is now at 83%.
@changelog_1287_li
@changelog_1289_li
ResultSetMetaData.getColumnDisplaySize was calculated as the longest display size for the given result set, but should be the maximum size that fits in the column. Fixed.
@changelog_1288_li
@changelog_1290_li
The MODE used to be a global setting, now it is a database level setting.
@changelog_1289_li
@changelog_1291_li
The database does now always round to the nearest number when converting a floating point to a integer: CAST(1.5 AS INT) will now result in 2, like in PostgreSQL and MySQL.
@changelog_1290_li
@changelog_1292_li
Math operations using unknown data types (for example -? and ?+?) are now interpreted as decimal.
@changelog_1291_li
@changelog_1293_li
INSTR, LOCATE: backward searching is not supported by using a negative start position.
@changelog_1292_li
@changelog_1294_li
Can now open a database stored in a jar or zip file (for example, jdbc:h2:zip:c:/temp/h2.zip!/test).
@changelog_1293_li
@changelog_1295_li
Files access now uses an API (FileSystem, FileObject), this will simplify adding other file systems and features (for example replication).
@changelog_1294_li
@changelog_1296_li
Vlad Alexahin has translated H2 Console to Russian. Thanks a lot!
@changelog_1295_li
@changelog_1297_li
Descending indexes are now supported. This is useful when sorting columns descending, for example by creation date.
@changelog_1296_li
@changelog_1298_li
Solved a Java level deadlock in the DatabaseCloser.
@changelog_1297_li
@changelog_1299_li
CREATE SEQUENCE: New option CACHE (number of pre-allocated numbers). New column CACHE in the sequence meta data table. The default cache size is still 32.
@changelog_1298_li
@changelog_1300_li
MVCC: The system property h2.mvcc has been removed. A few bugs have been fixed, and new tests have been added.
@changelog_1299_h2
@changelog_1301_h2
Version 1.0.60 (2007-10-20)
@changelog_1300_li
@changelog_1302_li
JdbcXAConnection: starting a transaction before getting the connection didn't switch off autocommit.
@changelog_1301_li
@changelog_1303_li
User defined aggregate functions are not supported.
@changelog_1302_li
@changelog_1304_li
Server.shutdownTcpServer was blocked when first called with force=false and then force=true. Now documentation is improved, and it is no longer blocked.
@changelog_1303_li
@changelog_1305_li
Stack traces did not include the SQL statement in all cases where they could have. Also, stack traces with SQL statement are now shorter.
@changelog_1304_li
@changelog_1306_li
Linked tables: now tables in non-default schemas are supported as well
@changelog_1305_li
@changelog_1307_li
New Italian translation from PierPaolo Ucchino. Thanks a lot!
@changelog_1306_li
@changelog_1308_li
CSV: New methods to set the escape character and field delimiter in the Csv tool and the CSVWRITE and CSVREAD methods.
@changelog_1307_li
@changelog_1309_li
Prepared statements could not be used after data definition statements (creating tables and so on). Fixed.
@changelog_1308_li
@changelog_1310_li
PreparedStatement.setMaxRows could not be changed to a higher value after the statement was executed.
@changelog_1309_li
@changelog_1311_li
The H2 Console could not connect twice to the same H2 embedded database at the same time. Fixed.
@changelog_1310_li
@changelog_1312_li
CSVREAD, RUNSCRIPT and so on now support URLs as well, using URL.openStream(). Example: select * from csvread('jar:file:///c:/temp/test.jar!/test.csv');
@changelog_1311_h2
@changelog_1313_h2
Version 1.0.59 (2007-10-03)
@changelog_1312_li
@changelog_1314_li
When the data type was unknown in a subquery, sometimes the wrong exception (ArrayIndexOutOfBounds) was thrown. Fixed.
@changelog_1313_li
@changelog_1315_li
If the process was killed while the database was running, sometimes the database could not be opened ('double allocation') except when the system property h2.check was set to false. Fixed.
@changelog_1314_li
@changelog_1316_li
Multi-threaded kernel (MULTI_THREADED=1): A synchronization problem has been fixed.
@changelog_1315_li
@changelog_1317_li
A PreparedStatement that was cancelled could not be reused. Fixed.
@changelog_1316_li
@changelog_1318_li
H2 Console: Progress information when logging into a H2 embedded database (useful when opening a database is slow).
@changelog_1317_li
@changelog_1319_li
When the database was closed while logging was disabled (LOG 0), re-opening the database was slow. Fixed.
@changelog_1318_li
@changelog_1320_li
Fulltext search is now documented (in the Tutorial).
@changelog_1319_li
@changelog_1321_li
The Console did not refresh the table list if the CREATE TABLE statement started with a comment. Fixed.
@changelog_1320_li
@changelog_1322_li
When creating a table using CREATE TABLE .. AS SELECT, the precision for some data types (for example VARCHAR) was set to the default precision. Fixed.
@changelog_1321_li
@changelog_1323_li
When using the (undocumented) in-memory file system (jdbc:h2:memFS:x or jdbc:h2:memLZF:x), and using multiple connections, a ConcurrentModificationException could occur. Fixed.
@changelog_1322_li
@changelog_1324_li
REGEXP compatibility: So far String.matches was used, but for compatibility with MySQL, now Matcher.find is used.
@changelog_1323_li
@changelog_1325_li
SCRIPT: the SQL statements in the result set now include the terminating semicolon as well. Simplifies copy and paste.
@changelog_1324_li
@changelog_1326_li
When using a subquery with group by as a table, some columns could not be used in the where condition in the outer query. Example: SELECT * FROM (SELECT ID, COUNT(*) C FROM TEST) WHERE C > 100. Fixed.
@changelog_1325_li
@changelog_1327_li
Views with subqueries as tables and queries with nested subqueries as tables did not always work. Fixed.
@changelog_1326_li
@changelog_1328_li
Compatibility: comparing columns with constants that are out of range does not throw an exception.
@changelog_1327_h2
@changelog_1329_h2
Version 1.0.58 (2007-09-15)
@changelog_1328_li
@changelog_1330_li
System.exit is no longer called by the WebServer, the Console and the Server tool (except to set the exit code if required). This is important when using OSGi.
@changelog_1329_li
@changelog_1331_li
Optimization for independent subqueries. For example, this query can now an index: SELECT * FROM TEST WHERE ID = (SELECT MAX(ID) FROM TEST) This can be disabled by setting the system property h2.optimizeSubqueryCache to false.
@changelog_1330_li
@changelog_1332_li
The explain plan now says: /* direct lookup query */ if the query can be processed directly without reading rows, for example when using MIN(indexed column), MAX(indexed column), or COUNT(*).
@changelog_1331_li
@changelog_1333_li
When using IFNULL, NULLIF, COALESCE, LEAST, or GREATEST, and the first parameter was ?, an exception was thrown. Now the highest data type of all parameters is used.
@changelog_1332_li
@changelog_1334_li
When comparing TINYINT or SMALLINT columns against constants, the index was not used. Fixed.
@changelog_1333_li
@changelog_1335_li
Maven 2: new version are now automatically synced with the central repositories.
@changelog_1334_li
@changelog_1336_li
The default value for MAX_MEMORY_UNDO is now 100000.
@changelog_1335_li
@changelog_1337_li
The documentation indexer does no longer index Japanese pages. If somebody knows how to split Japanese into words please post it.
@changelog_1336_li
@changelog_1338_li
Oracle compatibility: SYSDATE now returns a timestamp. CHR(..) is now an alias for CHAR(..).
@changelog_1337_li
@changelog_1339_li
After deleting data, empty space in the database files was not efficiently reused (but it was reused when opening the database). This has been fixed.
@changelog_1338_li
@changelog_1340_li
About 230 bytes per database was leaked. This is a problem for applications opening and closing many thousand databases. The main problem: a shutdown hook was added but never removed. Fixed. In JDK 1.4, there is <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4197876">an additionally problem</a> . A workaround has been implemented.
@changelog_1339_li
@changelog_1341_li
Optimization for COLUMN IN(.., NULL) if the column does not allow NULL values.
@changelog_1340_li
@changelog_1342_li
Using spaces in column and table aliases was not supported when used inside a view or temporary view.
@changelog_1341_li
@changelog_1343_li
The version (build) number is now included in the manifest file.
@changelog_1342_li
@changelog_1344_li
In some systems, SecureRandom.generateSeed is very slow (taking one minute or more). For those cases, an alternative method is used that takes less than one second.
@changelog_1343_li
@changelog_1345_li
The database file sizes are now increased at most 32 MB at any time.
@changelog_1344_li
@changelog_1346_li
New method DatabaseEventListener.opened that is called just after opening a database.
@changelog_1345_li
@changelog_1347_li
When using the Console with Internet Explorer 6.0 or 7.0, a Javascript error was thrown after clearing the query.
@changelog_1346_li
@changelog_1348_li
A database can now be opened even if class of a user defined function is not in the classpath. Trying to call the function will throws an exception.
@changelog_1347_li
@changelog_1349_li
User defined functions and constants may not overload built-in functions and constants. This didn't work before, but now trying to create such an object will fail.
@changelog_1348_li
@changelog_1350_li
Improved MultiDimension tool (for spatial queries): in the last few releases the tool was actually slower than using a regular query (because index lookup got faster, and because the tool didn't support prepared statements) Now the tool generates prepared statements, and the performance is better again (about 5 times faster for a reasonable amount of data).
@changelog_1349_li
@changelog_1351_li
Adding a foreign key or when re-enabling referential integrity for a table failed when checking was enabled and the reference contained NULL.
@changelog_1350_li
@changelog_1352_li
For PgServer, character encoding other than UTF-8 did not work correctly. Fixed.
@changelog_1351_li
@changelog_1353_li
Using a function in a GROUP BY expression that is used in a view as a condition did not always work.
@download_1000_h1
......@@ -2240,7 +2246,7 @@ Usually, bugs get fixes as they are found. There is a release every few weeks. H
Some problems have been found with right outer join. Internally, it is converted to left outer join, which does not always produce the same results as other databases when used in combination with other joins.
@faq_1015_li
It has been reported that when using Install4j on some Linux systems and enabling the 'pack200' option, the h2.jar becomes corrupted by the install process, causing application failure. A workaround is to add an empty file h2.jar.nopack next to the h2.jar file. The reason for this problem is not known.
When using Install4j before 4.1.4 on Linux and enabling 'pack200', the h2.jar becomes corrupted by the install process, causing application failure. A workaround is to add an empty file h2.jar.nopack next to the h2.jar file. This problem is solved in Install4j 4.1.4.
@faq_1016_h3
Is this Database Engine Open Source?
......@@ -4093,6 +4099,81 @@ This database supports two cache page replacement algorithms: LRU (the default)
@features_1566_p
To get information about page reads and writes, and the current caching algorithm in use, call SELECT * FROM INFORMATION_SCHEMA.SETTINGS. The number of pages read / written is listed for the data and index file.
@fragments_1000_b
Search:
@fragments_1001_td
Highlight keyword(s)
@fragments_1002_a
Home
@fragments_1003_a
Quickstart
@fragments_1004_a
Installation
@fragments_1005_a
Tutorial
@fragments_1006_a
Features
@fragments_1007_a
Performance
@fragments_1008_a
Advanced Topics
@fragments_1009_a
JaQu
@fragments_1010_a
Download
@fragments_1011_b
Reference
@fragments_1012_a
SQL Grammar
@fragments_1013_a
Functions
@fragments_1014_a
Data Types
@fragments_1015_a
Javadoc
@fragments_1016_a
Docs as PDF
@fragments_1017_a
Error Analyzer
@fragments_1018_b
Appendix
@fragments_1019_a
Build
@fragments_1020_a
History &amp; Roadmap
@fragments_1021_a
Links
@fragments_1022_a
FAQ
@fragments_1023_a
License
@fragments_1024_td
&nbsp;
@frame_1000_p
H2 (for 'Hypersonic 2') is free a Java SQL DBMS. Clustering, embedded and server mode, transactions, referential integrity, views, subqueries, triggers, encryption, and disk based or in-memory operation are supported. A browser based console application is included. If you see this page your browser does not support frames. Please click here to view the <a href="search.html">index</a> .
......@@ -4313,7 +4394,7 @@ JaQu
What is JaQu
@jaqu_1002_p
JaQu stands for Java Query and allows to access databases using pure Java. JaQu provides a fluent interface (or internal DSL) for building SQL statements. JaQu replaces SQL, JDBC, and O/R frameworks such as Hibernate. JaQu is something like LINQ for Java (LINQ stands for "language integrated query" and is a Microsoft .NET technology). The following JaQu code:
JaQu stands for Java Query and allows to access databases using pure Java. JaQu provides a fluent interface (or internal DSL) for building SQL statements. JaQu replaces SQL, JDBC, and object/relation frameworks such as Hibernate. JaQu is something like LINQ for Java (LINQ stands for "language integrated query" and is a Microsoft .NET technology). The following JaQu code:
@jaqu_1003_p
stands for the SQL statement:
......@@ -4325,7 +4406,7 @@ Advantages and Differences to other Data Access Tools
Unlike SQL, JaQu can be easily integrated in Java applications. Because JaQu is pure Java, Javadoc and auto-complete are supported. Type checking is performed by the compiler. JaQu fully protects against SQL injection.
@jaqu_1006_p
JaQu is much smaller than object-relation mapping tools such as Hibernate. Unlike iBatis and Hibernate, no XML or annotation based configuration is required; instead the configuration (if required at all) is done in pure Java, in the application itself.
JaQu is much smaller than object/relation mapping tools such as Hibernate. Unlike iBatis and Hibernate, no XML or annotation based configuration is required; instead the configuration (if required at all) is done in pure Java, in the application itself.
@jaqu_1007_p
JaQu does not require or contain any data caching mechanism. Like JDBC and iBatis, JaQu provides full control over when and what SQL statements are executed.
......@@ -4385,30 +4466,33 @@ Ideas
This project has just been started, and nothing is fixed yet. Some ideas for what to implement include:
@jaqu_1026_li
Provide API level compatibility with JPA (so that JaQu can be used as an extension of JPA).
Support queries on collections (instead of using a database).
@jaqu_1027_li
Internally use a JPA implementation (for example Hibernate) instead of SQL directly.
Provide API level compatibility with JPA (so that JaQu can be used as an extension of JPA).
@jaqu_1028_li
Internally use a JPA implementation (for example Hibernate) instead of SQL directly.
@jaqu_1029_li
Use PreparedStatements and cache them.
@jaqu_1029_h2
@jaqu_1030_h2
Related Projects
@jaqu_1030_a
@jaqu_1031_a
JEQUEL: Java Embedded QUEry Language
@jaqu_1031_a
@jaqu_1032_a
Quaere
@jaqu_1032_a
@jaqu_1033_a
Quaere (Alias implementation)
@jaqu_1033_a
@jaqu_1034_a
JoSQL
@jaqu_1034_a
@jaqu_1035_a
Google Group about adding LINQ features to Java
@license_1000_h1
......@@ -5135,261 +5219,273 @@ JavaPlayer
Pure Java MP3 player.
@links_1079_a
JGeocoder
Java Simon
@links_1080_p
Free Java geocoder. Geocoding is the process of estimating a latitude and longitude for a given location.
Simple Monitoring API.
@links_1081_a
Jena
JGeocoder
@links_1082_p
Java framework for building Semantic Web applications.
Free Java geocoder. Geocoding is the process of estimating a latitude and longitude for a given location.
@links_1083_a
JMatter
Jena
@links_1084_p
Framework for constructing workgroup business applications based on the Naked Objects Architectural Pattern.
Java framework for building Semantic Web applications.
@links_1085_a
JPOX
JMatter
@links_1086_p
Java persistent objects.
Framework for constructing workgroup business applications based on the Naked Objects Architectural Pattern.
@links_1087_a
Liftweb
JPOX
@links_1088_p
A Scala-based, secure, developer friendly web framework.
Java persistent objects.
@links_1089_a
LiquiBase
Liftweb
@links_1090_p
A tool to manage database changes and refactorings.
A Scala-based, secure, developer friendly web framework.
@links_1091_a
Luntbuild
LiquiBase
@links_1092_p
Build automation and management tool.
A tool to manage database changes and refactorings.
@links_1093_a
Magnolia
Luntbuild
@links_1094_p
Microarray Data Management and Export System for PFGRC (Pathogen Functional Genomics Resource Center) Microarrays.
Build automation and management tool.
@links_1095_a
MiniConnectionPoolManager
Magnolia
@links_1096_p
A lightweight standalone JDBC connection pool manager.
Microarray Data Management and Export System for PFGRC (Pathogen Functional Genomics Resource Center) Microarrays.
@links_1097_a
Mr. Persister
MiniConnectionPoolManager
@links_1098_p
Simple, small and fast object relational mapping.
A lightweight standalone JDBC connection pool manager.
@links_1099_a
Myna Application Server
Mr. Persister
@links_1100_p
Java web app that provides dynamic web content and Java libraries access from JavaScript.
Simple, small and fast object relational mapping.
@links_1101_a
MyTunesRss
Myna Application Server
@links_1102_p
MyTunesRSS lets you listen to your music wherever you are.
Java web app that provides dynamic web content and Java libraries access from JavaScript.
@links_1103_a
NCGC CurveFit
MyTunesRss
@links_1104_p
From: NIH Chemical Genomics Center, National Institutes of Health, USA. An open source application in the life sciences research field. This application handles chemical structures and biological responses of thousands of compounds with the potential to handle million+ compounds. It utilizes an embedded H2 database to enable flexible query/retrieval of all data including advanced chemical substructure and similarity searching. The application highlights an automated curve fitting and classification algorithm that outperforms commercial packages in the field. Commercial alternatives are typically small desktop software that handle a few dose response curves at a time. A couple of commercial packages that do handle several thousand curves are very expensive tools (&gt;60k USD) that require manual curation of analysis by the user; require a license to Oracle; lack advanced query/retrieval; and the ability to handle chemical structures.
MyTunesRSS lets you listen to your music wherever you are.
@links_1105_a
Ontology Works
NCGC CurveFit
@links_1106_p
This company provides semantic technologies including deductive information repositories (the Ontology Works Knowledge Servers), semantic information fusion and semantic federation of legacy databases, ontology-based domain modeling, and management of the distributed enterprise.
From: NIH Chemical Genomics Center, National Institutes of Health, USA. An open source application in the life sciences research field. This application handles chemical structures and biological responses of thousands of compounds with the potential to handle million+ compounds. It utilizes an embedded H2 database to enable flexible query/retrieval of all data including advanced chemical substructure and similarity searching. The application highlights an automated curve fitting and classification algorithm that outperforms commercial packages in the field. Commercial alternatives are typically small desktop software that handle a few dose response curves at a time. A couple of commercial packages that do handle several thousand curves are very expensive tools (&gt;60k USD) that require manual curation of analysis by the user; require a license to Oracle; lack advanced query/retrieval; and the ability to handle chemical structures.
@links_1107_a
Ontoprise OntoBroker
Ontology Works
@links_1108_p
SemanticWeb-Middleware. It supports all W3C Semantic Web recommendations: OWL, RDF, RDFS, SPARQL, and F-Logic.
This company provides semantic technologies including deductive information repositories (the Ontology Works Knowledge Servers), semantic information fusion and semantic federation of legacy databases, ontology-based domain modeling, and management of the distributed enterprise.
@links_1109_a
Orion
Ontoprise OntoBroker
@links_1110_p
J2EE Application Server.
SemanticWeb-Middleware. It supports all W3C Semantic Web recommendations: OWL, RDF, RDFS, SPARQL, and F-Logic.
@links_1111_a
P5H2
Orion
@links_1112_p
A library for the <a href="http://www.processing.org">Processing</a> programming language and environment.
J2EE Application Server.
@links_1113_a
Phase-6
P5H2
@links_1114_p
A computer based learning software.
A library for the <a href="http://www.processing.org">Processing</a> programming language and environment.
@links_1115_a
Pickle
Phase-6
@links_1116_p
Pickle is a Java library containing classes for persistence, concurrency, and logging.
A computer based learning software.
@links_1117_a
Piman
Pickle
@links_1118_p
Water treatment projects data management.
Pickle is a Java library containing classes for persistence, concurrency, and logging.
@links_1119_a
PolePosition
Piman
@links_1120_p
Open source database benchmark.
Water treatment projects data management.
@links_1121_a
Poormans
PolePosition
@links_1122_p
Very basic CMS running as a SWT application and generating static html pages.
Open source database benchmark.
@links_1123_a
Railo
Poormans
@links_1124_p
Railo is an alternative engine for the Cold Fusion Markup Language, that compiles code programmed in CFML into Java bytecode and executes it on a servlet engine.
Very basic CMS running as a SWT application and generating static html pages.
@links_1125_a
Rutema
Railo
@links_1126_p
Rutema is a test execution and management tool for heterogeneous development environments written in Ruby.
Railo is an alternative engine for the Cold Fusion Markup Language, that compiles code programmed in CFML into Java bytecode and executes it on a servlet engine.
@links_1127_a
Sava
Razuna
@links_1128_p
Open-source web-based content management system.
Open source Digital Asset Management System with integrated Web Content Management.
@links_1129_a
Scriptella
Rutema
@links_1130_p
ETL (Extract-Transform-Load) and script execution tool.
Rutema is a test execution and management tool for heterogeneous development environments written in Ruby.
@links_1131_a
Sesar
Sava
@links_1132_p
Dependency Injection Container with Aspect Oriented Programming.
Open-source web-based content management system.
@links_1133_a
SemmleCode
Scriptella
@links_1134_p
Eclipse plugin to help you improve software quality.
ETL (Extract-Transform-Load) and script execution tool.
@links_1135_a
Shellbook
Sesar
@links_1136_p
Desktop publishing application.
Dependency Injection Container with Aspect Oriented Programming.
@links_1137_a
Signsoft intelliBO
SemmleCode
@links_1138_p
Persistence middleware supporting the JDO specification.
Eclipse plugin to help you improve software quality.
@links_1139_a
SmartFoxServer
Shellbook
@links_1140_p
Platform for developing multiuser applications and games with Macromedia Flash.
Desktop publishing application.
@links_1141_a
SQL Developer
Signsoft intelliBO
@links_1142_p
Universal Database Frontend.
Persistence middleware supporting the JDO specification.
@links_1143_a
SQL Workbench/J
SmartFoxServer
@links_1144_p
Free DBMS-independent SQL tool.
Platform for developing multiuser applications and games with Macromedia Flash.
@links_1145_a
SQuirreL SQL Client
SQL Developer
@links_1146_p
Graphical tool to view the structure of a database, browse the data, issue SQL commands etc.
Universal Database Frontend.
@links_1147_a
SQuirreL DB Copy Plugin
SQL Workbench/J
@links_1148_p
Tool to copy data from one database to another.
Free DBMS-independent SQL tool.
@links_1149_a
StorYBook
SQuirreL SQL Client
@links_1150_p
A summary-based tool for novelist and script writers. It helps to keep the overview over the various traces a story has.
Graphical tool to view the structure of a database, browse the data, issue SQL commands etc.
@links_1151_a
StreamCruncher
SQuirreL DB Copy Plugin
@links_1152_p
Event (stream) processing kernel.
Tool to copy data from one database to another.
@links_1153_a
Tamava
StorYBook
@links_1154_p
Newsgroups Reader.
A summary-based tool for novelist and script writers. It helps to keep the overview over the various traces a story has.
@links_1155_a
Tune Backup
StreamCruncher
@links_1156_p
Easy-to-use backup solution for your iTunes library.
Event (stream) processing kernel.
@links_1157_a
weblica
Tamava
@links_1158_p
Desktop CMS.
Newsgroups Reader.
@links_1159_a
Web of Web
Tune Backup
@links_1160_p
Collaborative and realtime interactive media platform for the web.
Easy-to-use backup solution for your iTunes library.
@links_1161_a
Werkzeugkasten
weblica
@links_1162_p
Minimum Java Toolset.
Desktop CMS.
@links_1163_a
Volunteer database
Web of Web
@links_1164_p
Collaborative and realtime interactive media platform for the web.
@links_1165_a
Werkzeugkasten
@links_1166_p
Minimum Java Toolset.
@links_1167_a
Volunteer database
@links_1168_p
A database front end to register volunteers, partnership and donation for a Non Profit organization.
@mainWeb_1000_h1
......@@ -7885,13 +7981,19 @@ H2 Console: autocomplete: keep the previous setting
@roadmap_1349_li
executeBatch: option to stop at the first failed statement.
@roadmap_1350_h2
Not Planned
@roadmap_1350_li
Implement OLAP features as described here: http://www.devx.com/getHelpOn/10MinuteSolution/16573/0/page/5
@roadmap_1351_li
Support Oracle ROWID (unique identifier for each row).
@roadmap_1352_h2
Not Planned
@roadmap_1353_li
HSQLDB (did) support this: select id i from test where i>0 (other databases don't). Supporting it may break compatibility.
@roadmap_1352_li
@roadmap_1354_li
String.intern (so that Strings can be compared with ==) will not be used because some VMs have problems when used extensively.
@search_1000_b
......@@ -7970,36 +8072,39 @@ License
Online Error Analyzer
@sourceError_1001_a
Home
@sourceError_1002_a
Input
@sourceError_1002_h2
@sourceError_1003_h2
&nbsp; <a href="javascript:select('details')" id="detailsTab">Details</a> &nbsp; <a href="javascript:select('source')" id="sourceTab">Source Code</a>
@sourceError_1003_p
@sourceError_1004_p
Fill in the error message and stack trace and click on 'Details' or 'Source Code':
@sourceError_1004_b
@sourceError_1005_b
Error Code:
@sourceError_1005_b
@sourceError_1006_b
Product Version:
@sourceError_1006_b
@sourceError_1007_b
Message:
@sourceError_1007_b
@sourceError_1008_b
More Information:
@sourceError_1008_b
@sourceError_1009_b
Stack Trace:
@sourceError_1009_b
@sourceError_1010_b
Source File:
@sourceError_1010_p
@sourceError_1011_p
Raw file
@sourceError_1011_p
@sourceError_1012_p
(fast; only Firefox)
@tutorial_1000_h1
......@@ -8303,302 +8408,305 @@ Add the h2.jar file your web application, and add the following snippet to your
For details on how to access the database, see the code DbStarter.java
@tutorial_1100_p
By default the DbStarter listener opens a connection using the database URL jdbc:h2:~/test and user name and password 'sa'. It can also start the TCP server, however this is disabled by default. To enable it, use the db.tcpServer parameter in web.xml. Here is the complete list of options. These options are set just after the display-name and description tag, but before any listener and filter tags:
By default the DbStarter listener opens an embedded connection using the database URL jdbc:h2:~/test and user name and password 'sa'. It can also start the TCP server, however this is disabled by default. To enable it, use the db.tcpServer parameter in web.xml. Here is the complete list of options. These options are set just after the display-name and description tag, but before any listener and filter tags:
@tutorial_1101_p
When the web application is stopped, the database connection will be closed automatically. If the server is started within the DbStarter, it will also be stopped automatically when the web application is stopped.
@tutorial_1101_h2
@tutorial_1102_h2
CSV (Comma Separated Values) Support
@tutorial_1102_p
@tutorial_1103_p
The CSV file support can be used inside the database using the functions CSVREAD and CSVWRITE, and the CSV library can be used outside the database as a standalone tool.
@tutorial_1103_h3
@tutorial_1104_h3
Writing a CSV File from Within a Database
@tutorial_1104_p
@tutorial_1105_p
The built-in function CSVWRITE can be used to create a CSV file from a query. Example:
@tutorial_1105_h3
@tutorial_1106_h3
Reading a CSV File from Within a Database
@tutorial_1106_p
@tutorial_1107_p
A CSV file can be read using the function CSVREAD. Example:
@tutorial_1107_h3
@tutorial_1108_h3
Writing a CSV File from a Java Application
@tutorial_1108_p
@tutorial_1109_p
The CSV tool can be used in a Java application even when not using a database at all. Example:
@tutorial_1109_h3
@tutorial_1110_h3
Reading a CSV File from a Java Application
@tutorial_1110_p
@tutorial_1111_p
It is possible to read a CSV file without opening a database. Example:
@tutorial_1111_h2
@tutorial_1112_h2
Upgrade, Backup, and Restore
@tutorial_1112_h3
@tutorial_1113_h3
Database Upgrade
@tutorial_1113_p
@tutorial_1114_p
The recommended way to upgrade from one version of the database engine to the next version is to create a backup of the database (in the form of a SQL script) using the old engine, and then execute the SQL script using the new engine.
@tutorial_1114_h3
@tutorial_1115_h3
Backup using the Script Tool
@tutorial_1115_p
@tutorial_1116_p
There are different ways to backup a database. For example, it is possible to copy the database files. However, this is not recommended while the database is in use. Also, the database files are not human readable and quite large. The recommended way to backup a database is to create a compressed SQL script file. This can be done using the Script tool:
@tutorial_1116_p
@tutorial_1117_p
It is also possible to use the SQL command SCRIPT to create the backup of the database. For more information about the options, see the SQL command SCRIPT. The backup can be done remotely, however the file will be created on the server side. The built in FTP server could be used to retrieve the file from the server.
@tutorial_1117_h3
@tutorial_1118_h3
Restore from a Script
@tutorial_1118_p
@tutorial_1119_p
To restore a database from a SQL script file, you can use the RunScript tool:
@tutorial_1119_p
@tutorial_1120_p
For more information about the options, see the SQL command RUNSCRIPT. The restore can be done remotely, however the file needs to be on the server side. The built in FTP server could be used to copy the file to the server. It is also possible to use the SQL command RUNSCRIPT to execute a SQL script. SQL script files may contain references to other script files, in the form of RUNSCRIPT commands. However, when using the server mode, the references script files need to be available on the server side.
@tutorial_1120_h3
@tutorial_1121_h3
Online Backup
@tutorial_1121_p
@tutorial_1122_p
The BACKUP SQL statement and the Backup tool both create a zip file with all database files. However, the contents of this file are not human readable. Other than the SCRIPT statement, the BACKUP statement does not lock the database objects, and therefore does not block other users. The resulting backup is transactionally consistent:
@tutorial_1122_p
@tutorial_1123_p
The Backup tool (org.h2.tools.Backup) can not be used to create a online backup; the database must not be in use while running this program.
@tutorial_1123_h2
@tutorial_1124_h2
Command Line Tools
@tutorial_1124_p
@tutorial_1125_p
This database comes with a number of command line tools. To get more information about a tool, start it with the parameter '-?', for example:
@tutorial_1125_p
@tutorial_1126_p
The command line tools are:
@tutorial_1126_b
@tutorial_1127_b
Backup
@tutorial_1127_li
@tutorial_1128_li
creates a backup of a database.
@tutorial_1128_b
@tutorial_1129_b
ChangeFileEncryption
@tutorial_1129_li
@tutorial_1130_li
allows changing the file encryption password or algorithm of a database.
@tutorial_1130_b
@tutorial_1131_b
Console
@tutorial_1131_li
@tutorial_1132_li
starts the browser based H2 Console.
@tutorial_1132_b
@tutorial_1133_b
ConvertTraceFile
@tutorial_1133_li
@tutorial_1134_li
converts a .trace.db file to a Java application and SQL script.
@tutorial_1134_b
@tutorial_1135_b
CreateCluster
@tutorial_1135_li
@tutorial_1136_li
creates a cluster from a standalone database.
@tutorial_1136_b
@tutorial_1137_b
DeleteDbFiles
@tutorial_1137_li
@tutorial_1138_li
deletes all files belonging to a database.
@tutorial_1138_b
@tutorial_1139_b
Script
@tutorial_1139_li
@tutorial_1140_li
allows converting a database to a SQL script for backup or migration.
@tutorial_1140_b
@tutorial_1141_b
Recover
@tutorial_1141_li
@tutorial_1142_li
helps recovering a corrupted database.
@tutorial_1142_b
@tutorial_1143_b
Restore
@tutorial_1143_li
@tutorial_1144_li
restores a backup of a database.
@tutorial_1144_b
@tutorial_1145_b
RunScript
@tutorial_1145_li
@tutorial_1146_li
runs a SQL script against a database.
@tutorial_1146_b
@tutorial_1147_b
Server
@tutorial_1147_li
@tutorial_1148_li
is used in the server mode to start a H2 server.
@tutorial_1148_b
@tutorial_1149_b
Shell
@tutorial_1149_li
@tutorial_1150_li
is a command line database tool.
@tutorial_1150_p
@tutorial_1151_p
The tools can also be called from an application by calling the main or another public methods. For details, see the Javadoc documentation.
@tutorial_1151_h2
@tutorial_1152_h2
Using OpenOffice Base
@tutorial_1152_p
@tutorial_1153_p
OpenOffice.org Base supports database access over the JDBC API. To connect to a H2 database using OpenOffice Base, you first need to add the JDBC driver to OpenOffice. The steps to connect to a H2 database are:
@tutorial_1153_li
@tutorial_1154_li
Start OpenOffice Writer, go to [Tools], [Options]
@tutorial_1154_li
@tutorial_1155_li
Make sure you have selected a Java runtime environment in OpenOffice.org / Java
@tutorial_1155_li
@tutorial_1156_li
Click [Class Path...], [Add Archive...]
@tutorial_1156_li
@tutorial_1157_li
Select your h2.jar (location is up to you, could be wherever you choose)
@tutorial_1157_li
@tutorial_1158_li
Click [OK] (as much as needed), stop OpenOffice (including the Quickstarter)
@tutorial_1158_li
@tutorial_1159_li
Start OpenOffice Base
@tutorial_1159_li
@tutorial_1160_li
Connect to an existing database; select JDBC; [Next]
@tutorial_1160_li
@tutorial_1161_li
Example datasource URL: jdbc:h2:~/test
@tutorial_1161_li
@tutorial_1162_li
JDBC driver class: org.h2.Driver
@tutorial_1162_p
@tutorial_1163_p
Now you can access the database stored in the current users home directory.
@tutorial_1163_p
@tutorial_1164_p
To use H2 in NeoOffice (OpenOffice without X11):
@tutorial_1164_li
@tutorial_1165_li
In NeoOffice, go to [NeoOffice], [Preferences]
@tutorial_1165_li
@tutorial_1166_li
Look for the page under [NeoOffice], [Java]
@tutorial_1166_li
@tutorial_1167_li
Click [Classpath], [Add Archive...]
@tutorial_1167_li
@tutorial_1168_li
Select your h2.jar (location is up to you, could be wherever you choose)
@tutorial_1168_li
@tutorial_1169_li
Click [OK] (as much as needed), restart NeoOffice.
@tutorial_1169_p
@tutorial_1170_p
Now, when creating a new database using the "Database Wizard":
@tutorial_1170_li
@tutorial_1171_li
Select "connect to existing database" and the type "jdbc". Click next.
@tutorial_1171_li
@tutorial_1172_li
Enter your h2 database URL. The normal behavior of H2 is that a new db is created if it doesn't exist.
@tutorial_1172_li
@tutorial_1173_li
Next step - up to you... you can just click finish and start working.
@tutorial_1173_p
@tutorial_1174_p
Another solution to use H2 in NeoOffice is:
@tutorial_1174_li
@tutorial_1175_li
Package the h2 jar within an extension package
@tutorial_1175_li
@tutorial_1176_li
Install it as a Java extension in NeoOffice
@tutorial_1176_p
@tutorial_1177_p
This can be done by create it using the NetBeans OpenOffice plugin. See also <a href="http://wiki.services.openoffice.org/wiki/Extensions_development_java">Extensions Development</a> .
@tutorial_1177_h2
@tutorial_1178_h2
Java Web Start / JNLP
@tutorial_1178_p
@tutorial_1179_p
When using Java Web Start / JNLP (Java Network Launch Protocol), permissions tags must be set in the .jnlp file, and the application .jar file must be signed. Otherwise, when trying to write to the file system, the following exception will occur: java.security.AccessControlException: access denied (java.io.FilePermission ... read). Example permission tags:
@tutorial_1179_h2
@tutorial_1180_h2
Using a Connection Pool
@tutorial_1180_p
@tutorial_1181_p
For many databases, opening a connection is slow, and it is a good idea to use a connection pool to re-use connections. For H2 however opening a connection usually is fast if the database is already open. Using a connection pool for H2 actually slows down the process a bit, except if file encryption is used (in this case opening a connection is about half as fast as using a connection pool). A simple connection pool is included in H2. It is based on the <a href="http://www.source-code.biz/snippets/java/8.htm">Mini Connection Pool Manager</a> from Christian d'Heureuse. There are other, more complex connection pools available, for example <a href="http://jakarta.apache.org/commons/dbcp/">DBCP</a> . The build-in connection pool is used as follows:
@tutorial_1181_h2
@tutorial_1182_h2
Fulltext Search
@tutorial_1182_p
@tutorial_1183_p
H2 supports Lucene full text search and native full text search implementation.
@tutorial_1183_h3
@tutorial_1184_h3
Using the Native Full Text Search
@tutorial_1184_p
@tutorial_1185_p
To initialize, call:
@tutorial_1185_p
@tutorial_1186_p
You need to initialize it in each database where you want to use it. Afterwards, you can create a full text index for a table using:
@tutorial_1186_p
@tutorial_1187_p
PUBLIC is the schema, TEST is the table name. The list of column names (column separated) is optional, in this case all columns are indexed. The index is updated in read time. To search the index, use the following query:
@tutorial_1187_p
@tutorial_1188_p
You can also call the index from within a Java application:
@tutorial_1188_h3
@tutorial_1189_h3
Using the Lucene Fulltext Search
@tutorial_1189_p
@tutorial_1190_p
To use the Lucene full text search, you need the Lucene library in the classpath. How his is done depends on the application; if you use the H2 Console, you can add the Lucene jar file to the environment variables H2DRIVERS or CLASSPATH. To initialize the Lucene full text search in a database, call:
@tutorial_1190_p
@tutorial_1191_p
You need to initialize it in each database where you want to use it. Afterwards, you can create a full text index for a table using:
@tutorial_1191_p
@tutorial_1192_p
PUBLIC is the schema, TEST is the table name. The list of column names (column separated) is optional, in this case all columns are indexed. The index is updated in read time. To search the index, use the following query:
@tutorial_1192_p
@tutorial_1193_p
You can also call the index from within a Java application:
@tutorial_1193_h2
@tutorial_1194_h2
User-Defined Variables
@tutorial_1194_p
@tutorial_1195_p
This database supports user-defined variables. Variables start with @ and can be used wherever expressions or parameters are used. Variables not persisted and session scoped, that means only visible for the session where they are defined. A value is usually assigned using the SET command:
@tutorial_1195_p
@tutorial_1196_p
It is also possible to change a value using the SET() method. This is useful in queries:
@tutorial_1196_p
@tutorial_1197_p
Variables that are not set evaluate to NULL. The data type of a user-defined variable is the data type of the value assigned to it, that means it is not necessary (or possible) to declare variable names before using them. There are no restrictions on the assigned values; large objects (LOBs) are supported as well.
@tutorial_1197_h2
@tutorial_1198_h2
Date and Time
@tutorial_1198_p
@tutorial_1199_p
Date, time and timestamp values support ISO 8601 formatting, including time zone:
@tutorial_1199_p
@tutorial_1200_p
If the time zone is not set, the value is parsed using the current time zone setting of the system. Date and time information is stored in H2 database files in GMT (Greenwich Mean Time). If the database is opened using another system time zone, the date and time will change accordingly. If you want to move a database from one time zone to the other and don't want this to happen, you need to create a SQL script file using the SCRIPT command or Script tool, and then load the database using the RUNSCRIPT command or the RunScript tool in the new time zone.
......@@ -376,7 +376,7 @@ ODBCドライバ
ODBCインストール
@advanced_1125_p
まず、ODBCドライバがインストールされていなければなりません。最近のいずれのPostgreSQL ODBCドライバでも動作しますが、バージョン 8.2.4 以降のものを推奨します。PostgreSQL ODBCドライバのWindowsバージョンは <a href="http://www.postgresql.org/ftp/odbc/versions/msi">http://www.postgresql.org/ftp/odbc/versions/msi</a> から利用可能です。
#First, the ODBC driver must be installed. Any recent PostgreSQL ODBC driver should work, however version 8.2 (psqlodbc-08_02*) or newer is recommended. The Windows version of the PostgreSQL ODBC driver is available at <a href="http://www.postgresql.org/ftp/odbc/versions/msi">http://www.postgresql.org/ftp/odbc/versions/msi</a> .
@advanced_1126_h3
サーバーの起動
......@@ -1111,1053 +1111,1059 @@ Centralリポジトリの利用
#Next Version (unreleased)
@changelog_1002_li
#Java methods with variable number of parameters can now be used (for Java 1.5 or newer).
#The documentation no longer uses a frameset (except the Javadocs).
@changelog_1003_li
#The Japanese translation has been improved by Masahiro Ikemoto. Thanks a lot!
#When using DB_CLOSE_DELAY, sometimes a NullPointerException is thrown when the database is opened almost at the same time as it is closed automatically. Thanks a lot to Dmitry Pekar for finding this!
@changelog_1004_li
#The H2 Console replaced an empty user name with a single space.
#Java methods with variable number of parameters can now be used (for Java 1.5 or newer).
@changelog_1005_li
#The build target 'build jarSmall' now includes the embedded database.
#The Japanese translation has been improved by Masahiro Ikemoto. Thanks a lot!
@changelog_1006_li
#JdbcDataSource now keeps the password in a char array where possible.
#The H2 Console replaced an empty user name with a single space.
@changelog_1007_li
#ResultSet.absolute did not always work with large result sets.
#The build target 'build jarSmall' now includes the embedded database.
@changelog_1008_li
#Column aliases can now be used in GROUP BY and HAVING.
#JdbcDataSource now keeps the password in a char array where possible.
@changelog_1009_li
#ResultSet.absolute did not always work with large result sets.
@changelog_1010_li
#Column aliases can now be used in GROUP BY and HAVING.
@changelog_1011_li
#Jason Brittain has contributed MySQL date functions. Thanks a lot! They are not in the h2.jar file currently, but in src/tools/org/h2/mode/FunctionsMySQL.java. To install, add this class to the classpath and call FunctionsMySQL.register(conn) in the Java code.
@changelog_1010_h2
@changelog_1012_h2
#Version 1.0.77 (2008-08-16)
@changelog_1011_li
@changelog_1013_li
#JaQu is now using prepared statements and supports Date, Time, Timestamp.
@changelog_1012_li
@changelog_1014_li
#When using remote in-memory databases, large LOB objects did not work.
@changelog_1013_li
@changelog_1015_li
#Timestamp columns such as TIMESTAMP(6) were not compatible to other database.
@changelog_1014_li
@changelog_1016_li
#Opening a large database was slow if there was a problem opening the previous time.
@changelog_1015_li
@changelog_1017_li
#NOT IN(SELECT ...) was incorrect if the subquery returns no rows.
@changelog_1016_li
@changelog_1018_li
#CREATE TABLE AS SELECT did not work correctly in the multi-version concurrency mode.
@changelog_1017_li
@changelog_1019_li
#Support a comma before closing a list, as in: create table test(id int,)
@changelog_1018_li
@changelog_1020_li
#MySQL compatibility: linked tables had lower case column names on some systems.
@changelog_1019_li
@changelog_1021_li
#DB2 compatibility: the DB2 fetch-first-clause is supported.
@changelog_1020_li
@changelog_1022_li
#Oracle compatibility: old style outer join syntax using (+) did work correctly sometimes.
@changelog_1021_li
@changelog_1023_li
#ResultSet.setFetchSize is now supported.
@changelog_1022_li
@changelog_1024_li
#It has been reported that when using Install4j on some Linux systems and enabling the 'pack200' option, the h2.jar becomes corrupted by the install process, causing application failure. A workaround is to add an empty file h2.jar.nopack next to the h2.jar file. The reason for this problem is not known.
@changelog_1023_h2
@changelog_1025_h2
#Version 1.0.76 (2008-07-27)
@changelog_1024_li
@changelog_1026_li
#The comment of a domain (user defined data type) is now used as the default column comment when creating a column with this domain.
@changelog_1025_li
@changelog_1027_li
#Invalid database names are now detected and a better error message is thrown.
@changelog_1026_li
@changelog_1028_li
#ResultSetMetaData.getColumnClassName now returns the correct class name for BLOB and CLOB.
@changelog_1027_li
@changelog_1029_li
#Fixed the Oracle mode: Oracle allows multiple rows only where all columns of the unique index are NULL.
@changelog_1028_li
@changelog_1030_li
#There is a problem with Hibernate when using Boolean columns. A patch for Hibernate has been submitted at http://opensource.atlassian.com/projects/hibernate/browse/HHH-3401
@changelog_1029_li
@changelog_1031_li
#ORDER BY on tableName.columnName didn't work correctly if the column name was also used as an alias.
@changelog_1030_li
@changelog_1032_li
#H2 Console: The progress display when opening a database has been improved.
@changelog_1031_li
@changelog_1033_li
#The error message when the server doesn't start has been improved.
@changelog_1032_li
@changelog_1034_li
#Key values can now be changed in updatable result sets.
@changelog_1033_li
@changelog_1035_li
#Changes in updatable result sets are now visible even when resetting the result set.
@changelog_1034_li
@changelog_1036_li
#Temporary files were sometimes deleted too late when executing large insert, update, or delete operations.
@changelog_1035_li
@changelog_1037_li
#The database file was growing after deleting many rows, and after large update operations.
@changelog_1036_h2
@changelog_1038_h2
#Version 1.0.75 (2008-07-14)
@changelog_1037_li
@changelog_1039_li
#Multi version concurrency (MVCC): when a row was updated or deleted, but this change was rolled back, the row was not visible by other sessions if no index was used to access it. Fixed.
@changelog_1038_li
@changelog_1040_li
#Views with multiple joined tables (where one was an outer join) couldn't be used in some cases. Fixed.
@changelog_1039_li
@changelog_1041_li
#The CSVREAD method did not process NULL correctly when using a whitespace field separator.
@changelog_1040_li
@changelog_1042_li
#Fixed the Oracle mode: Oracle allows multiple rows with NULL in a unique index.
@changelog_1041_li
@changelog_1043_li
#Running out of memory could result in incomplete transactions or corrupted databases. Fixed.
@changelog_1042_li
@changelog_1044_li
#When using order by in a query that uses the same table multiple times, the order could be incorrect. Fixed.
@changelog_1043_li
@changelog_1045_li
#Referential constraint checking improvement: now the constraint is only checked if the key column values change.
@changelog_1044_li
@changelog_1046_li
#Some database metadata calls returned the wrong data type for DATA_TYPE columns.
@changelog_1045_li
@changelog_1047_li
#The Lucene fulltext index was empty when opening a database with fulltext index enabled, and re-indexing it didn't work. Fixed.
@changelog_1046_li
@changelog_1048_li
#The character '$' could not be used in identifier names (table name, column names and so on). Fixed.
@changelog_1047_li
@changelog_1049_li
#The new method org.h2.tools.Server.startWebServer(conn) starts the H2 Console to inspect a database while debugging.
@changelog_1048_li
@changelog_1050_li
#Stopping a WebServer didn't always work. Fixed.
@changelog_1049_h2
@changelog_1051_h2
#Version 1.0.74 (2008-06-21)
@changelog_1050_li
@changelog_1052_li
#Work on row level locking has been started (but there is nothing usable yet).
@changelog_1051_li
@changelog_1053_li
#JaQu (Java Query), a tool similar to LINQ (Language Integrated Query; from Microsoft) is now included under src/tools/org/h2/jaqu. A small sample application is included under src/test/org/h2/test/jaqu.
@changelog_1052_li
@changelog_1054_li
#The source code is now switched to Java 1.6 by default. To switch back to Java 1.4, run 'build compile'. The h2.jar file is still Java 1.4.
@changelog_1053_li
@changelog_1055_li
#The ChangePassword tool is now called ChangeFileEncryption.
@changelog_1054_li
@changelog_1056_li
#It is no longer allowed to create columns with the data type NULL. Also, it is no longer allowed to convert a column to the data type NULL. This was possible before but caused data loss.
@changelog_1055_li
@changelog_1057_li
#When using computed columns or default values with a different data type than the column data type, a class cast exception could occur. Fixed.
@changelog_1056_li
@changelog_1058_li
#Opening databases larger than 1 GB was sometimes very slow if a lot of data was deleted previously. Fixed.
@changelog_1057_li
@changelog_1059_li
#RUNSCRIPT could throw a NullPointerException if the script name was an expression.
@changelog_1058_li
@changelog_1060_li
#Improved compatibility. New compatibility modes for Oracle and Derby. New compatibility flag uniqueIndexNullDistinct to only allow one row with 'NULL' in a unique index. This flag is enabled for Derby, Oracle, MSSQLServer, and HSQLDB.
@changelog_1059_li
@changelog_1061_li
#Linked tables: To view the statements that are executed against the target table, set the trace level to 3.
@changelog_1060_li
@changelog_1062_li
#RunScript tool: new options to show and check the results of queries.
@changelog_1061_li
@changelog_1063_li
#Deadlocks are now detected. One transaction is rolled back automatically.
@changelog_1062_li
@changelog_1064_li
#The Lucene fulltext index was always re-created when opening a database with fulltext index enabled.
@changelog_1063_li
@changelog_1065_li
#Support for overloaded Java methods. A user defined function can now be bound to multiple Java methods, if the Java methods have the same name but a different number of parameters. Thanks to Gary Tong for providing a patch!
@changelog_1064_h2
@changelog_1066_h2
#Version 1.0.73 (2008-05-31)
@changelog_1065_li
@changelog_1067_li
#ParameterMetaData now returns the right data type for most conditions, as in WHERE ID=?.
@changelog_1066_li
@changelog_1068_li
#The table SYSTEM_RANGE now supports expressions and parameters.
@changelog_1067_li
@changelog_1069_li
#New column INFORMATION_SCHEMA.CONSTRAINTS.UNIQUE_INDEX_NAME that contains the name of the unique index used to enforce this constraint, if there is such an index.
@changelog_1068_li
@changelog_1070_li
#SET QUERY_TIMEOUT and Statement.setQueryTimeout no longer commits a transaction. The same applies to SET @VARIABLE, SET LOCK_TIMEOUT, SET TRACE_LEVEL_*, SET THROTTLE, and SET PATH.
@changelog_1069_li
@changelog_1071_li
#The SCRIPT command does now emit IF NOT EXISTS for CREATE ROLE.
@changelog_1070_li
@changelog_1072_li
#MySQL compatibility: auto_increment column are no longer automatically converted to primary key columns.
@changelog_1071_li
@changelog_1073_li
#PostgreSQL compatibility: support for BOOL_OR and BOOL_AND aggregate functions.
@changelog_1072_li
@changelog_1074_li
#Negative scale values for DECIMAL or NUMBER columns are now supported in regular tables and in linked tables.
@changelog_1073_li
@changelog_1075_li
#A role or right can now be granted or revoked multiple times without getting an exception.
@changelog_1074_li
@changelog_1076_li
#Infinite numbers in SQL scripts are listed as POWER(0, -1)), negative infinite as (-POWER(0, -1)), and NaN (not a number) as SQRT(-1).
@changelog_1075_li
@changelog_1077_li
#The special double and float values 'NaN' (not a number) did not work correctly when sorting or comparing.
@changelog_1076_li
@changelog_1078_li
#The fulltext search did not support CLOB data types.
@changelog_1077_li
@changelog_1079_li
#If the drive with the database files was disconnected or unmounted while writing, sometimes a stack overflow exception was thrown instead of a IO exception.
@changelog_1078_li
@changelog_1080_li
#The H2 Console could not be shut down from within the tool if the browser supports keepAlive (most browsers do).
@changelog_1079_li
@changelog_1081_li
#If the password was passed as a char array, it was kept in an internal buffer longer than required. Theoretically the password could have been stolen if the main memory was swapped to disk before the garbage collection was run.
@changelog_1080_h2
@changelog_1082_h2
#Version 1.0.72 (2008-05-10)
@changelog_1081_li
@changelog_1083_li
#Some databases could not be opened when appending ;RECOVER=1 to the database URL.
@changelog_1082_li
@changelog_1084_li
#The Japanese translation of the error messages and the H2 Console has been completed by Masahiro Ikemoto (Arizona Design Inc.)
@changelog_1083_li
@changelog_1085_li
#Updates made to updatable rows are now visible within the same result set. DatabaseMetaData.ownUpdatesAreVisible now returns true.
@changelog_1084_li
@changelog_1086_li
#ParameterMetaData now returns the correct data for INSERT and UPDATE statements.
@changelog_1085_li
@changelog_1087_li
#H2 Shell: DESCRIBE now supports an schema name.
@changelog_1086_li
@changelog_1088_li
#A subset of the PostgreSQL 'dollar quoting' feature is now supported.
@changelog_1087_li
@changelog_1089_li
#SLF4J is now supported by using adding TRACE_LEVEL_FILE=4 to the database URL.
@changelog_1088_li
@changelog_1090_li
#The recovery tool did not work if the table name contained spaces or if there was a comment on the table.
@changelog_1089_li
@changelog_1091_li
#Triggers are no longer executed when changing the table structure (ALTER TABLE).
@changelog_1090_li
@changelog_1092_li
#When setting BLOB or CLOB values larger than 65 KB using a remote connection, temporary files were kept on the client longer than required (until the connection was closed or the object is garbage collected). Now they are removed as soon as the PreparedStatement is closed, or when the value is overwritten.
@changelog_1091_li
@changelog_1093_li
#Statements can now be cancelled remotely (when using remote connections).
@changelog_1092_li
@changelog_1094_li
#The Shell tool now uses java.io.Console to read the password when using JDK 1.6
@changelog_1093_li
@changelog_1095_li
#When using read-only databases and setting LOG=2, an exception was written to the trace file when closing the database. Fixed.
@changelog_1094_h2
@changelog_1096_h2
#Version 1.0.71 (2008-04-25)
@changelog_1095_li
@changelog_1097_li
#H2 is now dual-licensed under the Eclipse Public License (EPL) and the old 'H2 License' (which is basically MPL).
@changelog_1096_li
@changelog_1098_li
#Sometimes an exception 'File ID mismatch' or 'try to add a record twice' occurred after large records (8 KB or larger) are updated or deleted. See also http://code.google.com/p/h2database/issues/detail?id=22
@changelog_1097_li
@changelog_1099_li
#H2 Console: The tools can now be translated (it didn't work in the last release).
@changelog_1098_li
@changelog_1100_li
#New traditional Chinese translation. Thanks a lot to Derek Chao!
@changelog_1099_li
@changelog_1101_li
#Indexes were not used when enabling the optimization for IN(SELECT...) (system property h2.optimizeInJoin).
@changelog_1100_h2
@changelog_1102_h2
#Version 1.0.70 (2008-04-20)
@changelog_1101_li
@changelog_1103_li
#The plan is to dual-license H2. The additional license is EPL (Eclipse Public License). The current license (MPL, Mozilla Public License) will stay. Current users are not affected because they can keep MPL. EPL is very similar to MPL, the only bigger difference is related to patents (EPL is a bit more business friendly in this regard). See also http://opensource.org/licenses/eclipse-1.0.php, http://www.eclipse.org/legal/eplfaq.php (FAQ), http://blogs.zdnet.com/Burnette/?p=131
@changelog_1102_li
@changelog_1104_li
#Multi version concurrency (MVCC): when a row was updated, and the updated column was not indexed, this update was visible sometimes for other sessions even if it was not committed.
@changelog_1103_li
@changelog_1105_li
#Calling SHUTDOWN on one connection and starting a query on another connection concurrently could result in a Java level deadlock.
@changelog_1104_li
@changelog_1106_li
#New system property h2.enableAnonymousSSL (default: true) to enable anonymous SSL connections.
@changelog_1105_li
@changelog_1107_li
#The precision if SUBSTR is now calculated if possible.
@changelog_1106_li
@changelog_1108_li
#The autocomplete in the H2 Console has been improved a bit.
@changelog_1107_li
@changelog_1109_li
#The tools in the H2 Console are now translatable.
@changelog_1108_li
@changelog_1110_li
#The servlet and lucene jar files are now automatically downloaded when building.
@changelog_1109_li
@changelog_1111_li
#The code switch tool has been replaced by a simpler tool called SwitchSource that just uses find and replace.
@changelog_1110_li
@changelog_1112_li
#Started to write a Ant replacement ('JAnt') that uses pure Java build definitions. Advantages: ability to debug the build, extensible, flexible, no XML, a bit faster. Future plan: support creating custom h2 distributions (for embedded use). Maybe create a new project 'Jant' or 'Javen' if other people are interested.
@changelog_1111_li
@changelog_1113_li
#The jar file is now about 10% smaller because the variable debugging info is no longer included. The source file and line number debugging info is still included. If required, the jar file size of the full version can be further reduced to about 720 KB using 'build jarSmall' or even more by removing unneeded components.
@changelog_1112_li
@changelog_1114_li
#Added shell scripts run.sh and build.sh. chmod +x is required, but otherwise it should work. Feedback or improvements are welcome!
@changelog_1113_li
@changelog_1115_li
#Databases in zip files: large queries are now supported. Temp files are created in the temp directory if required. The documentation how to create the zip file has been corrected.
@changelog_1114_li
@changelog_1116_li
#Invalid inline views threw confusing SQL exceptions.
@changelog_1115_li
@changelog_1117_li
#The Japanese translation of the error messages and the H2 Console has been improved. Thanks a lot to Masahiro IKEMOTO.
@changelog_1116_li
@changelog_1118_li
#Optimization for MIN() and MAX() when using MVCC.
@changelog_1117_li
@changelog_1119_li
#To protect against remote brute force password attacks, the delay after each unsuccessful login now gets double as long. New system properties h2.delayWrongPasswordMin and h2.delayWrongPasswordMax.
@changelog_1118_li
@changelog_1120_li
#After setting the query timeout and then resetting it, the next query would still timeout. Fixed.
@changelog_1119_li
@changelog_1121_li
#Adding a IDENTITY column to a table with data threw a lock timeout.
@changelog_1120_li
@changelog_1122_li
#OutOfMemoryError could occur when using EXISTS or IN(SELECT ..).
@changelog_1121_li
@changelog_1123_li
#The built-in connection pool is not called JdbcConnectionPool. The API and documentation has been changed.
@changelog_1122_li
@changelog_1124_li
#The ConvertTraceFile tool now generates SQL statement statistics at the end of the SQL script file (similar to the profiling data generated when using java -Xrunhprof).
@changelog_1123_li
@changelog_1125_li
#Nested joins are now supported (A JOIN B JOIN C ON .. ON ..)
@changelog_1124_h2
@changelog_1126_h2
#Version 1.0.69 (2008-03-29)
@changelog_1125_li
@changelog_1127_li
#Most command line tools can now be called from within the H2 Console.
@changelog_1126_li
@changelog_1128_li
#A new Shell tools is now included (org.h2.tools.Shell) to query a database from the command line.
@changelog_1127_li
@changelog_1129_li
#The command line options in the tools have changed: instead of '-log true' now '-trace' is used. Also, '-ifExists', '-tcpSSL' and '-tcpAllowOthers' and so on have changed: now the 'true' is no longer needed. The old behavior is still supported.
@changelog_1128_li
@changelog_1130_li
#New system property h2.sortNullsHigh to invert the default sorting behavior for NULL. The default didn't change.
@changelog_1129_li
@changelog_1131_li
#Performance was very slow when using LOG=2 and deleting or updating all rows of a table in a loop. Fixed.
@changelog_1130_li
@changelog_1132_li
#ALTER TABLE or CREATE TABLE now support parameters for the password field.
@changelog_1131_li
@changelog_1133_li
#The linear hash has been removed. It was always slower than the b-tree index, and there were some bugs that would be hard to fix.
@changelog_1132_li
@changelog_1134_li
#TRACE_LEVEL_ settings are no longer persistent. This was a problem when database initialization code caused a lot of trace output.
@changelog_1133_li
@changelog_1135_li
#Fulltext search (native implementation): The words table is no longer an in-memory table because this caused memory problems in some cases.
@changelog_1134_li
@changelog_1136_li
#It was possible to create a role with the name as an existing user (but not vice versa). This is not allowed any more.
@changelog_1135_li
@changelog_1137_li
#The recovery tool didn't work correctly for tables without rows.
@changelog_1136_li
@changelog_1138_li
#For years below 1, the YEAR method didn't return the correct value, and the conversion from date and timestamp to varchar was incorrect.
@changelog_1137_li
@changelog_1139_li
#CSVWRITE caused a NullPointerException when not specifying a nullString.
@changelog_1138_li
@changelog_1140_li
#When a log file switch occurred just after a truncate table or drop table statement, the database could not be started normally (RECOVER=1 was required). Fixed.
@changelog_1139_li
@changelog_1141_li
#When a log file switch occurred in the middle of a sequence flush (sequences are only flushed every 32 values by default), the sequence value was lost. Fixed.
@changelog_1140_li
@changelog_1142_li
#Altering a sequence didn't unlock the system table when autocommit switched off.
@changelog_1141_h2
@changelog_1143_h2
#Version 1.0.68 (2008-03-18)
@changelog_1142_li
@changelog_1144_li
#Very large SELECT DISTINCT and UNION EXCEPT queries are now supported, however this feature is disabled by default. To enable it, set the system property h2.maxMemoryRowsDistinct to a lower value, for example 10000.
@changelog_1143_li
@changelog_1145_li
#A error is now thrown when trying to call a method inside a trigger that implicitly commits the current transaction, if an object is locked.
@changelog_1144_li
@changelog_1146_li
#Unused LOB files were deleted much too late. Now they are deleted if no longer referenced in memory.
@changelog_1145_li
@changelog_1147_li
#ALTER SEQUENCE and ALTER TABLE ALTER COLUMN RESTART can now be used inside a transaction.
@changelog_1146_li
@changelog_1148_li
#New system property h2.aliasColumnName. When enabled, aliased columns (as in SELECT ID AS I FROM TEST) return the real table and column name in ResultSetMetaData.getTableName() and getColumnName(). This is disabled by default for compatibility with other databases (HSQLDB, Apache Derby, PostgreSQL, some version of MySQL). In version 1.1 this setting will be enabled.
@changelog_1147_li
@changelog_1149_li
#When using encrypted databases, and using the wrong file password, the log file was renamed if the database was not already open. Fixed.
@changelog_1148_li
@changelog_1150_li
#Improved performance when using lob files in directories (however this is still disabled by default)
@changelog_1149_li
@changelog_1151_li
#H2 Console: autocomplete didn't work with very large scripts. Fixed.
@changelog_1150_li
@changelog_1152_li
#Fulltext search: new method SEARCH_DATA that returns the column names and primary keys as arrays.
@changelog_1151_li
@changelog_1153_li
#New experimental optimization for GROUP BY queries if an index can be used that matches the group by columns. To enable this optimization, set the system property h2.optimizeGroupSorted to true.
@changelog_1152_li
@changelog_1154_li
#When using multi-version concurrency (MVCC=TRUE), duplicate rows could appear in the result set when running queries with uncommitted changes in the same session.
@changelog_1153_li
@changelog_1155_li
#H2 Console: remote connections were very slow because getHostName/getRemoteHost was used. Fixed (now using getHostAddress/getRemoteAddr.
@changelog_1154_li
@changelog_1156_li
#H2 Console: on Linux, Firefox, Konqueror, or Opera (in this order) are now started if available. This has been tested on Ubuntu.
@changelog_1155_li
@changelog_1157_li
#H2 Console: the start window works better with IKVM
@changelog_1156_li
@changelog_1158_li
#H2 Console: improved compatibility with Safari (Safari requires keep-alive)
@changelog_1157_li
@changelog_1159_li
#Random: the process didn't stop if generating the random seed using the standard way (SecureRandom.generateSeed) was very slow. Now using a daemon thread to avoid this problem.
@changelog_1158_li
@changelog_1160_li
#SELECT UNION with a different number of ORDER BY columns did throw an ArrayIndexOutOfBoundsException.
@changelog_1159_li
@changelog_1161_li
#When using a view, the column precision was changed to the default scale for some data types.
@changelog_1160_li
@changelog_1162_li
#CSVWRITE now supports a 'null string' that is used for parsing and writing NULL.
@changelog_1161_li
@changelog_1163_li
#Some long running queries could not be cancelled.
@changelog_1162_li
@changelog_1164_li
#Queries with many outer join tables were very slow. Fixed.
@changelog_1163_li
@changelog_1165_li
#The performance of text comparison has been improved when using locale sensitive string comparison (SET COLLATOR). Now CollationKey is used with a LRU cache. The default cache size is 10000, and can be changed using the system property h2.collatorCacheSize. Use 0 to disable the cache.
@changelog_1164_li
@changelog_1166_li
#UPDATE SET column=DEFAULT is now supported.
@changelog_1165_h2
@changelog_1167_h2
#Version 1.0.67 (2008-02-22)
@changelog_1166_li
@changelog_1168_li
#New function FILE_READ to read a file or from an URL. Both binary and text data is supported.
@changelog_1167_li
@changelog_1169_li
#CREATE TABLE AS SELECT now supports specifying the column list and data types.
@changelog_1168_li
@changelog_1170_li
#Connecting to a TCP server and at shutting it down at the same time could cause a Java level deadlock.
@changelog_1169_li
@changelog_1171_li
#A user now has all rights on his own local temporary tables.
@changelog_1170_li
@changelog_1172_li
#The CSV tool now supports a custom lineSeparator.
@changelog_1171_li
@changelog_1173_li
#When using multiple connections, empty space was reused too early sometimes. This could corrupt the database when recovering.
@changelog_1172_li
@changelog_1174_li
#The H2 Console has been translated to Dutch. Thanks a lot to Remco Schoen!
@changelog_1173_li
@changelog_1175_li
#Databases can now be opened even if trigger classes are not in the classpath. The exception is thrown when trying to fire the trigger.
@changelog_1174_li
@changelog_1176_li
#Opening databases with ACCESS_MODE_DATA=r is now supported. In this case the database is read-only, but the files don't not need to be read-only.
@changelog_1175_li
@changelog_1177_li
#Security: The database now waits 200 ms before throwing an exception if the user name or password don't match, to slow down dictionary attacks.
@changelog_1176_li
@changelog_1178_li
#The value cache is now a soft reference cache. This should help save memory.
@changelog_1177_li
@changelog_1179_li
#CREATE INDEX on a table with many rows could run out of memory. Fixed.
@changelog_1178_li
@changelog_1180_li
#Large result sets are now a bit faster.
@changelog_1179_li
@changelog_1181_li
#ALTER TABLE ALTER COLUMN RESTART and ALTER SEQUENCE now support parameters (any expressions).
@changelog_1180_li
@changelog_1182_li
#When setting the base directory on the command line, the user directory prefix ('~') was ignored.
@changelog_1181_li
@changelog_1183_li
#The DbStarter servlet didn't start the TCP listener even if configured.
@changelog_1182_li
@changelog_1184_li
#Statement.setQueryTimeout() is now supported.
@changelog_1183_li
@changelog_1185_li
#New session setting QUERY_TIMEOUT, and new system property h2.maxQueryTimeout.
@changelog_1184_li
@changelog_1186_li
#Changing the transaction log level (SET LOG) is now written to the trace file by default.
@changelog_1185_li
@changelog_1187_li
#In a SQL script, primary key constraints are now ordered before foreign key constraints.
@changelog_1186_li
@changelog_1188_li
#It was not possible to create a referential constraint to a table in a different schema in some situations.
@changelog_1187_li
@changelog_1189_li
#The H2 Console was slow when the database contains many tables. Now the column names are not shown in this case.
@changelog_1188_h2
@changelog_1190_h2
#Version 1.0.66 (2008-02-02)
@changelog_1189_li
@changelog_1191_li
#There is a new online error analyzer tool.
@changelog_1190_li
@changelog_1192_li
#H2 Console: stack traces are now links to the source code in the source repository (H2 database only).
@changelog_1191_li
@changelog_1193_li
#CHAR data type equals comparison was case insensitive instead of case sensitive.
@changelog_1192_li
@changelog_1194_li
#The exception 'Value too long for column' now includes the data.
@changelog_1193_li
@changelog_1195_li
#The table name was missing in the documentation of CREATE INDEX.
@changelog_1194_li
@changelog_1196_li
#Better support for IKVM (www.ikvm.net): the H2 Console now opens a browser window.
@changelog_1195_li
@changelog_1197_li
#The cache size was not correctly calculated for tables with large objects (specially if compression is used). This could lead to out-of-memory exceptions.
@changelog_1196_li
@changelog_1198_li
#The exception "Hexadecimal string contains non-hex character" was not always thrown when it should have been. Fixed.
@changelog_1197_li
@changelog_1199_li
#The H2 Console now provides a link to the documentation when an error occurs (H2 databases only so far).
@changelog_1198_li
@changelog_1200_li
#The acting as PostgreSQL server, when a base directory was set, and the H2 Console was started as well, the base directory was applied twice.
@changelog_1199_li
@changelog_1201_li
#Calling EXTRACT(HOUR FROM ...) or EXTRACT(HH FROM ...) returned the wrong values (0 to 11 instead of 0 to 23). All other tested databases return values from 0 to 23. Please check if your application relies on the old behavior before upgrading.
@changelog_1200_li
@changelog_1202_li
#For compatibility with other databases the column default (COLUMN_DEF) for columns without default is now null (it was an empty string).
@changelog_1201_li
@changelog_1203_li
#Statements that contain very large subqueries (where the subquery result does not fit in memory) are now faster.
@changelog_1202_li
@changelog_1204_li
#Variables: large objects (CLOB and BLOB) that don't fit in memory did not work correctly when used as variables.
@changelog_1203_li
@changelog_1205_li
#Fulltext search is now supported in named in-memory databases.
@changelog_1204_li
@changelog_1206_li
#H2 Console: multiple consecutive spaces in the setting name did not work. Fixed.
@changelog_1205_h2
@changelog_1207_h2
#Version 1.0.65 (2008-01-18)
@changelog_1206_li
@changelog_1208_li
#The build (ant) now automatically switches the source code to the correct version (JDK 1.4/1.5 or 1.6).
@changelog_1207_li
@changelog_1209_li
#A recovery bug has been fixed. With older versions, it was necessary to add ;RECOVER=1 to the database URL in cases where it should not have been required.
@changelog_1208_li
@changelog_1210_li
#The performance for DROP and DROP ALL OBJECTS has been improved.
@changelog_1209_li
@changelog_1211_li
#The ChangePassword API has been improved.
@changelog_1210_li
@changelog_1212_li
#User defined variables are now supported. Examples: SET @VAR=10;CALL @VAR. This can be used for running totals as in: select x, set(@t, ifnull(@t, 0) + x) from system_range(1, 10)
@changelog_1211_li
@changelog_1213_li
#The Ukrainian translation has been improved.
@changelog_1212_li
@changelog_1214_li
#CALL statements can now be used in batch updates and called using Statement.executeUpdate.
@changelog_1213_li
@changelog_1215_li
#New read-only setting CREATE_BUILD (the build number of the database engine that created the database).
@changelog_1214_li
@changelog_1216_li
#The optimizer did not use multi column indexes for range queries in some cases. Fixed.
@changelog_1215_li
@changelog_1217_li
#The H2 Console now calls DataSource.getConnection() instead of DataSource.getConnection(user, password) when user name and password are not specified.
@changelog_1216_li
@changelog_1218_li
#The bind IP address can now be set when using multi-homed host (if multiple network adapters are available) using the system property h2.bindAddress.
@changelog_1217_li
@changelog_1219_li
#Batch update: Calling BatchUpdateException.printStackTrace() could result in out of memory. Fixed.
@changelog_1218_li
@changelog_1220_li
#Indexes of unique or foreign constraints where not dropped when the constraint was dropped after altering the table (for example dropping a column). Fixed.
@changelog_1219_li
@changelog_1221_li
#The performance for large result sets in the server mode has been improved.
@changelog_1220_li
@changelog_1222_li
#The setting h2.serverSmallResultSetSize has been renamed to h2.serverResultSetFetchSize.
@changelog_1221_li
@changelog_1223_li
#The SCRIPT command now uses multi-row insert statements to save space except if the option SIMPLE is used.
@changelog_1222_li
@changelog_1224_li
#The SCRIPT command did not split up CLOB data correctly. Fixed.
@changelog_1223_li
@changelog_1225_li
#Optimization for single column distinct queries with an index: select distinct name from test. Can be disabled by setting the system property h2.optimizeDistinct to false.
@changelog_1224_li
@changelog_1226_li
#DROP ALL OBJECTS did not drop user defined aggregate functions and domains.
@changelog_1225_li
@changelog_1227_li
#PostgreSQL compatibility: COUNT(T.*) is now supported.
@changelog_1226_li
@changelog_1228_li
#LIKE comparisons are now faster.
@changelog_1227_li
@changelog_1229_li
#Encrypted databases are now faster.
@changelog_1228_h2
@changelog_1230_h2
#Version 1.0.64 (2007-12-27)
@changelog_1229_li
@changelog_1231_li
#3-way union queries with prepared statement or views could return the wrong results. Fixed.
@changelog_1230_li
@changelog_1232_li
#The PostgreSQL ODBC driver did not work in the last release due to a parser regression. Fixed.
@changelog_1231_li
@changelog_1233_li
#CSV tool: some escape/separator character combinations did not work. Fixed.
@changelog_1232_li
@changelog_1234_li
#CSV tool: the character # could not be used as a separator when reading.
@changelog_1233_li
@changelog_1235_li
#Recovery: when the index file is corrupt, now the database deletes it and re-creates it automatically.
@changelog_1234_li
@changelog_1236_li
#The MVCC mode did not work well with in-memory databases. Fixed.
@changelog_1235_li
@changelog_1237_li
#The FTP server now supports a event listener. Thanks Fulvio Biondi for the help!
@changelog_1236_li
@changelog_1238_li
#New system function CANCEL_SESSION to cancel the currently executing statement of another session.
@changelog_1237_li
@changelog_1239_li
#The database now supports an exclusive mode. In exclusive mode, new connections are rejected.
@changelog_1238_li
@changelog_1240_li
#H2 Console: when editing result sets, columns can now be set to null. The text 'null' must be escaped using '=null'.
@changelog_1239_li
@changelog_1241_li
#New built-in functions RPAD and LPAD.
@changelog_1240_li
@changelog_1242_li
#New meta data table INFORMATION_SCHEMA.SESSIONS and LOCKS to get information about active connections and locks. Admins will see all connections, non-admins only their own session.
@changelog_1241_li
@changelog_1243_li
#The Ukrainian translation was not working in the last release. Fixed.
@changelog_1242_li
@changelog_1244_li
#Creating many tables (many hundreds) was slow. Fixed.
@changelog_1243_li
@changelog_1245_li
#Opening a database with many indexes (thousands) was slow. Fixed.
@changelog_1244_li
@changelog_1246_li
#H2 Console / autocomplete: Ctrl+Space now shows the list in all modes.
@changelog_1245_li
@changelog_1247_li
#The method Trigger.init has been changed: the parameters 'before' and 'type', have been added to the init method.
@changelog_1246_li
@changelog_1248_li
#The performance has been improved for ResultSet methods with column name.
@changelog_1247_li
@changelog_1249_li
#A stack trace was thrown if the system did not provide a quick secure random source and if there is no network or the network settings are not configured. Fixed.
@changelog_1248_li
@changelog_1250_li
#The H2 Console has been translated to Turkish. Thanks a lot to Ridvan Agar!
@changelog_1249_li
@changelog_1251_li
#Improved debugging support: toString methods of most object now return a meaningful text.
@changelog_1250_li
@changelog_1252_li
#The classes DbStarter and WebServlet have been moved to src/main.
@changelog_1251_li
@changelog_1253_li
#The column INFORMATION_SCHEMA.TRIGGERS.SQL now contains the CREATE TRIGGER statement.
@changelog_1252_li
@changelog_1254_li
#Loading classes and calling methods can be restricted using the new system property h2.allowedClasses.
@changelog_1253_li
@changelog_1255_li
#The database could not be used in Java applets due to security exceptions. Fixed.
@changelog_1254_h2
@changelog_1256_h2
#Version 1.0.63 (2007-12-02)
@changelog_1255_li
@changelog_1257_li
#The SecurePassword example has been improved.
@changelog_1256_li
@changelog_1258_li
#In time zones where the summer time saving limit is at midnight, some dates do not work in some virtual machines, for example 2007-10-14 in Chile, using the Sun JVM 1.6.0_03-b05. Fixed.
@changelog_1257_li
@changelog_1259_li
#The native fulltext search was not working properly after re-connecting.
@changelog_1258_li
@changelog_1260_li
#Improved FTP server: now the PORT command is supported.
@changelog_1259_li
@changelog_1261_li
#Temporary views (FROM(...)) with UNION didn't work if nested. Fixed.
@changelog_1260_li
@changelog_1262_li
#Performance optimization for IN(...) and IN(SELECT...), currently disabled by default. To enable, use java -Dh2.optimizeInJoin=true
@changelog_1261_li
@changelog_1263_li
#The H2 Console has been translated to Ukrainian by Igor Dobrovolskyi. Thanks a lot!
@changelog_1262_li
@changelog_1264_li
#New function TABLE_DISTINCT.
@changelog_1263_li
@changelog_1265_li
#Using LIMIT with values close to Integer.MAX_VALUE didn't work correctly.
@changelog_1264_li
@changelog_1266_li
#Certain setting in the Server didn't work (http://code.google.com/p/h2database/issues/detail?id=7).
@changelog_1265_h2
@changelog_1267_h2
#Version 1.0.62 (2007-11-25)
@changelog_1266_li
@changelog_1268_li
#Large updates and deletes are now supported by buffering data to disk if required. The threshold is currently set to 100'000 bytes and can be changed using SET MAX_OPERATION_MEMORY or using by appending ;MAX_OPERATION_MEMORY=.. to the database URL. See also the docs.
@changelog_1267_li
@changelog_1269_li
#MVCC: now an exception is thrown when an application tries to change the MVCC setting while the database is already open.
@changelog_1268_li
@changelog_1270_li
#Referential integrity checks didn't lock the referenced table, and thus could read uncommitted rows of other connections. In that way the referential constraints could get violated (except when using MVCC).
@changelog_1269_li
@changelog_1271_li
#Renaming or dropping a user with a schema, or removing the admin property of that user made the schema inaccessible after re-opening the database. Fixed.
@changelog_1270_li
@changelog_1272_li
#The H2 Console now also support the command line option -ifExists when started from the Server tool, but only when connecting to H2 databases.
@changelog_1271_li
@changelog_1273_li
#Duplicate column names were not detected when renaming columns. Fixed.
@changelog_1272_li
@changelog_1274_li
#The console did not display multiple embedded spaces in text correctly. Fixed.
@changelog_1273_li
@changelog_1275_li
#Google Android support: use 'ant codeswitchAndroid' to switch the source code to Android.
@changelog_1274_li
@changelog_1276_li
#Values of type ARRAY are now sorted as in PostgreSQL.
@changelog_1275_li
@changelog_1277_li
#In the cluster mode, could not connect if only one server was running (last release only). Fixed.
@changelog_1276_li
@changelog_1278_li
#The performance of large CSV operations has been improved.
@changelog_1277_li
@changelog_1279_li
#Now using custom toString() for most JDBC objects and commands.
@changelog_1278_li
@changelog_1280_li
#Nested temporary views (SELECT * FROM (SELECT ...)) with parameters didn't work in some cases. Fixed.
@changelog_1279_li
@changelog_1281_li
#CSV: Using an empty field delimiter didn't work (a workaround was using char(0)). Fixed.
@changelog_1280_li
@changelog_1282_li
#A patch for Apache DDL Utils is available at https://issues.apache.org/jira/browse/DDLUTILS-185
@changelog_1281_li
@changelog_1283_li
#The default value for h2.emergencySpaceInitial is now 256 KB (to speed up creating encrypted databases)
@changelog_1282_li
@changelog_1284_li
#Eduardo Velasques has translated the H2 Console and the error messages to Brazilian Portuguese. Thanks a lot!
@changelog_1283_li
@changelog_1285_li
#Creating a table from GROUP_CONCAT didn't work if the data was longer than 255 characters
@changelog_1284_h2
@changelog_1286_h2
#Version 1.0.61 (2007-11-10)
@changelog_1285_li
@changelog_1287_li
#The Lucene Fulltext implementation is now compiled and included in the h2.jar. Requires Lucene 2.2.
@changelog_1286_li
@changelog_1288_li
#Added more tests. The code coverage is now at 83%.
@changelog_1287_li
@changelog_1289_li
#ResultSetMetaData.getColumnDisplaySize was calculated as the longest display size for the given result set, but should be the maximum size that fits in the column. Fixed.
@changelog_1288_li
@changelog_1290_li
#The MODE used to be a global setting, now it is a database level setting.
@changelog_1289_li
@changelog_1291_li
#The database does now always round to the nearest number when converting a floating point to a integer: CAST(1.5 AS INT) will now result in 2, like in PostgreSQL and MySQL.
@changelog_1290_li
@changelog_1292_li
#Math operations using unknown data types (for example -? and ?+?) are now interpreted as decimal.
@changelog_1291_li
@changelog_1293_li
#INSTR, LOCATE: backward searching is not supported by using a negative start position.
@changelog_1292_li
@changelog_1294_li
#Can now open a database stored in a jar or zip file (for example, jdbc:h2:zip:c:/temp/h2.zip!/test).
@changelog_1293_li
@changelog_1295_li
#Files access now uses an API (FileSystem, FileObject), this will simplify adding other file systems and features (for example replication).
@changelog_1294_li
@changelog_1296_li
#Vlad Alexahin has translated H2 Console to Russian. Thanks a lot!
@changelog_1295_li
@changelog_1297_li
#Descending indexes are now supported. This is useful when sorting columns descending, for example by creation date.
@changelog_1296_li
@changelog_1298_li
#Solved a Java level deadlock in the DatabaseCloser.
@changelog_1297_li
@changelog_1299_li
#CREATE SEQUENCE: New option CACHE (number of pre-allocated numbers). New column CACHE in the sequence meta data table. The default cache size is still 32.
@changelog_1298_li
@changelog_1300_li
#MVCC: The system property h2.mvcc has been removed. A few bugs have been fixed, and new tests have been added.
@changelog_1299_h2
@changelog_1301_h2
#Version 1.0.60 (2007-10-20)
@changelog_1300_li
@changelog_1302_li
#JdbcXAConnection: starting a transaction before getting the connection didn't switch off autocommit.
@changelog_1301_li
@changelog_1303_li
#User defined aggregate functions are not supported.
@changelog_1302_li
@changelog_1304_li
#Server.shutdownTcpServer was blocked when first called with force=false and then force=true. Now documentation is improved, and it is no longer blocked.
@changelog_1303_li
@changelog_1305_li
#Stack traces did not include the SQL statement in all cases where they could have. Also, stack traces with SQL statement are now shorter.
@changelog_1304_li
@changelog_1306_li
#Linked tables: now tables in non-default schemas are supported as well
@changelog_1305_li
@changelog_1307_li
#New Italian translation from PierPaolo Ucchino. Thanks a lot!
@changelog_1306_li
@changelog_1308_li
#CSV: New methods to set the escape character and field delimiter in the Csv tool and the CSVWRITE and CSVREAD methods.
@changelog_1307_li
@changelog_1309_li
#Prepared statements could not be used after data definition statements (creating tables and so on). Fixed.
@changelog_1308_li
@changelog_1310_li
#PreparedStatement.setMaxRows could not be changed to a higher value after the statement was executed.
@changelog_1309_li
@changelog_1311_li
#The H2 Console could not connect twice to the same H2 embedded database at the same time. Fixed.
@changelog_1310_li
@changelog_1312_li
#CSVREAD, RUNSCRIPT and so on now support URLs as well, using URL.openStream(). Example: select * from csvread('jar:file:///c:/temp/test.jar!/test.csv');
@changelog_1311_h2
@changelog_1313_h2
#Version 1.0.59 (2007-10-03)
@changelog_1312_li
@changelog_1314_li
#When the data type was unknown in a subquery, sometimes the wrong exception (ArrayIndexOutOfBounds) was thrown. Fixed.
@changelog_1313_li
@changelog_1315_li
#If the process was killed while the database was running, sometimes the database could not be opened ('double allocation') except when the system property h2.check was set to false. Fixed.
@changelog_1314_li
@changelog_1316_li
#Multi-threaded kernel (MULTI_THREADED=1): A synchronization problem has been fixed.
@changelog_1315_li
@changelog_1317_li
#A PreparedStatement that was cancelled could not be reused. Fixed.
@changelog_1316_li
@changelog_1318_li
#H2 Console: Progress information when logging into a H2 embedded database (useful when opening a database is slow).
@changelog_1317_li
@changelog_1319_li
#When the database was closed while logging was disabled (LOG 0), re-opening the database was slow. Fixed.
@changelog_1318_li
@changelog_1320_li
#Fulltext search is now documented (in the Tutorial).
@changelog_1319_li
@changelog_1321_li
#The Console did not refresh the table list if the CREATE TABLE statement started with a comment. Fixed.
@changelog_1320_li
@changelog_1322_li
#When creating a table using CREATE TABLE .. AS SELECT, the precision for some data types (for example VARCHAR) was set to the default precision. Fixed.
@changelog_1321_li
@changelog_1323_li
#When using the (undocumented) in-memory file system (jdbc:h2:memFS:x or jdbc:h2:memLZF:x), and using multiple connections, a ConcurrentModificationException could occur. Fixed.
@changelog_1322_li
@changelog_1324_li
#REGEXP compatibility: So far String.matches was used, but for compatibility with MySQL, now Matcher.find is used.
@changelog_1323_li
@changelog_1325_li
#SCRIPT: the SQL statements in the result set now include the terminating semicolon as well. Simplifies copy and paste.
@changelog_1324_li
@changelog_1326_li
#When using a subquery with group by as a table, some columns could not be used in the where condition in the outer query. Example: SELECT * FROM (SELECT ID, COUNT(*) C FROM TEST) WHERE C > 100. Fixed.
@changelog_1325_li
@changelog_1327_li
#Views with subqueries as tables and queries with nested subqueries as tables did not always work. Fixed.
@changelog_1326_li
@changelog_1328_li
#Compatibility: comparing columns with constants that are out of range does not throw an exception.
@changelog_1327_h2
@changelog_1329_h2
#Version 1.0.58 (2007-09-15)
@changelog_1328_li
@changelog_1330_li
#System.exit is no longer called by the WebServer, the Console and the Server tool (except to set the exit code if required). This is important when using OSGi.
@changelog_1329_li
@changelog_1331_li
#Optimization for independent subqueries. For example, this query can now an index: SELECT * FROM TEST WHERE ID = (SELECT MAX(ID) FROM TEST) This can be disabled by setting the system property h2.optimizeSubqueryCache to false.
@changelog_1330_li
@changelog_1332_li
#The explain plan now says: /* direct lookup query */ if the query can be processed directly without reading rows, for example when using MIN(indexed column), MAX(indexed column), or COUNT(*).
@changelog_1331_li
@changelog_1333_li
#When using IFNULL, NULLIF, COALESCE, LEAST, or GREATEST, and the first parameter was ?, an exception was thrown. Now the highest data type of all parameters is used.
@changelog_1332_li
@changelog_1334_li
#When comparing TINYINT or SMALLINT columns against constants, the index was not used. Fixed.
@changelog_1333_li
@changelog_1335_li
#Maven 2: new version are now automatically synced with the central repositories.
@changelog_1334_li
@changelog_1336_li
#The default value for MAX_MEMORY_UNDO is now 100000.
@changelog_1335_li
@changelog_1337_li
#The documentation indexer does no longer index Japanese pages. If somebody knows how to split Japanese into words please post it.
@changelog_1336_li
@changelog_1338_li
#Oracle compatibility: SYSDATE now returns a timestamp. CHR(..) is now an alias for CHAR(..).
@changelog_1337_li
@changelog_1339_li
#After deleting data, empty space in the database files was not efficiently reused (but it was reused when opening the database). This has been fixed.
@changelog_1338_li
@changelog_1340_li
#About 230 bytes per database was leaked. This is a problem for applications opening and closing many thousand databases. The main problem: a shutdown hook was added but never removed. Fixed. In JDK 1.4, there is <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4197876">an additionally problem</a> . A workaround has been implemented.
@changelog_1339_li
@changelog_1341_li
#Optimization for COLUMN IN(.., NULL) if the column does not allow NULL values.
@changelog_1340_li
@changelog_1342_li
#Using spaces in column and table aliases was not supported when used inside a view or temporary view.
@changelog_1341_li
@changelog_1343_li
#The version (build) number is now included in the manifest file.
@changelog_1342_li
@changelog_1344_li
#In some systems, SecureRandom.generateSeed is very slow (taking one minute or more). For those cases, an alternative method is used that takes less than one second.
@changelog_1343_li
@changelog_1345_li
#The database file sizes are now increased at most 32 MB at any time.
@changelog_1344_li
@changelog_1346_li
#New method DatabaseEventListener.opened that is called just after opening a database.
@changelog_1345_li
@changelog_1347_li
#When using the Console with Internet Explorer 6.0 or 7.0, a Javascript error was thrown after clearing the query.
@changelog_1346_li
@changelog_1348_li
#A database can now be opened even if class of a user defined function is not in the classpath. Trying to call the function will throws an exception.
@changelog_1347_li
@changelog_1349_li
#User defined functions and constants may not overload built-in functions and constants. This didn't work before, but now trying to create such an object will fail.
@changelog_1348_li
@changelog_1350_li
#Improved MultiDimension tool (for spatial queries): in the last few releases the tool was actually slower than using a regular query (because index lookup got faster, and because the tool didn't support prepared statements) Now the tool generates prepared statements, and the performance is better again (about 5 times faster for a reasonable amount of data).
@changelog_1349_li
@changelog_1351_li
#Adding a foreign key or when re-enabling referential integrity for a table failed when checking was enabled and the reference contained NULL.
@changelog_1350_li
@changelog_1352_li
#For PgServer, character encoding other than UTF-8 did not work correctly. Fixed.
@changelog_1351_li
@changelog_1353_li
#Using a function in a GROUP BY expression that is used in a view as a condition did not always work.
@download_1000_h1
......@@ -2242,7 +2248,7 @@ F A Q
ライトアウタージョイン(右外部結合)時に一部問題が発生。内部において、他の結合と組み合わせて使用される時、他のデータベースと同様に、常に同じ結果を引き起こすとは限らないレフトアウタージョイン(左外部結合)に変換される
@faq_1015_li
#It has been reported that when using Install4j on some Linux systems and enabling the 'pack200' option, the h2.jar becomes corrupted by the install process, causing application failure. A workaround is to add an empty file h2.jar.nopack next to the h2.jar file. The reason for this problem is not known.
#When using Install4j before 4.1.4 on Linux and enabling 'pack200', the h2.jar becomes corrupted by the install process, causing application failure. A workaround is to add an empty file h2.jar.nopack next to the h2.jar file. This problem is solved in Install4j 4.1.4.
@faq_1016_h3
このデータベースエンジンはオープンソースですか?
......@@ -4095,6 +4101,81 @@ result setを返す関数はテーブルのようになれます。しかし、
@features_1566_p
読んだり書いたりしたページや、現在使用されているキャッシュアルゴリズムの情報を得るためには、SELECT * FROM INFORMATION_SCHEMA.SETTINGS を呼びます。データとインデックスファイルに読み書きしたページ数が書かれています。
@fragments_1000_b
検索:
@fragments_1001_td
Highlight keyword(s)
@fragments_1002_a
ホーム
@fragments_1003_a
クイックスタート
@fragments_1004_a
インストール
@fragments_1005_a
チュートリアル
@fragments_1006_a
特徴
@fragments_1007_a
パフォーマンス
@fragments_1008_a
進歩したトピックス
@fragments_1009_a
#JaQu
@fragments_1010_a
ダウンロード
@fragments_1011_b
参照
@fragments_1012_a
SQL文法
@fragments_1013_a
関数
@fragments_1014_a
データ型
@fragments_1015_a
Javadoc
@fragments_1016_a
PDFドキュメント
@fragments_1017_a
#Error Analyzer
@fragments_1018_b
付録
@fragments_1019_a
ビルド
@fragments_1020_a
歴史とロードマップ
@fragments_1021_a
#Links
@fragments_1022_a
FAQ
@fragments_1023_a
ライセンス
@fragments_1024_td
&nbsp;
@frame_1000_p
H2 (for 'Hypersonic 2') is free a Java SQL DBMS. Clustering, embedded and server mode, transactions, referential integrity, views, subqueries, triggers, encryption, and disk based or in-memory operation are supported. A browser based console application is included. If you see this page your browser does not support frames. Please click here to view the<a href="search_ja.html">index</a>.
......@@ -4315,7 +4396,7 @@ Sourceファイル
#What is JaQu
@jaqu_1002_p
#JaQu stands for Java Query and allows to access databases using pure Java. JaQu provides a fluent interface (or internal DSL) for building SQL statements. JaQu replaces SQL, JDBC, and O/R frameworks such as Hibernate. JaQu is something like LINQ for Java (LINQ stands for "language integrated query" and is a Microsoft .NET technology). The following JaQu code:
#JaQu stands for Java Query and allows to access databases using pure Java. JaQu provides a fluent interface (or internal DSL) for building SQL statements. JaQu replaces SQL, JDBC, and object/relation frameworks such as Hibernate. JaQu is something like LINQ for Java (LINQ stands for "language integrated query" and is a Microsoft .NET technology). The following JaQu code:
@jaqu_1003_p
#stands for the SQL statement:
......@@ -4327,7 +4408,7 @@ Sourceファイル
#Unlike SQL, JaQu can be easily integrated in Java applications. Because JaQu is pure Java, Javadoc and auto-complete are supported. Type checking is performed by the compiler. JaQu fully protects against SQL injection.
@jaqu_1006_p
#JaQu is much smaller than object-relation mapping tools such as Hibernate. Unlike iBatis and Hibernate, no XML or annotation based configuration is required; instead the configuration (if required at all) is done in pure Java, in the application itself.
#JaQu is much smaller than object/relation mapping tools such as Hibernate. Unlike iBatis and Hibernate, no XML or annotation based configuration is required; instead the configuration (if required at all) is done in pure Java, in the application itself.
@jaqu_1007_p
#JaQu does not require or contain any data caching mechanism. Like JDBC and iBatis, JaQu provides full control over when and what SQL statements are executed.
......@@ -4387,30 +4468,33 @@ Sourceファイル
#This project has just been started, and nothing is fixed yet. Some ideas for what to implement include:
@jaqu_1026_li
#Provide API level compatibility with JPA (so that JaQu can be used as an extension of JPA).
#Support queries on collections (instead of using a database).
@jaqu_1027_li
#Internally use a JPA implementation (for example Hibernate) instead of SQL directly.
#Provide API level compatibility with JPA (so that JaQu can be used as an extension of JPA).
@jaqu_1028_li
#Internally use a JPA implementation (for example Hibernate) instead of SQL directly.
@jaqu_1029_li
#Use PreparedStatements and cache them.
@jaqu_1029_h2
@jaqu_1030_h2
#Related Projects
@jaqu_1030_a
@jaqu_1031_a
#JEQUEL: Java Embedded QUEry Language
@jaqu_1031_a
@jaqu_1032_a
#Quaere
@jaqu_1032_a
@jaqu_1033_a
#Quaere (Alias implementation)
@jaqu_1033_a
@jaqu_1034_a
#JoSQL
@jaqu_1034_a
@jaqu_1035_a
#Google Group about adding LINQ features to Java
@license_1000_h1
......@@ -5137,261 +5221,273 @@ Sourceファイル
#Pure Java MP3 player.
@links_1079_a
#JGeocoder
#Java Simon
@links_1080_p
#Free Java geocoder. Geocoding is the process of estimating a latitude and longitude for a given location.
#Simple Monitoring API.
@links_1081_a
#Jena
#JGeocoder
@links_1082_p
#Java framework for building Semantic Web applications.
#Free Java geocoder. Geocoding is the process of estimating a latitude and longitude for a given location.
@links_1083_a
#JMatter
#Jena
@links_1084_p
#Framework for constructing workgroup business applications based on the Naked Objects Architectural Pattern.
#Java framework for building Semantic Web applications.
@links_1085_a
#JPOX
#JMatter
@links_1086_p
#Java persistent objects.
#Framework for constructing workgroup business applications based on the Naked Objects Architectural Pattern.
@links_1087_a
#Liftweb
#JPOX
@links_1088_p
#A Scala-based, secure, developer friendly web framework.
#Java persistent objects.
@links_1089_a
#LiquiBase
#Liftweb
@links_1090_p
#A tool to manage database changes and refactorings.
#A Scala-based, secure, developer friendly web framework.
@links_1091_a
#Luntbuild
#LiquiBase
@links_1092_p
#Build automation and management tool.
#A tool to manage database changes and refactorings.
@links_1093_a
#Magnolia
#Luntbuild
@links_1094_p
#Microarray Data Management and Export System for PFGRC (Pathogen Functional Genomics Resource Center) Microarrays.
#Build automation and management tool.
@links_1095_a
#MiniConnectionPoolManager
#Magnolia
@links_1096_p
#A lightweight standalone JDBC connection pool manager.
#Microarray Data Management and Export System for PFGRC (Pathogen Functional Genomics Resource Center) Microarrays.
@links_1097_a
#Mr. Persister
#MiniConnectionPoolManager
@links_1098_p
#Simple, small and fast object relational mapping.
#A lightweight standalone JDBC connection pool manager.
@links_1099_a
#Myna Application Server
#Mr. Persister
@links_1100_p
#Java web app that provides dynamic web content and Java libraries access from JavaScript.
#Simple, small and fast object relational mapping.
@links_1101_a
#MyTunesRss
#Myna Application Server
@links_1102_p
#MyTunesRSS lets you listen to your music wherever you are.
#Java web app that provides dynamic web content and Java libraries access from JavaScript.
@links_1103_a
#NCGC CurveFit
#MyTunesRss
@links_1104_p
#From: NIH Chemical Genomics Center, National Institutes of Health, USA. An open source application in the life sciences research field. This application handles chemical structures and biological responses of thousands of compounds with the potential to handle million+ compounds. It utilizes an embedded H2 database to enable flexible query/retrieval of all data including advanced chemical substructure and similarity searching. The application highlights an automated curve fitting and classification algorithm that outperforms commercial packages in the field. Commercial alternatives are typically small desktop software that handle a few dose response curves at a time. A couple of commercial packages that do handle several thousand curves are very expensive tools (&gt;60k USD) that require manual curation of analysis by the user; require a license to Oracle; lack advanced query/retrieval; and the ability to handle chemical structures.
#MyTunesRSS lets you listen to your music wherever you are.
@links_1105_a
#Ontology Works
#NCGC CurveFit
@links_1106_p
#This company provides semantic technologies including deductive information repositories (the Ontology Works Knowledge Servers), semantic information fusion and semantic federation of legacy databases, ontology-based domain modeling, and management of the distributed enterprise.
#From: NIH Chemical Genomics Center, National Institutes of Health, USA. An open source application in the life sciences research field. This application handles chemical structures and biological responses of thousands of compounds with the potential to handle million+ compounds. It utilizes an embedded H2 database to enable flexible query/retrieval of all data including advanced chemical substructure and similarity searching. The application highlights an automated curve fitting and classification algorithm that outperforms commercial packages in the field. Commercial alternatives are typically small desktop software that handle a few dose response curves at a time. A couple of commercial packages that do handle several thousand curves are very expensive tools (&gt;60k USD) that require manual curation of analysis by the user; require a license to Oracle; lack advanced query/retrieval; and the ability to handle chemical structures.
@links_1107_a
#Ontoprise OntoBroker
#Ontology Works
@links_1108_p
#SemanticWeb-Middleware. It supports all W3C Semantic Web recommendations: OWL, RDF, RDFS, SPARQL, and F-Logic.
#This company provides semantic technologies including deductive information repositories (the Ontology Works Knowledge Servers), semantic information fusion and semantic federation of legacy databases, ontology-based domain modeling, and management of the distributed enterprise.
@links_1109_a
#Orion
#Ontoprise OntoBroker
@links_1110_p
#J2EE Application Server.
#SemanticWeb-Middleware. It supports all W3C Semantic Web recommendations: OWL, RDF, RDFS, SPARQL, and F-Logic.
@links_1111_a
#P5H2
#Orion
@links_1112_p
#A library for the <a href="http://www.processing.org">Processing</a> programming language and environment.
#J2EE Application Server.
@links_1113_a
#Phase-6
#P5H2
@links_1114_p
#A computer based learning software.
#A library for the <a href="http://www.processing.org">Processing</a> programming language and environment.
@links_1115_a
#Pickle
#Phase-6
@links_1116_p
#Pickle is a Java library containing classes for persistence, concurrency, and logging.
#A computer based learning software.
@links_1117_a
#Piman
#Pickle
@links_1118_p
#Water treatment projects data management.
#Pickle is a Java library containing classes for persistence, concurrency, and logging.
@links_1119_a
#PolePosition
#Piman
@links_1120_p
#Open source database benchmark.
#Water treatment projects data management.
@links_1121_a
#Poormans
#PolePosition
@links_1122_p
#Very basic CMS running as a SWT application and generating static html pages.
#Open source database benchmark.
@links_1123_a
#Railo
#Poormans
@links_1124_p
#Railo is an alternative engine for the Cold Fusion Markup Language, that compiles code programmed in CFML into Java bytecode and executes it on a servlet engine.
#Very basic CMS running as a SWT application and generating static html pages.
@links_1125_a
#Rutema
#Railo
@links_1126_p
#Rutema is a test execution and management tool for heterogeneous development environments written in Ruby.
#Railo is an alternative engine for the Cold Fusion Markup Language, that compiles code programmed in CFML into Java bytecode and executes it on a servlet engine.
@links_1127_a
#Sava
#Razuna
@links_1128_p
#Open-source web-based content management system.
#Open source Digital Asset Management System with integrated Web Content Management.
@links_1129_a
#Scriptella
#Rutema
@links_1130_p
#ETL (Extract-Transform-Load) and script execution tool.
#Rutema is a test execution and management tool for heterogeneous development environments written in Ruby.
@links_1131_a
#Sesar
#Sava
@links_1132_p
#Dependency Injection Container with Aspect Oriented Programming.
#Open-source web-based content management system.
@links_1133_a
#SemmleCode
#Scriptella
@links_1134_p
#Eclipse plugin to help you improve software quality.
#ETL (Extract-Transform-Load) and script execution tool.
@links_1135_a
#Shellbook
#Sesar
@links_1136_p
#Desktop publishing application.
#Dependency Injection Container with Aspect Oriented Programming.
@links_1137_a
#Signsoft intelliBO
#SemmleCode
@links_1138_p
#Persistence middleware supporting the JDO specification.
#Eclipse plugin to help you improve software quality.
@links_1139_a
#SmartFoxServer
#Shellbook
@links_1140_p
#Platform for developing multiuser applications and games with Macromedia Flash.
#Desktop publishing application.
@links_1141_a
#SQL Developer
#Signsoft intelliBO
@links_1142_p
#Universal Database Frontend.
#Persistence middleware supporting the JDO specification.
@links_1143_a
#SQL Workbench/J
#SmartFoxServer
@links_1144_p
#Free DBMS-independent SQL tool.
#Platform for developing multiuser applications and games with Macromedia Flash.
@links_1145_a
#SQuirreL SQL Client
#SQL Developer
@links_1146_p
#Graphical tool to view the structure of a database, browse the data, issue SQL commands etc.
#Universal Database Frontend.
@links_1147_a
#SQuirreL DB Copy Plugin
#SQL Workbench/J
@links_1148_p
#Tool to copy data from one database to another.
#Free DBMS-independent SQL tool.
@links_1149_a
#StorYBook
#SQuirreL SQL Client
@links_1150_p
#A summary-based tool for novelist and script writers. It helps to keep the overview over the various traces a story has.
#Graphical tool to view the structure of a database, browse the data, issue SQL commands etc.
@links_1151_a
#StreamCruncher
#SQuirreL DB Copy Plugin
@links_1152_p
#Event (stream) processing kernel.
#Tool to copy data from one database to another.
@links_1153_a
#Tamava
#StorYBook
@links_1154_p
#Newsgroups Reader.
#A summary-based tool for novelist and script writers. It helps to keep the overview over the various traces a story has.
@links_1155_a
#Tune Backup
#StreamCruncher
@links_1156_p
#Easy-to-use backup solution for your iTunes library.
#Event (stream) processing kernel.
@links_1157_a
#weblica
#Tamava
@links_1158_p
#Desktop CMS.
#Newsgroups Reader.
@links_1159_a
#Web of Web
#Tune Backup
@links_1160_p
#Collaborative and realtime interactive media platform for the web.
#Easy-to-use backup solution for your iTunes library.
@links_1161_a
#Werkzeugkasten
#weblica
@links_1162_p
#Minimum Java Toolset.
#Desktop CMS.
@links_1163_a
#Volunteer database
#Web of Web
@links_1164_p
#Collaborative and realtime interactive media platform for the web.
@links_1165_a
#Werkzeugkasten
@links_1166_p
#Minimum Java Toolset.
@links_1167_a
#Volunteer database
@links_1168_p
#A database front end to register volunteers, partnership and donation for a Non Profit organization.
@mainWeb_1000_h1
......@@ -7893,13 +7989,19 @@ SQLコマンドがコマンドエリアに表示されます。
@roadmap_1349_li
#executeBatch: option to stop at the first failed statement.
@roadmap_1350_h2
#Not Planned
@roadmap_1350_li
#Implement OLAP features as described here: http://www.devx.com/getHelpOn/10MinuteSolution/16573/0/page/5
@roadmap_1351_li
#Support Oracle ROWID (unique identifier for each row).
@roadmap_1352_h2
#Not Planned
@roadmap_1353_li
#HSQLDB (did) support this: select id i from test where i>0 (other databases don't). Supporting it may break compatibility.
@roadmap_1352_li
@roadmap_1354_li
#String.intern (so that Strings can be compared with ==) will not be used because some VMs have problems when used extensively.
@search_1000_b
......@@ -7978,36 +8080,39 @@ FAQ
#Online Error Analyzer
@sourceError_1001_a
ホーム
@sourceError_1002_a
#Input
@sourceError_1002_h2
@sourceError_1003_h2
#&nbsp; <a href="javascript:select('details')" id="detailsTab">Details</a> &nbsp; <a href="javascript:select('source')" id="sourceTab">Source Code</a>
@sourceError_1003_p
@sourceError_1004_p
#Fill in the error message and stack trace and click on 'Details' or 'Source Code':
@sourceError_1004_b
@sourceError_1005_b
#Error Code:
@sourceError_1005_b
@sourceError_1006_b
#Product Version:
@sourceError_1006_b
@sourceError_1007_b
メッセージ:
@sourceError_1007_b
@sourceError_1008_b
#More Information:
@sourceError_1008_b
@sourceError_1009_b
#Stack Trace:
@sourceError_1009_b
@sourceError_1010_b
#Source File:
@sourceError_1010_p
@sourceError_1011_p
#Raw file
@sourceError_1011_p
@sourceError_1012_p
#(fast; only Firefox)
@tutorial_1000_h1
......@@ -8313,302 +8418,305 @@ Webアプリケーション内からデータベースに接続するには様
データベースへのアクセス方法についての詳細は、DbStarter.javaコードをご覧下さい。
@tutorial_1100_p
#By default the DbStarter listener opens a connection using the database URL jdbc:h2:~/test and user name and password 'sa'. It can also start the TCP server, however this is disabled by default. To enable it, use the db.tcpServer parameter in web.xml. Here is the complete list of options. These options are set just after the display-name and description tag, but before any listener and filter tags:
#By default the DbStarter listener opens an embedded connection using the database URL jdbc:h2:~/test and user name and password 'sa'. It can also start the TCP server, however this is disabled by default. To enable it, use the db.tcpServer parameter in web.xml. Here is the complete list of options. These options are set just after the display-name and description tag, but before any listener and filter tags:
@tutorial_1101_p
#When the web application is stopped, the database connection will be closed automatically. If the server is started within the DbStarter, it will also be stopped automatically when the web application is stopped.
@tutorial_1101_h2
@tutorial_1102_h2
CSV (Comma Separated Values) サポート
@tutorial_1102_p
@tutorial_1103_p
データベースにCSVREADとCSVWRITEの関数を使用することで、 CSVファイルサポートを使用することができ、スタンドアロンツールとしてデータベースの外でCSVライブラリを使用することができます。
@tutorial_1103_h3
@tutorial_1104_h3
データベース内からCSVファイルに書き込む
@tutorial_1104_p
@tutorial_1105_p
クエリからCSVファイルを作成するのに、組込み関数 CSVWRITEを使用することができます。例:
@tutorial_1105_h3
@tutorial_1106_h3
データベース内からCSVファイルを読み込む
@tutorial_1106_p
@tutorial_1107_p
CSVREAD関数を使用してCSVファイルを読み込むことができます。 例:
@tutorial_1107_h3
@tutorial_1108_h3
JavaアプリケーションからCSVファイルに書き込む
@tutorial_1108_p
@tutorial_1109_p
データベースを全く使用しなくても、JavaアプリケーションでCSVツールを使用することができます。 例:
@tutorial_1109_h3
@tutorial_1110_h3
JavaアプリケーションからCSVファイルを読み込む
@tutorial_1110_p
@tutorial_1111_p
データベースを開かなくてもCSVファイルを読み込むことができます。 例:
@tutorial_1111_h2
@tutorial_1112_h2
アップグレード、 バックアップ、修復
@tutorial_1112_h3
@tutorial_1113_h3
データベースのアップグレー
@tutorial_1113_p
@tutorial_1114_p
あるバージョンのデータベースエンジンを次のバージョンにアップグレードする際の推奨する方法は、 古いエンジンを使って(SQLスクリプトのフォームでの)データベースのバックアップを作成し、新しいエンジンを使ってSQLスクリプトを実行します。
@tutorial_1114_h3
@tutorial_1115_h3
バックアップ
@tutorial_1115_p
@tutorial_1116_p
異なった方法のデータベースのバックアップがあります。例えば、データベースファイルをコピーすることが可能です。しかしながら、この方法はデータベースが使用されている間は推奨しません。データベースは人が判読しやすく、極めて大きいというわけではありません。データベースバックアップの推奨する方法は、圧縮したSQLスクリプトを作成することです。この方法は、バックアップツールを使用することで可能です:
@tutorial_1116_p
@tutorial_1117_p
オプションについての情報は、SQLコマンドスクリプトをご覧下さい。バックアップは遠隔で行えますが、ファイルはサーバー側に作られます。サーバーからファイルを取るのに、ビルトインFTPサーバーを使用することができます。データベースのバックアップを作るのに、SQLコマンドスクリプトを 使用することもできます。
@tutorial_1117_h3
@tutorial_1118_h3
修復
@tutorial_1118_p
@tutorial_1119_p
SQLスクリプトファイルからデータベースを修復するには、RunScriptツールを使用する必要があります:
@tutorial_1119_p
@tutorial_1120_p
オプションについての情報は、SQLコマンド RUNSCRIPTをご覧下さい。修復は遠隔で行えますが、サーバー側にファイルが存在する必要があります。サーバーからファイルをコピーするのに、ビルトインFTPサーバーを使用することができます。SQLスクリプトを実行するために、 SQLコマンド RUNSCRIPTを使用することができます。SQLスクリプトファイルには、RUNSCRIPTコマンドのフォーム内に他のスクリプトファイルのリファレンスが含まれています。しかしながら、サーバーモードを使用している時、リファレンススクリプトファイルはサーバー側で利用可能であることが必要です。
@tutorial_1120_h3
@tutorial_1121_h3
オンラインバックアップ
@tutorial_1121_p
@tutorial_1122_p
BACKUP SQLステートメントとバックアップツールの両方が全てのデータベースファイルをzipファイル形式で作成します。しかし、このファイルのコンテンツは人間が解読可能なものではありません。SCRIPTステートメントを除いて、BACKUPステートメントはデータベースオブジェクトをロックしないため、他のユーザーをブロックしません。結果として、バックアップは一貫性のあるトランザクションです:
@tutorial_1122_p
@tutorial_1123_p
バックアップツール (org.h2.tools.Backup) はオンラインバックアップを作成するために利用されません; このプログラムが実行されている間、データベースは使用されてはいけません。
@tutorial_1123_h2
@tutorial_1124_h2
#Command Line Tools
@tutorial_1124_p
@tutorial_1125_p
#This database comes with a number of command line tools. To get more information about a tool, start it with the parameter '-?', for example:
@tutorial_1125_p
@tutorial_1126_p
#The command line tools are:
@tutorial_1126_b
@tutorial_1127_b
バックアップ
@tutorial_1127_li
@tutorial_1128_li
#creates a backup of a database.
@tutorial_1128_b
@tutorial_1129_b
#ChangeFileEncryption
@tutorial_1129_li
@tutorial_1130_li
#allows changing the file encryption password or algorithm of a database.
@tutorial_1130_b
@tutorial_1131_b
#Console
@tutorial_1131_li
@tutorial_1132_li
#starts the browser based H2 Console.
@tutorial_1132_b
@tutorial_1133_b
#ConvertTraceFile
@tutorial_1133_li
@tutorial_1134_li
#converts a .trace.db file to a Java application and SQL script.
@tutorial_1134_b
@tutorial_1135_b
#CreateCluster
@tutorial_1135_li
@tutorial_1136_li
#creates a cluster from a standalone database.
@tutorial_1136_b
@tutorial_1137_b
#DeleteDbFiles
@tutorial_1137_li
@tutorial_1138_li
#deletes all files belonging to a database.
@tutorial_1138_b
@tutorial_1139_b
#Script
@tutorial_1139_li
@tutorial_1140_li
#allows converting a database to a SQL script for backup or migration.
@tutorial_1140_b
@tutorial_1141_b
#Recover
@tutorial_1141_li
@tutorial_1142_li
#helps recovering a corrupted database.
@tutorial_1142_b
@tutorial_1143_b
#Restore
@tutorial_1143_li
@tutorial_1144_li
#restores a backup of a database.
@tutorial_1144_b
@tutorial_1145_b
#RunScript
@tutorial_1145_li
@tutorial_1146_li
#runs a SQL script against a database.
@tutorial_1146_b
@tutorial_1147_b
Server
@tutorial_1147_li
@tutorial_1148_li
#is used in the server mode to start a H2 server.
@tutorial_1148_b
@tutorial_1149_b
#Shell
@tutorial_1149_li
@tutorial_1150_li
#is a command line database tool.
@tutorial_1150_p
@tutorial_1151_p
#The tools can also be called from an application by calling the main or another public methods. For details, see the Javadoc documentation.
@tutorial_1151_h2
@tutorial_1152_h2
OpenOffice Baseを使用する
@tutorial_1152_p
@tutorial_1153_p
OpenOffice.org Base はJDBC API上のデータベースアクセスをサポートしています。 OpenOffice Baseを使ってH2データベースに接続するためには、最初にOpenOfficeにJDBCドライバを追加する必要があります。H2データベースに接続する手順:
@tutorial_1153_li
@tutorial_1154_li
#Start OpenOffice Writer, go to [Tools], [Options]
@tutorial_1154_li
@tutorial_1155_li
#Make sure you have selected a Java runtime environment in OpenOffice.org / Java
@tutorial_1155_li
@tutorial_1156_li
#Click [Class Path...], [Add Archive...]
@tutorial_1156_li
@tutorial_1157_li
#Select your h2.jar (location is up to you, could be wherever you choose)
@tutorial_1157_li
@tutorial_1158_li
#Click [OK] (as much as needed), stop OpenOffice (including the Quickstarter)
@tutorial_1158_li
@tutorial_1159_li
OpenOffice Base を起動する
@tutorial_1159_li
@tutorial_1160_li
存在するデータベースに接続し、JDBCを選択し、[Next] をクリックする
@tutorial_1160_li
@tutorial_1161_li
#Example datasource URL: jdbc:h2:~/test
@tutorial_1161_li
@tutorial_1162_li
JDBCドライバクラス: org.h2.Driver
@tutorial_1162_p
@tutorial_1163_p
#Now you can access the database stored in the current users home directory.
@tutorial_1163_p
@tutorial_1164_p
#To use H2 in NeoOffice (OpenOffice without X11):
@tutorial_1164_li
@tutorial_1165_li
#In NeoOffice, go to [NeoOffice], [Preferences]
@tutorial_1165_li
@tutorial_1166_li
#Look for the page under [NeoOffice], [Java]
@tutorial_1166_li
@tutorial_1167_li
#Click [Classpath], [Add Archive...]
@tutorial_1167_li
@tutorial_1168_li
#Select your h2.jar (location is up to you, could be wherever you choose)
@tutorial_1168_li
@tutorial_1169_li
#Click [OK] (as much as needed), restart NeoOffice.
@tutorial_1169_p
@tutorial_1170_p
#Now, when creating a new database using the "Database Wizard":
@tutorial_1170_li
@tutorial_1171_li
#Select "connect to existing database" and the type "jdbc". Click next.
@tutorial_1171_li
@tutorial_1172_li
#Enter your h2 database URL. The normal behavior of H2 is that a new db is created if it doesn't exist.
@tutorial_1172_li
@tutorial_1173_li
#Next step - up to you... you can just click finish and start working.
@tutorial_1173_p
@tutorial_1174_p
#Another solution to use H2 in NeoOffice is:
@tutorial_1174_li
@tutorial_1175_li
#Package the h2 jar within an extension package
@tutorial_1175_li
@tutorial_1176_li
#Install it as a Java extension in NeoOffice
@tutorial_1176_p
@tutorial_1177_p
#This can be done by create it using the NetBeans OpenOffice plugin. See also <a href="http://wiki.services.openoffice.org/wiki/Extensions_development_java">Extensions Development</a> .
@tutorial_1177_h2
@tutorial_1178_h2
Java Web Start / JNLP
@tutorial_1178_p
@tutorial_1179_p
Java Web Start / JNLP (Java Network Launch Protocol) を使用している時、パーミッションタグは.jnlp ファイルに設定され、application.jarファイルは署名されていなければなりません。そうでなければ、ファイルシステムに書き込もうとした時、次の例外が発生するでしょう: java.security.AccessControlException: access denied (java.io.FilePermission ... read) パーミッションタグの例:
@tutorial_1179_h2
@tutorial_1180_h2
#Using a Connection Pool
@tutorial_1180_p
@tutorial_1181_p
#For many databases, opening a connection is slow, and it is a good idea to use a connection pool to re-use connections. For H2 however opening a connection usually is fast if the database is already open. Using a connection pool for H2 actually slows down the process a bit, except if file encryption is used (in this case opening a connection is about half as fast as using a connection pool). A simple connection pool is included in H2. It is based on the <a href="http://www.source-code.biz/snippets/java/8.htm">Mini Connection Pool Manager</a> from Christian d'Heureuse. There are other, more complex connection pools available, for example <a href="http://jakarta.apache.org/commons/dbcp/">DBCP</a> . The build-in connection pool is used as follows:
@tutorial_1181_h2
@tutorial_1182_h2
フルテキストサーチ
@tutorial_1182_p
@tutorial_1183_p
H2はLuceneフルテキストサーチとnativeフルテキストサーチの実装をサポートしています。
@tutorial_1183_h3
@tutorial_1184_h3
Nativeフルテキストサーチを使用する
@tutorial_1184_p
@tutorial_1185_p
初期化するには、次を呼び出します:
@tutorial_1185_p
@tutorial_1186_p
#You need to initialize it in each database where you want to use it. Afterwards, you can create a full text index for a table using:
@tutorial_1186_p
@tutorial_1187_p
PUBLICはスキーマ、TESTはテーブル名です。カラム名のリスト (分離されたカラム) はオプションです。このケースでは、全てのカラムがインデックスです。インデックスはリードタイムに更新されます。インデックスを検索するには、次のクエリーを使用します:
@tutorial_1187_p
@tutorial_1188_p
Javaアプリケーション内からインデックスを呼び出すことも可能です:
@tutorial_1188_h3
@tutorial_1189_h3
Luceneフルテキストサーチを使用する
@tutorial_1189_p
@tutorial_1190_p
#To use the Lucene full text search, you need the Lucene library in the classpath. How his is done depends on the application; if you use the H2 Console, you can add the Lucene jar file to the environment variables H2DRIVERS or CLASSPATH. To initialize the Lucene full text search in a database, call:
@tutorial_1190_p
@tutorial_1191_p
#You need to initialize it in each database where you want to use it. Afterwards, you can create a full text index for a table using:
@tutorial_1191_p
@tutorial_1192_p
PUBLICはスキーマ、TESTはテーブル名です。カラム名のリスト (分離されたカラム) はオプションです。このケースでは、全てのカラムがインデックスです。インデックスはリードタイムに更新されます。インデックスを検索するには、次のクエリーを使用します:
@tutorial_1192_p
@tutorial_1193_p
Javaアプリケーション内からインデックスを呼び出すことも可能です:
@tutorial_1193_h2
@tutorial_1194_h2
#User-Defined Variables
@tutorial_1194_p
@tutorial_1195_p
#This database supports user-defined variables. Variables start with @ and can be used wherever expressions or parameters are used. Variables not persisted and session scoped, that means only visible for the session where they are defined. A value is usually assigned using the SET command:
@tutorial_1195_p
@tutorial_1196_p
#It is also possible to change a value using the SET() method. This is useful in queries:
@tutorial_1196_p
@tutorial_1197_p
#Variables that are not set evaluate to NULL. The data type of a user-defined variable is the data type of the value assigned to it, that means it is not necessary (or possible) to declare variable names before using them. There are no restrictions on the assigned values; large objects (LOBs) are supported as well.
@tutorial_1197_h2
@tutorial_1198_h2
#Date and Time
@tutorial_1198_p
@tutorial_1199_p
#Date, time and timestamp values support ISO 8601 formatting, including time zone:
@tutorial_1199_p
@tutorial_1200_p
#If the time zone is not set, the value is parsed using the current time zone setting of the system. Date and time information is stored in H2 database files in GMT (Greenwich Mean Time). If the database is opened using another system time zone, the date and time will change accordingly. If you want to move a database from one time zone to the other and don't want this to happen, you need to create a SQL script file using the SCRIPT command or Script tool, and then load the database using the RUNSCRIPT command or the RunScript tool in the new time zone.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -121,6 +121,18 @@ td.toolbar {
padding: 0px 0px;
}
table.nav {
border: 0px;
}
tr.nav {
border: 0px;
}
td.nav {
border: 0px;
}
table.login {
background-color: #ece9d8;
border:1px solid #aca899;
......
......@@ -6,6 +6,7 @@
*/
package org.h2.samples;
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
......@@ -43,6 +44,7 @@ public class Newsfeed {
if (file.endsWith(".txt")) {
content = convertHtml2Text(content);
}
new File(targetDir).mkdirs();
FileOutputStream out = new FileOutputStream(targetDir + "/" + file);
Writer writer = new OutputStreamWriter(out, "UTF-8");
writer.write(content);
......
......@@ -272,6 +272,10 @@ java org.h2.test.TestAll timer
/*
CREATE LINKED TABLE ... READONLY
CREATE FUNCTION? Function interface
main methods for the tests and make that work
Support large updates (use the transaction log to undo).
H2 Console: support single file upload and directory download (optional)
......
......@@ -141,6 +141,7 @@ public class GenerateDoc {
String link = topic.toLowerCase();
link = StringUtils.replaceAll(link, " ", "");
link = StringUtils.replaceAll(link, "_", "");
link = StringUtils.replaceAll(link, "@", "");
map.put("link", StringUtils.urlEncode(link));
list.add(map);
}
......
......@@ -64,16 +64,15 @@ public class MergeDocs {
// String start = "<body";
// String end = "</body>";
String start = "<div class=\"contentDiv\"";
String end = "</div></td></tr></table><!-- analytics --></body></html>";
String start = "<!-- } -->";
String end = "<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>";
int idx = text.indexOf(end);
if (idx < 0) {
throw new Error("Footer not found in file " + fileName);
}
text = text.substring(0, idx);
idx = text.indexOf(start);
idx = text.indexOf('>', idx);
idx = text.indexOf(start) + start.length();
text = text.substring(idx + 1);
return text;
}
......
......@@ -10,6 +10,7 @@ import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.HashMap;
import org.h2.samples.Newsfeed;
import org.h2.util.IOUtils;
......@@ -29,7 +30,8 @@ public class WebSite {
"<script type=\"text/javascript\">var pageTracker=_gat._getTracker(\"UA-2351060-1\");pageTracker._initData();pageTracker._trackPageview();</script>";
private String sourceDir = "docs";
private String targetDir = "../h2web";
private String webDir = "../h2web";
private HashMap fragments = new HashMap();
/**
* This method is called when executing this application from the command
......@@ -42,9 +44,64 @@ public class WebSite {
}
private void run() throws Exception {
deleteRecursive(new File(targetDir));
copy(new File(sourceDir), new File(targetDir));
Newsfeed.main(new String[] {targetDir + "/html"});
// create the web site
deleteRecursive(new File(webDir));
loadFragments();
copy(new File(sourceDir), new File(webDir), true, true);
Newsfeed.main(new String[] {webDir + "/html"});
// create the internal documentation
copy(new File(sourceDir), new File(sourceDir), true, false);
}
private void loadFragments() throws IOException {
File dir = new File(sourceDir, "html");
File[] list = dir.listFiles();
for (int i = 0; i < list.length; i++) {
File f = list[i];
if (f.getName().startsWith("fragments")) {
FileInputStream in = new FileInputStream(f);
byte[] bytes = IOUtils.readBytesAndClose(in, 0);
String page = new String(bytes, "UTF-8");
fragments.put(f.getName(), page);
}
}
}
private String replaceFragments(String fileName, String page) {
if (fragments.size() == 0) {
return page;
}
String language = "";
int index = fileName.indexOf("_");
if (index >= 0) {
int end = fileName.indexOf('.');
language = fileName.substring(index, end);
}
String fragment = (String) fragments.get("fragments" + language + ".html");
int start = 0;
while (true) {
start = fragment.indexOf("<!-- [", start);
if (start < 0) {
break;
}
int endTag = fragment.indexOf("] { -->", start);
int endBlock = fragment.indexOf("<!-- } -->", start);
String tag = fragment.substring(start, endTag);
String replacement = fragment.substring(start, endBlock);
int pageStart = 0;
while (true) {
pageStart = page.indexOf(tag, pageStart);
if (pageStart < 0) {
break;
}
int pageEnd = page.indexOf("<!-- } -->", pageStart);
page = page.substring(0, pageStart) + replacement + page.substring(pageEnd);
pageStart += replacement.length();
}
start = endBlock;
}
return page;
}
private void deleteRecursive(File dir) {
......@@ -57,32 +114,50 @@ public class WebSite {
dir.delete();
}
private void copy(File source, File target) throws IOException {
private void copy(File source, File target, boolean replaceFragments, boolean web) throws IOException {
if (source.isDirectory()) {
target.mkdirs();
File[] list = source.listFiles();
for (int i = 0; i < list.length; i++) {
copy(list[i], new File(target, list[i].getName()));
copy(list[i], new File(target, list[i].getName()), replaceFragments, web);
}
} else {
String name = source.getName();
if (name.endsWith("main.html") || name.endsWith("main_ja.html") || name.endsWith("onePage.html")) {
if (name.endsWith("onePage.html") || name.startsWith("fragments")) {
return;
}
if (web) {
if (name.endsWith("main.html") || name.endsWith("main_ja.html")) {
return;
}
} else {
if (name.endsWith("mainWeb.html") || name.endsWith("mainWeb_ja.html")) {
return;
}
}
FileInputStream in = new FileInputStream(source);
byte[] bytes = IOUtils.readBytesAndClose(in, 0);
if (name.endsWith(".html")) {
String page = new String(bytes, "UTF-8");
page = StringUtils.replaceAll(page, ANALYTICS_TAG, ANALYTICS_SCRIPT);
if (web) {
page = StringUtils.replaceAll(page, ANALYTICS_TAG, ANALYTICS_SCRIPT);
}
if (replaceFragments) {
page = replaceFragments(name, page);
page = StringUtils.replaceAll(page, "<a href=\"frame", "<a href=\"main");
page = StringUtils.replaceAll(page, "html/frame.html", "html/main.html");
}
bytes = page.getBytes("UTF-8");
}
FileOutputStream out = new FileOutputStream(target);
out.write(bytes);
out.close();
if (name.endsWith("mainWeb.html")) {
target.renameTo(new File(target.getParentFile(), "main.html"));
} else if (name.endsWith("mainWeb_ja.html")) {
target.renameTo(new File(target.getParentFile(), "main_ja.html"));
if (web) {
if (name.endsWith("mainWeb.html")) {
target.renameTo(new File(target.getParentFile(), "main.html"));
} else if (name.endsWith("mainWeb_ja.html")) {
target.renameTo(new File(target.getParentFile(), "main_ja.html"));
}
}
}
}
......
......@@ -557,4 +557,6 @@ nullsoft annotation cover scriptable guidelines consider batis coding
anlytc art orafusion ery ideas jequel indices quaere dsl accumulated vary
causing nopack water onto resolve ontoprise treatment sparql rdfs piman zen
owl rdf recommendations axiom fabric broker osoa epictetus replacements
brittain wasn november unixtime ddd jason formatter
brittain wasn november unixtime ddd jason formatter psqlodbc onmousemove
monitoring razuna asset drag pekar devx dmitry fragments onmouseup nav
onmousedown olap
......@@ -61,6 +61,7 @@ public class Indexer {
}
File file = new File(dir);
setNoIndex(new String[] { "index.html", "html/header.html", "html/search.html", "html/frame.html",
"html/sourceError.html", "html/source.html", "html/mainWeb.html",
"javadoc/index.html", "javadoc/classes.html", "javadoc/allclasses-frame.html",
"javadoc/allclasses-noframe.html", "javadoc/constant-values.html", "javadoc/overview-frame.html",
"javadoc/overview-summary.html", "javadoc/serialized-form.html" });
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论