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

--no commit message

--no commit message
上级 19210759
......@@ -16,6 +16,10 @@ Change Log
<h1>Change Log</h1>
<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.
</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.
......
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 {
/**
* 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.
*/
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.
*/
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.
*/
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
......
......@@ -13,6 +13,37 @@ INSERT INTO CHANNEL VALUES('H2 Database Engine' ,
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,
'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>.
......@@ -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>There is a problem with Hibernate when using Boolean columns, see
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>
<b>Bugfixes:</b>
<ul><li>ResultSetMetaData.getColumnClassName now returns the correct
......
......@@ -34,7 +34,7 @@ public class ComplexObject implements Table {
static ComplexObject build(Integer id, boolean isNull) {
ComplexObject obj = new ComplexObject();
obj.id = id;
obj.amount = isNull ? null : new Long(1);
obj.amount = isNull ? null : Long.valueOf(1);
obj.name = isNull ? null : "hello";
obj.value = isNull ? null : new BigDecimal("1");
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
select 'update ' || table_schema || '.' || table_name || ' set ' || column_name || '=' || column_name || ';'
from information_schema.columns where ORDINAL_POSITION = 1 and table_schema <> 'INFORMATION_SCHEMA';
......@@ -555,3 +555,4 @@ pdfurl upate pagebreak ren echo atlassian buggy submitted xcopy invention
harbor generics pojo annotations ecl subclipse jmx bean plugins team cha emma
nullsoft annotation cover scriptable guidelines consider batis coding
anlytc art orafusion ery ideas jequel indices quaere dsl accumulated vary
causing nopack
......@@ -13,12 +13,10 @@ package org.h2.jaqu;
*/
//## Java 1.5 begin ##
class Condition<A> implements Token {
Query< ? > query;
CompareType compareType;
A x, y;
Condition(Query< ? > query, A x, A y, CompareType compareType) {
this.query = query;
Condition(A x, A y, CompareType compareType) {
this.compareType = compareType;
this.x = x;
this.y = y;
......
......@@ -25,37 +25,37 @@ public class QueryCondition<T, A> {
public QueryWhere<T> is(A y) {
query.addConditionToken(
new Condition<A>(query, x, y, CompareType.EQUAL));
new Condition<A>(x, y, CompareType.EQUAL));
return new QueryWhere<T>(query);
}
public QueryWhere<T> bigger(A y) {
query.addConditionToken(
new Condition<A>(query, x, y, CompareType.BIGGER));
new Condition<A>(x, y, CompareType.BIGGER));
return new QueryWhere<T>(query);
}
public QueryWhere<T> biggerEqual(A y) {
query.addConditionToken(
new Condition<A>(query, x, y, CompareType.BIGGER_EQUAL));
new Condition<A>(x, y, CompareType.BIGGER_EQUAL));
return new QueryWhere<T>(query);
}
public QueryWhere<T> smaller(A y) {
query.addConditionToken(
new Condition<A>(query, x, y, CompareType.SMALLER));
new Condition<A>(x, y, CompareType.SMALLER));
return new QueryWhere<T>(query);
}
public QueryWhere<T> smallerEqual(A y) {
query.addConditionToken(
new Condition<A>(query, x, y, CompareType.SMALLER_EQUAL));
new Condition<A>(x, y, CompareType.SMALLER_EQUAL));
return new QueryWhere<T>(query);
}
public QueryWhere<T> like(A pattern) {
query.addConditionToken(
new Condition<A>(query, x, pattern, CompareType.LIKE));
new Condition<A>(x, pattern, CompareType.LIKE));
return new QueryWhere<T>(query);
}
......
......@@ -25,7 +25,7 @@ public class QueryJoinCondition<A> {
}
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;
}
}
......
......@@ -129,7 +129,7 @@ public class Utils {
return null;
}
Class currentType = o.getClass();
if (currentType == currentType) {
if (currentType == targetType) {
return o;
}
if (targetType == String.class) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论