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

--no commit message

--no commit message
上级 19210759
...@@ -16,6 +16,10 @@ Change Log ...@@ -16,6 +16,10 @@ Change Log
<h1>Change Log</h1> <h1>Change Log</h1>
<h2>Next Version (unreleased)</h2> <h2>Next Version (unreleased)</h2>
<ul><li>-
</li></ul>
<h2>Version 1.0.77 (2008-08-16)</h2>
<ul><li>JaQu is now using prepared statements and supports Date, Time, Timestamp. <ul><li>JaQu is now using prepared statements and supports Date, Time, Timestamp.
</li><li>When using remote in-memory databases, large LOB objects did not work. </li><li>When using remote in-memory databases, large LOB objects did not work.
</li><li>Timestamp columns such as TIMESTAMP(6) were not compatible to other database. </li><li>Timestamp columns such as TIMESTAMP(6) were not compatible to other database.
...@@ -28,9 +32,9 @@ Change Log ...@@ -28,9 +32,9 @@ Change Log
</li><li>Oracle compatibility: old style outer join syntax using (+) did work correctly sometimes. </li><li>Oracle compatibility: old style outer join syntax using (+) did work correctly sometimes.
</li><li>ResultSet.setFetchSize is now supported. </li><li>ResultSet.setFetchSize is now supported.
</li><li>It has been reported that when using Install4j on some Linux systems and enabling the 'pack200' option, </li><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. 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. 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. The reason for this problem is not known.
</li></ul> </li></ul>
<h2>Version 1.0.76 (2008-07-27)</h2> <h2>Version 1.0.76 (2008-07-27)</h2>
......
...@@ -48,9 +48,9 @@ Here is the list of known and confirmed issues: ...@@ -48,9 +48,9 @@ Here is the list of known and confirmed issues:
<li>Some problems have been found with right outer join. Internally, it is converted to left outer join, which <li>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. does not always produce the same results as other databases when used in combination with other joins.
</li><li>It has been reported that when using Install4j on some Linux systems and enabling the 'pack200' option, </li><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. 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. 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. The reason for this problem is not known.
</li></ul> </li></ul>
<br /><a name="open_source"></a> <br /><a name="open_source"></a>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -80,22 +80,22 @@ public class Constants { ...@@ -80,22 +80,22 @@ public class Constants {
/** /**
* The build id is incremented for each public release. * The build id is incremented for each public release.
*/ */
public static final int BUILD_ID = 76; public static final int BUILD_ID = 77;
/** /**
* The build id of the previous release. * The build id of the previous release.
*/ */
public static final int BUILD_ID_PREVIOUS = 75; public static final int BUILD_ID_PREVIOUS = 76;
/** /**
* The build date is updated for each public release. * The build date is updated for each public release.
*/ */
public static final String BUILD_DATE = "2008-07-28"; public static final String BUILD_DATE = "2008-08-16";
/** /**
* The build date is updated for each public release. * The build date is updated for each public release.
*/ */
public static final String BUILD_DATE_PREVIOUS = "2008-07-14"; public static final String BUILD_DATE_PREVIOUS = "2008-07-28";
/** /**
* The TCP protocol version number 5. This protocol is used by the TCP * The TCP protocol version number 5. This protocol is used by the TCP
......
...@@ -12,7 +12,38 @@ INSERT INTO CHANNEL VALUES('H2 Database Engine' , ...@@ -12,7 +12,38 @@ INSERT INTO CHANNEL VALUES('H2 Database Engine' ,
'http://www.h2database.com', 'H2 Database Engine', 'en-us', NOW(), NOW(), 'Thomas Mueller'); 'http://www.h2database.com', 'H2 Database Engine', 'en-us', NOW(), NOW(), 'Thomas Mueller');
CREATE TABLE ITEM(ID INT PRIMARY KEY, TITLE VARCHAR, ISSUED TIMESTAMP, DESC VARCHAR); CREATE TABLE ITEM(ID INT PRIMARY KEY, TITLE VARCHAR, ISSUED TIMESTAMP, DESC VARCHAR);
INSERT INTO ITEM VALUES(47,
'New version available: 1.0.77 (2008-08-16)', '2008-08-16 12:00:00',
$$A new version of H2 is available for <a href="http://www.h2database.com">download</a>.
(You may have to click 'Refresh').
<br />
<b>Changes and new functionality:</b>
<ul><li>JaQu is now using prepared statements and supports Date, Time, Timestamp.
</li><li>Support a comma before closing a list, as in: create table test(id int,)
</li><li>DB2 compatibility: the DB2 fetch-first-clause is supported.
</li><li>ResultSet.setFetchSize is now supported.
</li></ul>
<b>Bugfixes:</b>
<ul><li>When using remote in-memory databases, large LOB objects did not work.
</li><li>Timestamp columns such as TIMESTAMP(6) were not compatible to other database.
</li><li>Opening a large database was slow if there was a problem opening the previous time.
</li><li>Oracle compatibility: old style outer join syntax using (+) did work correctly sometimes.
</li><li>MySQL compatibility: linked tables had lower case column names on some systems.
</li><li>NOT IN(SELECT ...) was incorrect if the subquery returns no rows.
</li><li>CREATE TABLE AS SELECT did not work correctly in the multi-version concurrency mode.
</li><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.
</li></ul>
For details, see the 'Change Log' at
http://www.h2database.com/html/changelog.html
<br />
For future plans, see the 'Roadmap' page at
http://www.h2database.com/html/roadmap.html
$$);
INSERT INTO ITEM VALUES(46, INSERT INTO ITEM VALUES(46,
'New version available: 1.0.76 (2008-07-27)', '2008-07-27 12:00:00', 'New version available: 1.0.76 (2008-07-27)', '2008-07-27 12:00:00',
$$A new version of H2 is available for <a href="http://www.h2database.com">download</a>. $$A new version of H2 is available for <a href="http://www.h2database.com">download</a>.
...@@ -23,7 +54,7 @@ $$A new version of H2 is available for <a href="http://www.h2database.com">downl ...@@ -23,7 +54,7 @@ $$A new version of H2 is available for <a href="http://www.h2database.com">downl
</li><li>Changes in updatable result sets are now always visible. </li><li>Changes in updatable result sets are now always visible.
</li><li>There is a problem with Hibernate when using Boolean columns, see </li><li>There is a problem with Hibernate when using Boolean columns, see
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3401 http://opensource.atlassian.com/projects/hibernate/browse/HHH-3401
<ul><li>The comment of a domain (user defined data type) is now used. </li><li>The comment of a domain (user defined data type) is now used.
</li></ul> </li></ul>
<b>Bugfixes:</b> <b>Bugfixes:</b>
<ul><li>ResultSetMetaData.getColumnClassName now returns the correct <ul><li>ResultSetMetaData.getColumnClassName now returns the correct
......
...@@ -34,7 +34,7 @@ public class ComplexObject implements Table { ...@@ -34,7 +34,7 @@ public class ComplexObject implements Table {
static ComplexObject build(Integer id, boolean isNull) { static ComplexObject build(Integer id, boolean isNull) {
ComplexObject obj = new ComplexObject(); ComplexObject obj = new ComplexObject();
obj.id = id; obj.id = id;
obj.amount = isNull ? null : new Long(1); obj.amount = isNull ? null : Long.valueOf(1);
obj.name = isNull ? null : "hello"; obj.name = isNull ? null : "hello";
obj.value = isNull ? null : new BigDecimal("1"); obj.value = isNull ? null : new BigDecimal("1");
obj.birthday = isNull ? null : java.sql.Date.valueOf("2001-01-01"); obj.birthday = isNull ? null : java.sql.Date.valueOf("2001-01-01");
......
/*
* 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
*/
-- update all rows in all tables -- update all rows in all tables
select 'update ' || table_schema || '.' || table_name || ' set ' || column_name || '=' || column_name || ';' select 'update ' || table_schema || '.' || table_name || ' set ' || column_name || '=' || column_name || ';'
from information_schema.columns where ORDINAL_POSITION = 1 and table_schema <> 'INFORMATION_SCHEMA'; from information_schema.columns where ORDINAL_POSITION = 1 and table_schema <> 'INFORMATION_SCHEMA';
...@@ -554,4 +554,5 @@ widows msgbox designer styles families uno soffice orphans stan ucb rem ...@@ -554,4 +554,5 @@ widows msgbox designer styles families uno soffice orphans stan ucb rem
pdfurl upate pagebreak ren echo atlassian buggy submitted xcopy invention pdfurl upate pagebreak ren echo atlassian buggy submitted xcopy invention
harbor generics pojo annotations ecl subclipse jmx bean plugins team cha emma harbor generics pojo annotations ecl subclipse jmx bean plugins team cha emma
nullsoft annotation cover scriptable guidelines consider batis coding nullsoft annotation cover scriptable guidelines consider batis coding
anlytc art orafusion ery ideas jequel indices quaere dsl accumulated vary anlytc art orafusion ery ideas jequel indices quaere dsl accumulated vary
causing nopack
...@@ -13,12 +13,10 @@ package org.h2.jaqu; ...@@ -13,12 +13,10 @@ package org.h2.jaqu;
*/ */
//## Java 1.5 begin ## //## Java 1.5 begin ##
class Condition<A> implements Token { class Condition<A> implements Token {
Query< ? > query;
CompareType compareType; CompareType compareType;
A x, y; A x, y;
Condition(Query< ? > query, A x, A y, CompareType compareType) { Condition(A x, A y, CompareType compareType) {
this.query = query;
this.compareType = compareType; this.compareType = compareType;
this.x = x; this.x = x;
this.y = y; this.y = y;
......
...@@ -25,37 +25,37 @@ public class QueryCondition<T, A> { ...@@ -25,37 +25,37 @@ public class QueryCondition<T, A> {
public QueryWhere<T> is(A y) { public QueryWhere<T> is(A y) {
query.addConditionToken( query.addConditionToken(
new Condition<A>(query, x, y, CompareType.EQUAL)); new Condition<A>(x, y, CompareType.EQUAL));
return new QueryWhere<T>(query); return new QueryWhere<T>(query);
} }
public QueryWhere<T> bigger(A y) { public QueryWhere<T> bigger(A y) {
query.addConditionToken( query.addConditionToken(
new Condition<A>(query, x, y, CompareType.BIGGER)); new Condition<A>(x, y, CompareType.BIGGER));
return new QueryWhere<T>(query); return new QueryWhere<T>(query);
} }
public QueryWhere<T> biggerEqual(A y) { public QueryWhere<T> biggerEqual(A y) {
query.addConditionToken( query.addConditionToken(
new Condition<A>(query, x, y, CompareType.BIGGER_EQUAL)); new Condition<A>(x, y, CompareType.BIGGER_EQUAL));
return new QueryWhere<T>(query); return new QueryWhere<T>(query);
} }
public QueryWhere<T> smaller(A y) { public QueryWhere<T> smaller(A y) {
query.addConditionToken( query.addConditionToken(
new Condition<A>(query, x, y, CompareType.SMALLER)); new Condition<A>(x, y, CompareType.SMALLER));
return new QueryWhere<T>(query); return new QueryWhere<T>(query);
} }
public QueryWhere<T> smallerEqual(A y) { public QueryWhere<T> smallerEqual(A y) {
query.addConditionToken( query.addConditionToken(
new Condition<A>(query, x, y, CompareType.SMALLER_EQUAL)); new Condition<A>(x, y, CompareType.SMALLER_EQUAL));
return new QueryWhere<T>(query); return new QueryWhere<T>(query);
} }
public QueryWhere<T> like(A pattern) { public QueryWhere<T> like(A pattern) {
query.addConditionToken( query.addConditionToken(
new Condition<A>(query, x, pattern, CompareType.LIKE)); new Condition<A>(x, pattern, CompareType.LIKE));
return new QueryWhere<T>(query); return new QueryWhere<T>(query);
} }
......
...@@ -25,7 +25,7 @@ public class QueryJoinCondition<A> { ...@@ -25,7 +25,7 @@ public class QueryJoinCondition<A> {
} }
public Query< ? > is(A y) { public Query< ? > is(A y) {
join.addConditionToken(new Condition<A>(query, x, y, CompareType.EQUAL)); join.addConditionToken(new Condition<A>(x, y, CompareType.EQUAL));
return query; return query;
} }
} }
......
...@@ -129,7 +129,7 @@ public class Utils { ...@@ -129,7 +129,7 @@ public class Utils {
return null; return null;
} }
Class currentType = o.getClass(); Class currentType = o.getClass();
if (currentType == currentType) { if (currentType == targetType) {
return o; return o;
} }
if (targetType == String.class) { if (targetType == String.class) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论