提交 80154b50 authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 37b497e2
#Sat Jun 16 21:45:09 CEST 2007
javac=javac
benchmark.drivers.dir=D\:/data/java
version.name.maven=1.0.20070617
version.name.maven=1.0.20070712
path.servlet.jar=C\:/data/classpath/servlet-api.jar
jdk=1.4
......@@ -11,10 +11,10 @@ H2 Database Engine
<h1>Downloads</h1>
<h3>Version 1.0 / 2007-06-17 (Current)</h3>
<h3>Version 1.0 / 2007-07-12 (Current)</h3>
<p>
<a href="http://www.h2database.com/h2-setup-2007-06-17.exe">Windows Installer (2.9 MB)</a><br />
<a href="http://www.h2database.com/h2-2007-06-17.zip">Platform-Independent Zip (3.8 MB)</a><br />
<a href="http://www.h2database.com/h2-setup-2007-07-12.exe">Windows Installer (2.9 MB)</a><br />
<a href="http://www.h2database.com/h2-2007-07-12.zip">Platform-Independent Zip (3.8 MB)</a><br />
</p>
<h3>Version 1.0 / 2007-03-04 (Last Stable)</h3>
......
......@@ -36,7 +36,7 @@ Frequently Asked Questions
<p>
Usually, bugs get fixes as they are found. There is a release every few weeks.
Here is the list of known and confirmed issues as of
2007-06-17:
2007-07-12:
</p>
<ul>
<li>Can not build using the test cases ant with JDK 1.3 at the moment. However most things are fixed.
......
......@@ -36,9 +36,9 @@ Hypersonic SQL or HSQLDB. H2 is built from scratch.
<h3>Version 1.0 (Current)</h3>
<h3>Version 1.0 / TODO (Build TODO)</h3><ul>
<h3>Version 1.0 / 2007-07-12 (Build 55)</h3><ul>
<li>Support for the system property baseDir. This works for embedded databases as well. The setting is supported
by the H2 Console using -Dh2.baseDir or -baseDir
by the H2 Console using -Dh2.baseDir or -baseDir
</li><li>LIKE ESCAPE did not work correctly if the pattern was % or _, followed by an escape character, followed by %. Fixed.
</li><li>PostgreSQL compatibility: SET SEARCH_PATH, SERIAL, CURRENT_USER, E'text', $1.
</li><li>In some situations, when many tables with LOB columns were modified (ALTER TABLE), large objects were deleted. Fixed.
......
......@@ -30,17 +30,17 @@ Welcome to H2, the free SQL database. The main feature of H2 are:
<table style="border: 0px; margin: 5px; background-color: #eee;">
<tr><td style="border: 0px; background-color: #eee;" colspan="2">
<h3>Download</h3>
Version 1.0 / 2007-06-17:
Version 1.0 / 2007-07-12:
</td></tr>
<tr><td style="border: 0px; background-color: #eee;">
<a href="http://www.h2database.com/h2-setup-2007-06-17.exe"><img border="1" src="images/download.png" alt="download" /></a>
<a href="http://www.h2database.com/h2-setup-2007-07-12.exe"><img border="1" src="images/download.png" alt="download" /></a>
</td><td style="vertical-align: middle; border: 0px; background-color: #eee;">
<a href="http://www.h2database.com/h2-setup-2007-06-17.exe">Windows Installer (2.9 MB)</a>
<a href="http://www.h2database.com/h2-setup-2007-07-12.exe">Windows Installer (2.9 MB)</a>
</td></tr>
<tr><td style="border: 0px; background-color: #eee;">
<a href="http://www.h2database.com/h2-2007-06-17.zip"><img border="1" src="images/download.png" alt="download" /></a>
<a href="http://www.h2database.com/h2-2007-07-12.zip"><img border="1" src="images/download.png" alt="download" /></a>
</td><td style="vertical-align: middle; border: 0px; background-color: #eee;">
<a href="http://www.h2database.com/h2-2007-06-17.zip">Platform-Independent Zip (3.8 MB)</a>
<a href="http://www.h2database.com/h2-2007-07-12.zip">Platform-Independent Zip (3.8 MB)</a>
</td></tr>
<tr><td style="border: 0px; background-color: #eee;" colspan="2">
<a href="download.html">All Downloads</a>
......
......@@ -259,20 +259,20 @@ public class AlterTableAlterColumn extends SchemaCommand {
}
*/
StringBuffer buff = new StringBuffer();
buff.append("INSERT INTO ");
buff.append(newTable.getSQL());
buff.append("(");
buff.append(columnList);
buff.append(") SELECT ");
if (columnList.length() == 0) {
// special case insert into test select * from test
buff.append("*");
} else {
buff.append(columnList);
}
buff.append(" FROM ");
buff.append(table.getSQL());
String sql = buff.toString();
buff.append("INSERT INTO ");
buff.append(newTable.getSQL());
buff.append("(");
buff.append(columnList);
buff.append(") SELECT ");
if (columnList.length() == 0) {
// special case insert into test select * from test
buff.append("*");
} else {
buff.append(columnList);
}
buff.append(" FROM ");
buff.append(table.getSQL());
String sql = buff.toString();
newTable.setCheckForeignKeyConstraints(false);
try {
execute(sql);
......
......@@ -69,7 +69,7 @@ import org.h2.message.TraceSystem;
*/
public class Constants {
public static final int BUILD_ID = 54;
public static final int BUILD_ID = 55;
private static final String BUILD = "2007-07-12";
public static final int VERSION_MAJOR = 1;
public static final int VERSION_MINOR = 0;
......
......@@ -21,7 +21,7 @@ import org.h2.value.ValueNull;
* @author Thomas
*/
public class Comparison extends Condition {
public static final int EQUAL = 0, BIGGER_EQUAL = 1, BIGGER = 2, SMALLER_EQUAL = 3,
SMALLER = 4, NOT_EQUAL = 5, IS_NULL = 6, IS_NOT_NULL = 7;
......
......@@ -19,9 +19,9 @@ import org.h2.value.ValueNull;
* @author Thomas
*/
public class ConditionAndOr extends Condition {
// TODO optimization: we could extend (ID=1 AND ID=B) to (ID=1 AND ID=B AND B=1)
public static final int AND = 0, OR = 1;
private final int andOrType;
......
......@@ -23,7 +23,7 @@ import org.h2.value.ValueNull;
*/
public class ConditionIn extends Condition {
private final Database database;
private Expression left;
private final ObjectArray values;
......
......@@ -59,7 +59,7 @@ public class TcpServerThread implements Runnable {
String originalURL = transfer.readString();
String baseDir = server.getBaseDir();
if(baseDir == null) {
baseDir = Constants.BASE_DIR;
baseDir = Constants.BASE_DIR;
}
ConnectionInfo ci = new ConnectionInfo(db);
if(baseDir != null) {
......
......@@ -10,6 +10,47 @@ INSERT INTO CHANNEL VALUES('H2 Database Engine' ,
CREATE TABLE ITEM(ID INT PRIMARY KEY, TITLE VARCHAR, ISSUED TIMESTAMP, DESC VARCHAR);
INSERT INTO ITEM VALUES(25,
'New version available: 1.0 / 2007-07-12', '2007-07-12 12:00:00',
'A new version of H2 is available for <a href="http://www.h2database.com">download</a>.
<br />
<b>Changes and new functionality:</b>
<ul>
<li>The H2 Console can run as a standalone web application.
</li><li>The default database name is now jdbc:h2:~/test.
</li><li>The new view implementation is now enabled by default.
</li><li>The Polish translation is available. Thanks a lot to Tomek!
</li><li>Support for the system property baseDir.
</li><li>Improved PostgreSQL compatibility.
</li><li>New column ID in INFORMATION_SCHEMA tables.
</li><li>PreparedStatement.getMetaData is now implemented.
</li><li>New setting h2.allowBigDecimalExtensions.
</li><li>The SQL statement SET ASSERT has been deprecated.
</li><li>The trace level for JdbcDataSourceFactory is now ERROR.
</li><li>Referential integrity violation: Two SQL states are now used.
</li><li>DatabaseEventListener.exceptionThrown is changed.
</li><li>The catalog name can now be used in queries.
</li><li>The default result set type is now FETCH_FORWARD.
</li>
</ul>
<b>Bugfixes:</b>
<ul>
</li><li>Views did not work in some cases.
</li><li>LIKE ESCAPE did not work correctly in some cases.
</li><li>In some situations, large objects were deleted.
</li><li>CREATE TABLE AS SELECT .. UNION .. did not work.
</li><li>Sometimes temp files were not deleted.
</li><li>PooledConnection.getConnection is now faster.
</li><li>Deleting databases in the root directory now works.
</li><li>Windows service: the CLASSPATH was not included.
</li><li>For READ_COMMITTED, when the multi-threaded
kernel is enabled, read locks are now acquired but released
immediately after a query.
</ul>
For future plans, see the new ''Roadmap'' page on the web site.
</ul>
');
INSERT INTO ITEM VALUES(24,
'New version available: 1.0 / 2007-06-17', '2007-06-17 12:00:00',
'A new version of H2 is available for <a href="http://www.h2database.com">download</a>.
......@@ -615,47 +656,6 @@ The plans for version 1.0 are:
</li></ul>
');
INSERT INTO ITEM VALUES(8,
'New proposed license', '2006-08-25 12:00:00',
'A new proposed license is available at
<a href="http://www.h2database.com/html/proposed_license.html">h2database.com/html/proposed_license.html</a>.
This is still open for discussion at the <a href="http://www.h2database.com/ipowerb">license forum</a>.
');
INSERT INTO ITEM VALUES(7,
'New version available: 0.9 RC 1 / 2006-08-23', '2006-08-23 12:00:00',
'A new version of H2 is available for <a href="http://www.h2database.com">download</a>.
<br />
<b>Changes and new functionality:</b>
<ul>
<li>Date and time constants outside the valid range (February 31 and so on) are no longer accepted.
</li><li>Improvements in the autocomplete feature. Thanks a lot to James Devenish for his very valuable feedback and testing!
</li></ul>
<b>New Functionality (but currently disabled):</b>
These features are currently disabled. They will be enabled after release 1.0.
See the history for more details.
<li>Optimization for IN(value list) and IN(subquery).
</li><li>Very large transactions are now supported.
</li><li>Arithmetic overflows in can now be detected for integer types.
</li></ul>
<b>Bugfixes:</b>
<ul>
<li>Bugfix for an outer join problem (too many rows where returned for a combined inner join / outer join).
</li><li>Local temporary tables where not included in the meta data.
</li><li>Database opening: Sometimes opening a database was very slow because indexes were re-created.
</li><li>Referential integrity: Fixed a stack overflow problem when using cascade delete.
</li><li>LIKE: If collation was set (SET COLLATION ...), it was ignored when using LIKE.
</li></ul>
For details see also the history. Release 1.0 is planned for 2006-08-28.
There will be another release candidate (RC 2) before.
The plans for the next release (RC 2) are:
<ul>
<li>Change the license to MPL.
</li><li>Write more tests, bugfixes.
</li><li>For plans after release 1.0, see the new ''Roadmap'' page on the web site.
</li></ul>
');
SELECT 'newsfeed-rss.xml' FILE,
XMLSTARTDOC() ||
XMLNODE('rss', XMLATTR('version', '2.0'),
......
......@@ -94,6 +94,8 @@ java -Xmx512m -Xrunhprof:cpu=samples,depth=8 org.h2.tools.RunScript -url jdbc:h2
/*
check trace.db/ number of files, limit to 1000 or so
storages should be an int hash map
Test with newest Hibernate
......
......@@ -52,12 +52,12 @@ public class TestPattern extends TestBase {
int len = (int)(Math.random() * 4);
String s = "A%_\\";
for(int i=0; i<len; i++) {
char c = s.charAt((int)(Math.random()*s.length()));
if((c == '_' || c == '%') && Math.random() > 0.5) {
char c = s.charAt((int)(Math.random()*s.length()));
if((c == '_' || c == '%') && Math.random() > 0.5) {
buff.append('\\');
} else if(c=='\\') {
} else if(c=='\\') {
buff.append(c);
}
}
buff.append(c);
}
return buff.toString();
......@@ -70,7 +70,7 @@ public class TestPattern extends TestBase {
char c = pattern.charAt(i);
if (escape == c) {
if (i >= len) {
error("escape can't be last char");
error("escape can't be last char");
}
c = pattern.charAt(++i);
buff.append('\\');
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论