Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
2ce30790
提交
2ce30790
authored
7月 13, 2008
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
--no commit message
上级
10f6b2b4
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
30 个修改的文件
包含
1068 行增加
和
1020 行删除
+1068
-1020
_docs_en.utf8.txt
h2/src/docsrc/text/_docs_en.utf8.txt
+319
-316
_docs_ja.utf8.txt
h2/src/docsrc/text/_docs_ja.utf8.txt
+319
-316
_docs_en.properties
h2/src/docsrc/textbase/_docs_en.properties
+318
-317
Constants.java
h2/src/main/org/h2/engine/Constants.java
+4
-4
JdbcConnection.java
h2/src/main/org/h2/jdbc/JdbcConnection.java
+8
-0
Message.java
h2/src/main/org/h2/message/Message.java
+0
-1
Compact.java
h2/src/test/org/h2/samples/Compact.java
+2
-1
CsvSample.java
h2/src/test/org/h2/samples/CsvSample.java
+2
-1
FileFunctions.java
h2/src/test/org/h2/samples/FileFunctions.java
+2
-1
Function.java
h2/src/test/org/h2/samples/Function.java
+2
-1
FunctionMultiReturn.java
h2/src/test/org/h2/samples/FunctionMultiReturn.java
+2
-1
InitDatabaseFromJar.java
h2/src/test/org/h2/samples/InitDatabaseFromJar.java
+2
-1
MixedMode.java
h2/src/test/org/h2/samples/MixedMode.java
+2
-1
Newsfeed.java
h2/src/test/org/h2/samples/Newsfeed.java
+2
-1
SQLInjection.java
h2/src/test/org/h2/samples/SQLInjection.java
+2
-1
SecurePassword.java
h2/src/test/org/h2/samples/SecurePassword.java
+2
-1
ShowProgress.java
h2/src/test/org/h2/samples/ShowProgress.java
+2
-1
ShutdownServer.java
h2/src/test/org/h2/samples/ShutdownServer.java
+2
-1
TriggerSample.java
h2/src/test/org/h2/samples/TriggerSample.java
+2
-1
newsfeed.sql
h2/src/test/org/h2/samples/newsfeed.sql
+28
-26
SamplesTest.java
h2/src/test/org/h2/test/jaqu/SamplesTest.java
+10
-4
BuildBase.java
h2/src/tools/org/h2/build/BuildBase.java
+6
-5
dictionary.txt
h2/src/tools/org/h2/build/doc/dictionary.txt
+1
-1
Db.java
h2/src/tools/org/h2/jaqu/Db.java
+2
-1
Function.java
h2/src/tools/org/h2/jaqu/Function.java
+4
-4
OrderExpression.java
h2/src/tools/org/h2/jaqu/OrderExpression.java
+2
-1
Query.java
h2/src/tools/org/h2/jaqu/Query.java
+5
-3
QueryWhere.java
h2/src/tools/org/h2/jaqu/QueryWhere.java
+12
-6
TableDefinition.java
h2/src/tools/org/h2/jaqu/TableDefinition.java
+2
-1
Utils.java
h2/src/tools/org/h2/jaqu/util/Utils.java
+2
-1
没有找到文件。
h2/src/docsrc/text/_docs_en.utf8.txt
浏览文件 @
2ce30790
差异被折叠。
点击展开。
h2/src/docsrc/text/_docs_ja.utf8.txt
浏览文件 @
2ce30790
差异被折叠。
点击展开。
h2/src/docsrc/textbase/_docs_en.properties
浏览文件 @
2ce30790
差异被折叠。
点击展开。
h2/src/main/org/h2/engine/Constants.java
浏览文件 @
2ce30790
...
...
@@ -73,22 +73,22 @@ public class Constants {
/**
* The build id is incremented for each public release.
*/
public
static
final
int
BUILD_ID
=
7
4
;
public
static
final
int
BUILD_ID
=
7
5
;
/**
* The build id of the previous release.
*/
public
static
final
int
BUILD_ID_PREVIOUS
=
7
3
;
public
static
final
int
BUILD_ID_PREVIOUS
=
7
4
;
/**
* The build date is updated for each public release.
*/
public
static
final
String
BUILD_DATE
=
"2008-0
6-21
"
;
public
static
final
String
BUILD_DATE
=
"2008-0
7-14
"
;
/**
* The build date is updated for each public release.
*/
public
static
final
String
BUILD_DATE_PREVIOUS
=
"2008-0
5-3
1"
;
public
static
final
String
BUILD_DATE_PREVIOUS
=
"2008-0
6-2
1"
;
/**
* The TCP protocol version number 5. This protocol is used by the TCP
...
...
h2/src/main/org/h2/jdbc/JdbcConnection.java
浏览文件 @
2ce30790
...
...
@@ -1482,6 +1482,14 @@ public class JdbcConnection extends TraceObject implements Connection {
}
//## Java 1.6 end ##
/**
* Create a clob value from this reader.
*
* @param x the reader
* @param length the length (if smaller or equal to 0, all data until the
* end of file is read)
* @return the value
*/
Value
createClob
(
Reader
x
,
long
length
)
throws
SQLException
{
if
(
x
==
null
)
{
return
ValueNull
.
INSTANCE
;
...
...
h2/src/main/org/h2/message/Message.java
浏览文件 @
2ce30790
...
...
@@ -236,7 +236,6 @@ public class Message {
* Convert an exception to a SQL exception using the default mapping.
*
* @param e the root cause
* @param sql the SQL statement or null if it is not known
* @return the SQL exception object
*/
public
static
SQLException
convert
(
Throwable
e
)
{
...
...
h2/src/test/org/h2/samples/Compact.java
浏览文件 @
2ce30790
...
...
@@ -23,7 +23,8 @@ import org.h2.tools.RunScript;
public
class
Compact
{
/**
* This method is called when executing this sample application.
* This method is called when executing this sample application from the
* command line.
*
* @param args the command line parameters
*/
...
...
h2/src/test/org/h2/samples/CsvSample.java
浏览文件 @
2ce30790
...
...
@@ -23,7 +23,8 @@ import org.h2.tools.SimpleResultSet;
public
class
CsvSample
{
/**
* This method is called when executing this sample application.
* This method is called when executing this sample application from the
* command line.
*
* @param args the command line parameters
*/
...
...
h2/src/test/org/h2/samples/FileFunctions.java
浏览文件 @
2ce30790
...
...
@@ -20,7 +20,8 @@ import java.sql.Statement;
public
class
FileFunctions
{
/**
* This method is called when executing this sample application.
* This method is called when executing this sample application from the
* command line.
*
* @param args the command line parameters
*/
...
...
h2/src/test/org/h2/samples/Function.java
浏览文件 @
2ce30790
...
...
@@ -23,7 +23,8 @@ import org.h2.tools.SimpleResultSet;
public
class
Function
{
/**
* This method is called when executing this sample application.
* This method is called when executing this sample application from the
* command line.
*
* @param args the command line parameters
*/
...
...
h2/src/test/org/h2/samples/FunctionMultiReturn.java
浏览文件 @
2ce30790
...
...
@@ -25,7 +25,8 @@ import org.h2.tools.SimpleResultSet;
public
class
FunctionMultiReturn
{
/**
* This method is called when executing this sample application.
* This method is called when executing this sample application from the
* command line.
*
* @param args the command line parameters
*/
...
...
h2/src/test/org/h2/samples/InitDatabaseFromJar.java
浏览文件 @
2ce30790
...
...
@@ -22,7 +22,8 @@ import org.h2.tools.RunScript;
public
class
InitDatabaseFromJar
{
/**
* This method is called when executing this sample application.
* This method is called when executing this sample application from the
* command line.
*
* @param args the command line parameters
*/
...
...
h2/src/test/org/h2/samples/MixedMode.java
浏览文件 @
2ce30790
...
...
@@ -20,7 +20,8 @@ import org.h2.tools.Server;
public
class
MixedMode
{
/**
* This method is called when executing this sample application.
* This method is called when executing this sample application from the
* command line.
*
* @param args the command line parameters
*/
...
...
h2/src/test/org/h2/samples/Newsfeed.java
浏览文件 @
2ce30790
...
...
@@ -26,7 +26,8 @@ import org.h2.util.StringUtils;
public
class
Newsfeed
{
/**
* This method is called when executing this sample application.
* This method is called when executing this sample application from the
* command line.
*
* @param args the command line parameters
*/
...
...
h2/src/test/org/h2/samples/SQLInjection.java
浏览文件 @
2ce30790
...
...
@@ -27,7 +27,8 @@ public class SQLInjection {
private
Statement
stat
;
/**
* This method is called when executing this sample application.
* This method is called when executing this sample application from the
* command line.
*
* @param args the command line parameters
*/
...
...
h2/src/test/org/h2/samples/SecurePassword.java
浏览文件 @
2ce30790
...
...
@@ -20,7 +20,8 @@ import java.util.Properties;
public
class
SecurePassword
{
/**
* This method is called when executing this sample application.
* This method is called when executing this sample application from the
* command line.
*
* @param args the command line parameters
*/
...
...
h2/src/test/org/h2/samples/ShowProgress.java
浏览文件 @
2ce30790
...
...
@@ -32,7 +32,8 @@ public class ShowProgress implements DatabaseEventListener {
}
/**
* This method is called when executing this sample application.
* This method is called when executing this sample application from the
* command line.
*
* @param args the command line parameters
*/
...
...
h2/src/test/org/h2/samples/ShutdownServer.java
浏览文件 @
2ce30790
...
...
@@ -13,7 +13,8 @@ package org.h2.samples;
public
class
ShutdownServer
{
/**
* This method is called when executing this sample application.
* This method is called when executing this sample application from the
* command line.
*
* @param args the command line parameters
*/
...
...
h2/src/test/org/h2/samples/TriggerSample.java
浏览文件 @
2ce30790
...
...
@@ -22,7 +22,8 @@ import org.h2.api.Trigger;
public
class
TriggerSample
{
/**
* This method is called when executing this sample application.
* This method is called when executing this sample application from the
* command line.
*
* @param args the command line parameters
*/
...
...
h2/src/test/org/h2/samples/newsfeed.sql
浏览文件 @
2ce30790
...
...
@@ -13,6 +13,34 @@ INSERT INTO CHANNEL VALUES('H2 Database Engine' ,
CREATE
TABLE
ITEM
(
ID
INT
PRIMARY
KEY
,
TITLE
VARCHAR
,
ISSUED
TIMESTAMP
,
DESC
VARCHAR
);
INSERT
INTO
ITEM
VALUES
(
45
,
'New version available: 1.0.75 (2008-07-14)'
,
'2008-07-14 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
>
The
JaQu
(
Java
Query
)
tool
has
been
improved
.
</
li
><
li
>
The
H2
Console
can
be
started
with
an
open
connection
to
inspect
a
database
while
debugging
.
</
li
><
li
>
The
referential
constraint
checking
performance
has
been
improvement
.
</
li
></
ul
>
<
b
>
Bugfixes
:
</
b
>
<
ul
><
li
>
Running
out
of
memory
could
result
in
incomplete
transactions
or
corrupted
databases
.
Fixed
.
</
li
><
li
>
Stopping
a
WebServer
didn
't always work. Fixed.
</li><li>Sometimes, order by in a query that uses the same table multiple times didn'
t
work
.
</
li
><
li
>
A
multi
version
concurrency
(
MVCC
)
problem
has
been
fixed
.
</
li
><
li
>
Some
views
with
multiple
joined
tables
didn
't work.
</li><li>The Oracle mode now allows multiple rows with NULL in a unique index.
</li><li>Some database metadata calls returned the wrong data type for DATA_TYPE columns.
</li><li>A bug int the Lucene fulltext implementation has been fixed.
</li><li>The character '
$
' could not be used in identifier names.
</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(44,
'
New
version
available
:
1
.
0
.
74
(
2008
-
06
-
21
)
', '
2008
-
06
-
21
12
:
00
:
00
',
$$A new version of H2 is available for <a href="http://www.h2database.com">download</a>.
...
...
@@ -427,32 +455,6 @@ For future plans, see the ''Roadmap'' page at
http
:
//
www
.
h2database
.
com
/
html
/
roadmap
.
html
');
INSERT
INTO
ITEM
VALUES
(
33
,
'New version available: 1.0.63 (2007-12-02)'
,
'2007-12-02 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>Performance optimization for IN(...) and IN(SELECT...),
currently disabled by default. To enable, use java -Dh2.optimizeInJoin=true
</li><li>The H2 Console has been translated to Ukrainian by Igor Dobrovolskyi. Thanks a lot!
</li><li>The SecurePassword example has been improved.
</li><li>Improved FTP server: now the PORT command is supported.
</li><li>New function TABLE_DISTINCT.
</li></ul>
<b>Bugfixes:</b>
<ul><li>Certain setting in the Server didn
''
t work.
</li><li>In time zones where the summer time saving limit is at midnight,
some dates did not work in some virtual machines,
for example 2007-10-14 in Chile, using the Sun JVM 1.6.0_03-b05.
</li><li>The native fulltext search was not working properly after re-connecting.
</li><li>Temporary views (FROM(...)) with UNION didn
''
t work if nested.
</li><li>Using LIMIT with values close to Integer.MAX_VALUE didn
''
t work.
</li></ul>
For future plans, see the
''
Roadmap
''
page at
http://www.h2database.com/html/roadmap.html
'
);
SELECT '
newsfeed
-
rss
.
xml
' FILE,
XMLSTARTDOC() ||
XMLNODE('
rss
', XMLATTR('
version
', '
2
.
0
'),
...
...
h2/src/test/org/h2/test/jaqu/SamplesTest.java
浏览文件 @
2ce30790
...
...
@@ -26,16 +26,22 @@ import org.h2.test.TestBase;
* no more SQL injection.</p>
*/
public
class
SamplesTest
extends
TestBase
{
/**
* This object represents a database (actually a connection to the database).
*/
//## Java 1.5 begin ##
Db
db
;
//## Java 1.5 end ##
// TODO length
/**
* This method is called when executing this application from the command
* line.
*
* @param args the command line parameters
*/
public
static
void
main
(
String
[]
args
)
throws
Exception
{
new
SamplesTest
().
test
();
}
//## Java 1.5 end ##
public
void
test
()
throws
Exception
{
//## Java 1.5 begin ##
...
...
h2/src/tools/org/h2/build/BuildBase.java
浏览文件 @
2ce30790
...
...
@@ -491,8 +491,8 @@ public class BuildBase {
* @param basePath the base path
*/
protected
void
jar
(
String
destFile
,
List
files
,
String
basePath
)
{
out
.
println
(
"Jar "
+
destFil
e
);
zipOrJar
(
destFile
,
files
,
basePath
,
false
,
false
,
true
);
long
kb
=
zipOrJar
(
destFile
,
files
,
basePath
,
false
,
false
,
tru
e
);
out
.
println
(
"Jar "
+
destFile
+
" ("
+
kb
+
" KB)"
);
}
/**
...
...
@@ -505,11 +505,11 @@ public class BuildBase {
* @param sortBySuffix if the file should be sorted by the file suffix
*/
protected
void
zip
(
String
destFile
,
List
files
,
String
basePath
,
boolean
storeOnly
,
boolean
sortBySuffix
)
{
out
.
println
(
"Zip "
+
destFil
e
);
zipOrJar
(
destFile
,
files
,
basePath
,
storeOnly
,
sortBySuffix
,
false
);
long
kb
=
zipOrJar
(
destFile
,
files
,
basePath
,
storeOnly
,
sortBySuffix
,
fals
e
);
out
.
println
(
"Zip "
+
destFile
+
" ("
+
kb
+
" KB)"
);
}
private
void
zipOrJar
(
String
destFile
,
List
files
,
String
basePath
,
boolean
storeOnly
,
boolean
sortBySuffix
,
boolean
jar
)
{
private
long
zipOrJar
(
String
destFile
,
List
files
,
String
basePath
,
boolean
storeOnly
,
boolean
sortBySuffix
,
boolean
jar
)
{
if
(
sortBySuffix
)
{
// for better compressibility, sort by suffix, then name
Collections
.
sort
(
files
,
new
Comparator
()
{
...
...
@@ -555,6 +555,7 @@ public class BuildBase {
}
zipOut
.
closeEntry
();
zipOut
.
close
();
return
new
File
(
destFile
).
length
()
/
1024
;
}
catch
(
IOException
e
)
{
throw
new
Error
(
"Error creating file "
+
destFile
,
e
);
}
...
...
h2/src/tools/org/h2/build/doc/dictionary.txt
浏览文件 @
2ce30790
...
...
@@ -545,4 +545,4 @@ crab northwoods escargots organic sasquatch bourgogne clam camembert tigers
chang lumberjack roed biscuits
usable weblica jena preserved instrumentation inspect jayaprakash ashwin
varargs automate couldn unclear eat dtp disks tablespaces
\ No newline at end of file
varargs automate couldn unclear eat dtp disks tablespaces great reproduces
\ No newline at end of file
h2/src/tools/org/h2/jaqu/Db.java
浏览文件 @
2ce30790
...
...
@@ -26,7 +26,8 @@ import org.h2.util.JdbcUtils;
//## Java 1.5 begin ##
public
class
Db
{
private
static
final
WeakIdentityHashMap
<
Object
,
Token
>
TOKENS
=
Utils
.
newWeakIdentityHashMap
();
private
static
final
WeakIdentityHashMap
<
Object
,
Token
>
TOKENS
=
Utils
.
newWeakIdentityHashMap
();
private
final
Connection
conn
;
private
final
Map
<
Class
,
TableDefinition
>
classMap
=
Utils
.
newHashMap
();
...
...
h2/src/tools/org/h2/jaqu/Function.java
浏览文件 @
2ce30790
...
...
@@ -29,18 +29,19 @@ public class Function implements Token {
public
String
getString
(
Query
query
)
{
return
name
+
"("
+
query
.
getString
(
x
)
+
")"
;
}
//## Java 1.5 end ##
public
static
Long
count
()
{
return
COUNT_STAR
;
}
public
static
Integer
length
(
Object
x
)
{
return
Db
.
registerToken
(
Utils
.
newObject
(
Integer
.
class
),
new
Function
(
"LENGTH"
,
x
));
return
Db
.
registerToken
(
Utils
.
newObject
(
Integer
.
class
),
new
Function
(
"LENGTH"
,
x
));
}
public
static
Long
count
(
Object
x
)
{
return
Db
.
registerToken
(
Utils
.
newObject
(
Long
.
class
),
new
Function
(
"COUNT"
,
x
));
return
Db
.
registerToken
(
Utils
.
newObject
(
Long
.
class
),
new
Function
(
"COUNT"
,
x
));
}
public
static
<
X
>
X
min
(
X
x
)
{
...
...
@@ -55,6 +56,5 @@ public class Function implements Token {
return
Db
.
registerToken
(
o
,
new
Function
(
"MAX"
,
x
));
}
//## Java 1.5 end ##
}
h2/src/tools/org/h2/jaqu/OrderExpression.java
浏览文件 @
2ce30790
...
...
@@ -19,7 +19,8 @@ class OrderExpression<T> {
private
boolean
nullsFirst
;
private
boolean
nullsLast
;
OrderExpression
(
Query
query
,
T
expression
,
boolean
desc
,
boolean
nullsFirst
,
boolean
nullsLast
)
{
OrderExpression
(
Query
query
,
T
expression
,
boolean
desc
,
boolean
nullsFirst
,
boolean
nullsLast
)
{
this
.
query
=
query
;
this
.
expression
=
expression
;
this
.
desc
=
desc
;
...
...
h2/src/tools/org/h2/jaqu/Query.java
浏览文件 @
2ce30790
...
...
@@ -145,14 +145,16 @@ public class Query<T> {
//## Java 1.5 begin ##
public
Query
<
T
>
orderBy
(
Object
...
expressions
)
{
for
(
Object
expr
:
expressions
)
{
OrderExpression
<
Object
>
e
=
new
OrderExpression
<
Object
>(
this
,
expr
,
false
,
false
,
false
);
OrderExpression
<
Object
>
e
=
new
OrderExpression
<
Object
>(
this
,
expr
,
false
,
false
,
false
);
addOrderBy
(
e
);
}
return
this
;
}
public
Query
<
T
>
orderByDesc
(
Object
expr
)
{
OrderExpression
<
Object
>
e
=
new
OrderExpression
<
Object
>(
this
,
expr
,
true
,
false
,
false
);
OrderExpression
<
Object
>
e
=
new
OrderExpression
<
Object
>(
this
,
expr
,
true
,
false
,
false
);
addOrderBy
(
e
);
return
this
;
}
...
...
@@ -228,7 +230,7 @@ public class Query<T> {
/**
* Join another table.
*
* @param
u
an alias for the table to join
* @param
alias
an alias for the table to join
* @return the joined query
*/
//## Java 1.5 begin ##
...
...
h2/src/tools/org/h2/jaqu/QueryWhere.java
浏览文件 @
2ce30790
...
...
@@ -61,38 +61,44 @@ public class QueryWhere<T> {
//## Java 1.5 begin ##
public
QueryWhere
<
T
>
orderBy
(
Object
...
expressions
)
{
for
(
Object
expr
:
expressions
)
{
OrderExpression
<
Object
>
e
=
new
OrderExpression
<
Object
>(
query
,
expr
,
false
,
false
,
false
);
OrderExpression
<
Object
>
e
=
new
OrderExpression
<
Object
>(
query
,
expr
,
false
,
false
,
false
);
query
.
addOrderBy
(
e
);
}
return
this
;
}
public
QueryWhere
<
T
>
orderByNullsFirst
(
Object
expr
)
{
OrderExpression
<
Object
>
e
=
new
OrderExpression
<
Object
>(
query
,
expr
,
false
,
true
,
false
);
OrderExpression
<
Object
>
e
=
new
OrderExpression
<
Object
>(
query
,
expr
,
false
,
true
,
false
);
query
.
addOrderBy
(
e
);
return
this
;
}
public
QueryWhere
<
T
>
orderByNullsLast
(
Object
expr
)
{
OrderExpression
<
Object
>
e
=
new
OrderExpression
<
Object
>(
query
,
expr
,
false
,
false
,
true
);
OrderExpression
<
Object
>
e
=
new
OrderExpression
<
Object
>(
query
,
expr
,
false
,
false
,
true
);
query
.
addOrderBy
(
e
);
return
this
;
}
public
QueryWhere
<
T
>
orderByDesc
(
Object
expr
)
{
OrderExpression
<
Object
>
e
=
new
OrderExpression
<
Object
>(
query
,
expr
,
true
,
false
,
false
);
OrderExpression
<
Object
>
e
=
new
OrderExpression
<
Object
>(
query
,
expr
,
true
,
false
,
false
);
query
.
addOrderBy
(
e
);
return
this
;
}
public
QueryWhere
<
T
>
orderByDescNullsFirst
(
Object
expr
)
{
OrderExpression
<
Object
>
e
=
new
OrderExpression
<
Object
>(
query
,
expr
,
true
,
true
,
false
);
OrderExpression
<
Object
>
e
=
new
OrderExpression
<
Object
>(
query
,
expr
,
true
,
true
,
false
);
query
.
addOrderBy
(
e
);
return
this
;
}
public
QueryWhere
<
T
>
orderByDescNullsLast
(
Object
expr
)
{
OrderExpression
<
Object
>
e
=
new
OrderExpression
<
Object
>(
query
,
expr
,
true
,
false
,
true
);
OrderExpression
<
Object
>
e
=
new
OrderExpression
<
Object
>(
query
,
expr
,
true
,
false
,
true
);
query
.
addOrderBy
(
e
);
return
this
;
}
...
...
h2/src/tools/org/h2/jaqu/TableDefinition.java
浏览文件 @
2ce30790
...
...
@@ -230,7 +230,8 @@ class TableDefinition<T> {
}
}
void
initSelectObject
(
SelectTable
table
,
Object
obj
,
Map
<
Object
,
SelectColumn
>
map
)
{
void
initSelectObject
(
SelectTable
table
,
Object
obj
,
Map
<
Object
,
SelectColumn
>
map
)
{
for
(
FieldDefinition
def
:
fields
)
{
def
.
initWithNewObject
(
obj
);
SelectColumn
column
=
new
SelectColumn
(
table
,
def
);
...
...
h2/src/tools/org/h2/jaqu/util/Utils.java
浏览文件 @
2ce30790
...
...
@@ -151,7 +151,8 @@ public class Utils {
return
n
.
floatValue
();
}
}
throw
new
RuntimeException
(
"Can not convert the value "
+
o
+
" from "
+
currentType
+
" to "
+
targetType
);
throw
new
RuntimeException
(
"Can not convert the value "
+
o
+
" from "
+
currentType
+
" to "
+
targetType
);
}
//## Java 1.5 end ##
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论