Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
9b4ca4a4
提交
9b4ca4a4
authored
10月 17, 2017
作者:
StuMc
提交者:
GitHub
10月 17, 2017
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' into Issue#628
上级
d5c9193e
64d5d907
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
207 个修改的文件
包含
1891 行增加
和
995 行删除
+1891
-995
help.csv
h2/src/docsrc/help/help.csv
+26
-26
changelog.html
h2/src/docsrc/html/changelog.html
+3
-3
Parser.java
h2/src/main/org/h2/command/Parser.java
+78
-77
MergeUsing.java
h2/src/main/org/h2/command/dml/MergeUsing.java
+184
-160
Session.java
h2/src/main/org/h2/engine/Session.java
+2
-2
FullText.java
h2/src/main/org/h2/fulltext/FullText.java
+7
-8
FullTextLucene.java
h2/src/main/org/h2/fulltext/FullTextLucene.java
+20
-24
FullTextSettings.java
h2/src/main/org/h2/fulltext/FullTextSettings.java
+2
-3
JdbcConnection.java
h2/src/main/org/h2/jdbc/JdbcConnection.java
+182
-164
TableView.java
h2/src/main/org/h2/table/TableView.java
+4
-1
CreateCluster.java
h2/src/main/org/h2/tools/CreateCluster.java
+22
-19
ToDateTokenizer.java
h2/src/main/org/h2/util/ToDateTokenizer.java
+333
-328
Value.java
h2/src/main/org/h2/value/Value.java
+2
-1
TestScalability.java
h2/src/test/org/h2/test/bench/TestScalability.java
+2
-2
TestMergeUsing.java
h2/src/test/org/h2/test/db/TestMergeUsing.java
+143
-148
TestSetCollation.java
h2/src/test/org/h2/test/db/TestSetCollation.java
+2
-2
TestSynonymForTable.java
h2/src/test/org/h2/test/db/TestSynonymForTable.java
+7
-8
TestCustomDataTypesHandler.java
h2/src/test/org/h2/test/jdbc/TestCustomDataTypesHandler.java
+10
-11
TestScript.java
h2/src/test/org/h2/test/scripts/TestScript.java
+3
-2
commands-dml-create-view.sql
h2/src/test/org/h2/test/scripts/commands-dml-create-view.sql
+5
-0
commands-dml-script.sql
h2/src/test/org/h2/test/scripts/commands-dml-script.sql
+5
-0
array.sql
h2/src/test/org/h2/test/scripts/datatypes/array.sql
+4
-0
bigint.sql
h2/src/test/org/h2/test/scripts/datatypes/bigint.sql
+4
-0
binary.sql
h2/src/test/org/h2/test/scripts/datatypes/binary.sql
+4
-0
blob.sql
h2/src/test/org/h2/test/scripts/datatypes/blob.sql
+4
-0
boolean.sql
h2/src/test/org/h2/test/scripts/datatypes/boolean.sql
+4
-0
char.sql
h2/src/test/org/h2/test/scripts/datatypes/char.sql
+4
-0
clob.sql
h2/src/test/org/h2/test/scripts/datatypes/clob.sql
+4
-0
date.sql
h2/src/test/org/h2/test/scripts/datatypes/date.sql
+4
-0
decimal.sql
h2/src/test/org/h2/test/scripts/datatypes/decimal.sql
+4
-0
double.sql
h2/src/test/org/h2/test/scripts/datatypes/double.sql
+4
-0
enum.sql
h2/src/test/org/h2/test/scripts/datatypes/enum.sql
+5
-0
geometry.sql
h2/src/test/org/h2/test/scripts/datatypes/geometry.sql
+4
-0
identity.sql
h2/src/test/org/h2/test/scripts/datatypes/identity.sql
+4
-0
int.sql
h2/src/test/org/h2/test/scripts/datatypes/int.sql
+4
-0
other.sql
h2/src/test/org/h2/test/scripts/datatypes/other.sql
+4
-0
real.sql
h2/src/test/org/h2/test/scripts/datatypes/real.sql
+4
-0
smallint.sql
h2/src/test/org/h2/test/scripts/datatypes/smallint.sql
+4
-0
time.sql
h2/src/test/org/h2/test/scripts/datatypes/time.sql
+4
-0
timestamp-with-timezone.sql
...org/h2/test/scripts/datatypes/timestamp-with-timezone.sql
+4
-0
timestamp.sql
h2/src/test/org/h2/test/scripts/datatypes/timestamp.sql
+4
-0
tinyint.sql
h2/src/test/org/h2/test/scripts/datatypes/tinyint.sql
+4
-0
uuid.sql
h2/src/test/org/h2/test/scripts/datatypes/uuid.sql
+4
-0
varchar-ignorecase.sql
...test/org/h2/test/scripts/datatypes/varchar-ignorecase.sql
+4
-0
varchar.sql
h2/src/test/org/h2/test/scripts/datatypes/varchar.sql
+4
-0
avg.sql
h2/src/test/org/h2/test/scripts/functions/aggregate/avg.sql
+4
-0
bit-and.sql
.../test/org/h2/test/scripts/functions/aggregate/bit-and.sql
+4
-0
bit-or.sql
...c/test/org/h2/test/scripts/functions/aggregate/bit-or.sql
+4
-0
bool-and.sql
...test/org/h2/test/scripts/functions/aggregate/bool-and.sql
+4
-0
bool-or.sql
.../test/org/h2/test/scripts/functions/aggregate/bool-or.sql
+4
-0
count.sql
...rc/test/org/h2/test/scripts/functions/aggregate/count.sql
+4
-0
group-concat.sql
.../org/h2/test/scripts/functions/aggregate/group-concat.sql
+4
-0
max.sql
h2/src/test/org/h2/test/scripts/functions/aggregate/max.sql
+4
-0
min.sql
h2/src/test/org/h2/test/scripts/functions/aggregate/min.sql
+4
-0
selectivity.sql
...t/org/h2/test/scripts/functions/aggregate/selectivity.sql
+4
-0
stddev-pop.sql
...st/org/h2/test/scripts/functions/aggregate/stddev-pop.sql
+4
-0
stddev-samp.sql
...t/org/h2/test/scripts/functions/aggregate/stddev-samp.sql
+4
-0
sum.sql
h2/src/test/org/h2/test/scripts/functions/aggregate/sum.sql
+4
-0
var-pop.sql
.../test/org/h2/test/scripts/functions/aggregate/var-pop.sql
+4
-0
var-samp.sql
...test/org/h2/test/scripts/functions/aggregate/var-samp.sql
+4
-0
abs.sql
h2/src/test/org/h2/test/scripts/functions/numeric/abs.sql
+5
-0
acos.sql
h2/src/test/org/h2/test/scripts/functions/numeric/acos.sql
+5
-0
asin.sql
h2/src/test/org/h2/test/scripts/functions/numeric/asin.sql
+5
-0
atan.sql
h2/src/test/org/h2/test/scripts/functions/numeric/atan.sql
+5
-0
atan2.sql
h2/src/test/org/h2/test/scripts/functions/numeric/atan2.sql
+5
-0
bitand.sql
h2/src/test/org/h2/test/scripts/functions/numeric/bitand.sql
+5
-0
bitget.sql
h2/src/test/org/h2/test/scripts/functions/numeric/bitget.sql
+5
-0
bitor.sql
h2/src/test/org/h2/test/scripts/functions/numeric/bitor.sql
+5
-0
bitxor.sql
h2/src/test/org/h2/test/scripts/functions/numeric/bitxor.sql
+5
-0
ceil.sql
h2/src/test/org/h2/test/scripts/functions/numeric/ceil.sql
+5
-0
compress.sql
...c/test/org/h2/test/scripts/functions/numeric/compress.sql
+5
-0
cos.sql
h2/src/test/org/h2/test/scripts/functions/numeric/cos.sql
+5
-0
cosh.sql
h2/src/test/org/h2/test/scripts/functions/numeric/cosh.sql
+5
-0
cot.sql
h2/src/test/org/h2/test/scripts/functions/numeric/cot.sql
+5
-0
decrypt.sql
...rc/test/org/h2/test/scripts/functions/numeric/decrypt.sql
+5
-0
degrees.sql
...rc/test/org/h2/test/scripts/functions/numeric/degrees.sql
+5
-0
encrypt.sql
...rc/test/org/h2/test/scripts/functions/numeric/encrypt.sql
+5
-0
exp.sql
h2/src/test/org/h2/test/scripts/functions/numeric/exp.sql
+5
-0
expand.sql
h2/src/test/org/h2/test/scripts/functions/numeric/expand.sql
+4
-0
floor.sql
h2/src/test/org/h2/test/scripts/functions/numeric/floor.sql
+5
-0
hash.sql
h2/src/test/org/h2/test/scripts/functions/numeric/hash.sql
+5
-0
length.sql
h2/src/test/org/h2/test/scripts/functions/numeric/length.sql
+5
-0
log.sql
h2/src/test/org/h2/test/scripts/functions/numeric/log.sql
+5
-0
mod.sql
h2/src/test/org/h2/test/scripts/functions/numeric/mod.sql
+5
-0
pi.sql
h2/src/test/org/h2/test/scripts/functions/numeric/pi.sql
+5
-0
power.sql
h2/src/test/org/h2/test/scripts/functions/numeric/power.sql
+5
-0
radians.sql
...rc/test/org/h2/test/scripts/functions/numeric/radians.sql
+5
-0
rand.sql
h2/src/test/org/h2/test/scripts/functions/numeric/rand.sql
+5
-0
random-uuid.sql
...est/org/h2/test/scripts/functions/numeric/random-uuid.sql
+4
-0
round.sql
h2/src/test/org/h2/test/scripts/functions/numeric/round.sql
+5
-0
roundmagic.sql
...test/org/h2/test/scripts/functions/numeric/roundmagic.sql
+4
-0
secure-rand.sql
...est/org/h2/test/scripts/functions/numeric/secure-rand.sql
+4
-0
sign.sql
h2/src/test/org/h2/test/scripts/functions/numeric/sign.sql
+5
-0
sin.sql
h2/src/test/org/h2/test/scripts/functions/numeric/sin.sql
+5
-0
sinh.sql
h2/src/test/org/h2/test/scripts/functions/numeric/sinh.sql
+4
-0
sqrt.sql
h2/src/test/org/h2/test/scripts/functions/numeric/sqrt.sql
+5
-0
tan.sql
h2/src/test/org/h2/test/scripts/functions/numeric/tan.sql
+5
-0
tanh.sql
h2/src/test/org/h2/test/scripts/functions/numeric/tanh.sql
+4
-0
trunc.sql
h2/src/test/org/h2/test/scripts/functions/numeric/trunc.sql
+5
-0
truncate.sql
...c/test/org/h2/test/scripts/functions/numeric/truncate.sql
+4
-0
zero.sql
h2/src/test/org/h2/test/scripts/functions/numeric/zero.sql
+4
-0
ascii.sql
h2/src/test/org/h2/test/scripts/functions/string/ascii.sql
+5
-0
bit-length.sql
.../test/org/h2/test/scripts/functions/string/bit-length.sql
+4
-0
char.sql
h2/src/test/org/h2/test/scripts/functions/string/char.sql
+5
-0
concat-ws.sql
...c/test/org/h2/test/scripts/functions/string/concat-ws.sql
+4
-0
concat.sql
h2/src/test/org/h2/test/scripts/functions/string/concat.sql
+4
-0
difference.sql
.../test/org/h2/test/scripts/functions/string/difference.sql
+5
-0
hextoraw.sql
...rc/test/org/h2/test/scripts/functions/string/hextoraw.sql
+5
-0
insert.sql
h2/src/test/org/h2/test/scripts/functions/string/insert.sql
+5
-0
instr.sql
h2/src/test/org/h2/test/scripts/functions/string/instr.sql
+5
-0
left.sql
h2/src/test/org/h2/test/scripts/functions/string/left.sql
+5
-0
length.sql
h2/src/test/org/h2/test/scripts/functions/string/length.sql
+4
-0
locate.sql
h2/src/test/org/h2/test/scripts/functions/string/locate.sql
+5
-0
lower.sql
h2/src/test/org/h2/test/scripts/functions/string/lower.sql
+5
-0
lpad.sql
h2/src/test/org/h2/test/scripts/functions/string/lpad.sql
+4
-0
ltrim.sql
h2/src/test/org/h2/test/scripts/functions/string/ltrim.sql
+5
-0
octet-length.sql
...est/org/h2/test/scripts/functions/string/octet-length.sql
+4
-0
position.sql
...rc/test/org/h2/test/scripts/functions/string/position.sql
+5
-0
rawtohex.sql
...rc/test/org/h2/test/scripts/functions/string/rawtohex.sql
+4
-0
regex-replace.sql
...st/org/h2/test/scripts/functions/string/regex-replace.sql
+4
-0
regexp-like.sql
...test/org/h2/test/scripts/functions/string/regexp-like.sql
+4
-0
repeat.sql
h2/src/test/org/h2/test/scripts/functions/string/repeat.sql
+5
-0
replace.sql
h2/src/test/org/h2/test/scripts/functions/string/replace.sql
+5
-0
right.sql
h2/src/test/org/h2/test/scripts/functions/string/right.sql
+5
-0
rpad.sql
h2/src/test/org/h2/test/scripts/functions/string/rpad.sql
+4
-0
rtrim.sql
h2/src/test/org/h2/test/scripts/functions/string/rtrim.sql
+5
-0
soundex.sql
h2/src/test/org/h2/test/scripts/functions/string/soundex.sql
+5
-0
space.sql
h2/src/test/org/h2/test/scripts/functions/string/space.sql
+5
-0
stringdecode.sql
...est/org/h2/test/scripts/functions/string/stringdecode.sql
+4
-0
stringencode.sql
...est/org/h2/test/scripts/functions/string/stringencode.sql
+5
-0
stringtoutf8.sql
...est/org/h2/test/scripts/functions/string/stringtoutf8.sql
+4
-0
substring.sql
...c/test/org/h2/test/scripts/functions/string/substring.sql
+5
-0
to-char.sql
h2/src/test/org/h2/test/scripts/functions/string/to-char.sql
+4
-0
translate.sql
...c/test/org/h2/test/scripts/functions/string/translate.sql
+4
-0
trim.sql
h2/src/test/org/h2/test/scripts/functions/string/trim.sql
+5
-0
upper.sql
h2/src/test/org/h2/test/scripts/functions/string/upper.sql
+5
-0
utf8tostring.sql
...est/org/h2/test/scripts/functions/string/utf8tostring.sql
+5
-0
xmlattr.sql
h2/src/test/org/h2/test/scripts/functions/string/xmlattr.sql
+4
-0
xmlcdata.sql
...rc/test/org/h2/test/scripts/functions/string/xmlcdata.sql
+5
-0
xmlcomment.sql
.../test/org/h2/test/scripts/functions/string/xmlcomment.sql
+5
-0
xmlnode.sql
h2/src/test/org/h2/test/scripts/functions/string/xmlnode.sql
+5
-0
xmlstartdoc.sql
...test/org/h2/test/scripts/functions/string/xmlstartdoc.sql
+5
-0
xmltext.sql
h2/src/test/org/h2/test/scripts/functions/string/xmltext.sql
+5
-0
array-contains.sql
...t/org/h2/test/scripts/functions/system/array-contains.sql
+4
-0
array-get.sql
...c/test/org/h2/test/scripts/functions/system/array-get.sql
+4
-0
array-length.sql
...est/org/h2/test/scripts/functions/system/array-length.sql
+4
-0
autocommit.sql
.../test/org/h2/test/scripts/functions/system/autocommit.sql
+5
-0
cancel-session.sql
...t/org/h2/test/scripts/functions/system/cancel-session.sql
+4
-0
casewhen.sql
...rc/test/org/h2/test/scripts/functions/system/casewhen.sql
+5
-0
cast.sql
h2/src/test/org/h2/test/scripts/functions/system/cast.sql
+5
-0
coalesce.sql
...rc/test/org/h2/test/scripts/functions/system/coalesce.sql
+5
-0
convert.sql
h2/src/test/org/h2/test/scripts/functions/system/convert.sql
+5
-0
csvread.sql
h2/src/test/org/h2/test/scripts/functions/system/csvread.sql
+4
-0
csvwrite.sql
...rc/test/org/h2/test/scripts/functions/system/csvwrite.sql
+5
-0
currval.sql
h2/src/test/org/h2/test/scripts/functions/system/currval.sql
+4
-0
database-path.sql
...st/org/h2/test/scripts/functions/system/database-path.sql
+4
-0
database.sql
...rc/test/org/h2/test/scripts/functions/system/database.sql
+5
-0
decode.sql
h2/src/test/org/h2/test/scripts/functions/system/decode.sql
+4
-0
disk-space-used.sql
.../org/h2/test/scripts/functions/system/disk-space-used.sql
+4
-0
file-read.sql
...c/test/org/h2/test/scripts/functions/system/file-read.sql
+4
-0
file-write.sql
.../test/org/h2/test/scripts/functions/system/file-write.sql
+4
-0
greatest.sql
...rc/test/org/h2/test/scripts/functions/system/greatest.sql
+4
-0
h2version.sql
...c/test/org/h2/test/scripts/functions/system/h2version.sql
+4
-0
identity.sql
...rc/test/org/h2/test/scripts/functions/system/identity.sql
+4
-0
ifnull.sql
h2/src/test/org/h2/test/scripts/functions/system/ifnull.sql
+5
-0
least.sql
h2/src/test/org/h2/test/scripts/functions/system/least.sql
+4
-0
link-schema.sql
...test/org/h2/test/scripts/functions/system/link-schema.sql
+4
-0
lock-mode.sql
...c/test/org/h2/test/scripts/functions/system/lock-mode.sql
+4
-0
lock-timeout.sql
...est/org/h2/test/scripts/functions/system/lock-timeout.sql
+4
-0
memory-free.sql
...test/org/h2/test/scripts/functions/system/memory-free.sql
+4
-0
memory-used.sql
...test/org/h2/test/scripts/functions/system/memory-used.sql
+4
-0
nextval.sql
h2/src/test/org/h2/test/scripts/functions/system/nextval.sql
+4
-0
nullif.sql
h2/src/test/org/h2/test/scripts/functions/system/nullif.sql
+5
-0
nvl2.sql
h2/src/test/org/h2/test/scripts/functions/system/nvl2.sql
+4
-0
readonly.sql
...rc/test/org/h2/test/scripts/functions/system/readonly.sql
+5
-0
rownum.sql
h2/src/test/org/h2/test/scripts/functions/system/rownum.sql
+5
-0
schema.sql
h2/src/test/org/h2/test/scripts/functions/system/schema.sql
+4
-0
scope-identity.sql
...t/org/h2/test/scripts/functions/system/scope-identity.sql
+4
-0
session-id.sql
.../test/org/h2/test/scripts/functions/system/session-id.sql
+4
-0
set.sql
h2/src/test/org/h2/test/scripts/functions/system/set.sql
+4
-0
table.sql
h2/src/test/org/h2/test/scripts/functions/system/table.sql
+4
-0
transaction-id.sql
...t/org/h2/test/scripts/functions/system/transaction-id.sql
+4
-0
truncate-value.sql
...t/org/h2/test/scripts/functions/system/truncate-value.sql
+4
-0
user.sql
h2/src/test/org/h2/test/scripts/functions/system/user.sql
+5
-0
current-time.sql
...rg/h2/test/scripts/functions/timeanddate/current-time.sql
+5
-0
current_date.sql
...rg/h2/test/scripts/functions/timeanddate/current_date.sql
+5
-0
current_timestamp.sql
.../test/scripts/functions/timeanddate/current_timestamp.sql
+4
-0
dateadd.sql
...est/org/h2/test/scripts/functions/timeanddate/dateadd.sql
+5
-0
datediff.sql
...st/org/h2/test/scripts/functions/timeanddate/datediff.sql
+5
-0
day-of-month.sql
...rg/h2/test/scripts/functions/timeanddate/day-of-month.sql
+5
-0
day-of-week.sql
...org/h2/test/scripts/functions/timeanddate/day-of-week.sql
+5
-0
day-of-year.sql
...org/h2/test/scripts/functions/timeanddate/day-of-year.sql
+5
-0
dayname.sql
...est/org/h2/test/scripts/functions/timeanddate/dayname.sql
+5
-0
extract.sql
...est/org/h2/test/scripts/functions/timeanddate/extract.sql
+4
-0
formatdatetime.sql
.../h2/test/scripts/functions/timeanddate/formatdatetime.sql
+5
-0
hour.sql
...c/test/org/h2/test/scripts/functions/timeanddate/hour.sql
+5
-0
minute.sql
...test/org/h2/test/scripts/functions/timeanddate/minute.sql
+5
-0
month.sql
.../test/org/h2/test/scripts/functions/timeanddate/month.sql
+5
-0
monthname.sql
...t/org/h2/test/scripts/functions/timeanddate/monthname.sql
+5
-0
parsedatetime.sql
...g/h2/test/scripts/functions/timeanddate/parsedatetime.sql
+5
-0
quarter.sql
...est/org/h2/test/scripts/functions/timeanddate/quarter.sql
+5
-0
second.sql
...test/org/h2/test/scripts/functions/timeanddate/second.sql
+5
-0
week.sql
...c/test/org/h2/test/scripts/functions/timeanddate/week.sql
+5
-0
year.sql
...c/test/org/h2/test/scripts/functions/timeanddate/year.sql
+5
-0
package.html
h2/src/test/org/h2/test/scripts/package.html
+14
-0
TestConcurrentLinkedList.java
h2/src/test/org/h2/test/store/TestConcurrentLinkedList.java
+2
-2
dictionary.txt
h2/src/tools/org/h2/build/doc/dictionary.txt
+10
-4
没有找到文件。
h2/src/docsrc/help/help.csv
浏览文件 @
9b4ca4a4
...
...
@@ -123,34 +123,34 @@ MERGE INTO TEST KEY(ID) VALUES(2, 'World')
"
"Commands (DML)","MERGE USING","
MERGE INTO targetTableName [ [AS] targetAlias]
USING { ( select ) | sourceTableName }[ [AS] sourceAlias ]
ON ( expression )
[ WHEN MATCHED THEN [ update ] [ delete] ]
[ WHEN NOT MATCHED THEN insert ]
","
Updates or deletes existing rows, and insert rows that don't exist. The ON clause
specifies the matching column expression and must be specified. If more than one row
is updated per input row, an exception is thrown.
If the source data contains duplicate rows (specifically those columns used in the
row matching ON clause), then an exception is thrown to prevent two updates applying
to the same target row. The embedded update, delete or insert statements can not re-specify
MERGE INTO targetTableName [ [AS] targetAlias]
USING { ( select ) | sourceTableName }[ [AS] sourceAlias ]
ON ( expression )
[ WHEN MATCHED THEN [ update ] [ delete] ]
[ WHEN NOT MATCHED THEN insert ]
","
Updates or deletes existing rows, and insert rows that don't exist. The ON clause
specifies the matching column expression and must be specified. If more than one row
is updated per input row, an exception is thrown.
If the source data contains duplicate rows (specifically those columns used in the
row matching ON clause), then an exception is thrown to prevent two updates applying
to the same target row. The embedded update, delete or insert statements can not re-specify
the target table name.
","
MERGE INTO TARGET_TABLE AS T USING SOURCE_TABLE AS S
ON (T.ID = S.ID)
WHEN MATCHED THEN
UPDATE SET T.COL1 = S.COL1 WHERE T.COL2<>'FINAL'
DELETE WHERE T.COL2='FINAL'
WHEN NOT MATCHED THEN
INSERT (ID,COL1,COL2) VALUES(S.ID,S.COL1,S.COL2)
MERGE INTO TARGET_TABLE AS T USING (SELECT * FROM SOURCE_TABLE) AS S
ON (T.ID = S.ID)
WHEN MATCHED THEN
UPDATE SET T.COL1 = S.COL1 WHERE T.COL2<>'FINAL'
DELETE WHERE T.COL2='FINAL'
WHEN NOT MATCHED THEN
INSERT (ID,COL1,COL2) VALUES(S.ID,S.COL1,S.COL2)
MERGE INTO TARGET_TABLE AS T USING SOURCE_TABLE AS S
ON (T.ID = S.ID)
WHEN MATCHED THEN
UPDATE SET T.COL1 = S.COL1 WHERE T.COL2<>'FINAL'
DELETE WHERE T.COL2='FINAL'
WHEN NOT MATCHED THEN
INSERT (ID,COL1,COL2) VALUES(S.ID,S.COL1,S.COL2)
MERGE INTO TARGET_TABLE AS T USING (SELECT * FROM SOURCE_TABLE) AS S
ON (T.ID = S.ID)
WHEN MATCHED THEN
UPDATE SET T.COL1 = S.COL1 WHERE T.COL2<>'FINAL'
DELETE WHERE T.COL2='FINAL'
WHEN NOT MATCHED THEN
INSERT (ID,COL1,COL2) VALUES(S.ID,S.COL1,S.COL2)
"
"Commands (DML)","RUNSCRIPT","
...
...
h2/src/docsrc/html/changelog.html
浏览文件 @
9b4ca4a4
...
...
@@ -47,7 +47,7 @@ Change Log
</li>
<li>
Issue #585: MySQL mode DELETE statements compatibility
</li>
<li>
PR #586: remove extra tx preparation
<li>
PR #586: remove extra tx preparation
</li>
<li>
PR #568: Implement MetaData.getColumns() for synonyms.
</li>
...
...
@@ -55,7 +55,7 @@ Change Log
</li>
<li>
Fix a deadlock in the TransactionStore
</li>
<li>
PR #579: Disallow BLOB type in PostgreSQL mode
<li>
PR #579: Disallow BLOB type in PostgreSQL mode
</li>
<li>
Issue #576: Common Table Expression (CTE): WITH supports INSERT, UPDATE, MERGE, DELETE, CREATE TABLE ...
</li>
...
...
@@ -71,7 +71,7 @@ Change Log
</li>
<li>
Issue #549: Removed UNION ALL requirements for CTE
</li>
<li>
Issue #548: Table synonym support
<li>
Issue #548: Table synonym support
</li>
<li>
Issue #531: Rollback and delayed meta save.
</li>
...
...
h2/src/main/org/h2/command/Parser.java
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/main/org/h2/command/dml/MergeUsing.java
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/main/org/h2/engine/Session.java
浏览文件 @
9b4ca4a4
...
...
@@ -537,8 +537,8 @@ public class Session extends SessionWithState {
*
* @param sql the SQL statement
* @param rightsChecked true if the rights have already been checked
* @param literalsChecked true if the sql string has already been checked
for literals (only used if
*
ALLOW_LITERALS NONE is set).
* @param literalsChecked true if the sql string has already been checked
*
for literals (only used if
ALLOW_LITERALS NONE is set).
* @return the prepared statement
*/
public
Prepared
prepare
(
String
sql
,
boolean
rightsChecked
,
boolean
literalsChecked
)
{
...
...
h2/src/main/org/h2/fulltext/FullText.java
浏览文件 @
9b4ca4a4
...
...
@@ -23,7 +23,6 @@ import java.util.HashSet;
import
java.util.Set
;
import
java.util.StringTokenizer
;
import
java.util.UUID
;
import
org.h2.api.Trigger
;
import
org.h2.command.Parser
;
import
org.h2.engine.Session
;
...
...
@@ -266,7 +265,7 @@ public class FullText {
removeAllTriggers
(
conn
,
TRIGGER_PREFIX
);
FullTextSettings
setting
=
FullTextSettings
.
getInstance
(
conn
);
setting
.
removeAllIndexes
();
setting
.
clearInored
();
setting
.
clearI
g
nored
();
setting
.
clearWordList
();
}
...
...
@@ -751,7 +750,7 @@ public class FullText {
* @param table the table name
*/
private
static
void
createTrigger
(
Connection
conn
,
String
schema
,
String
table
)
throws
SQLException
{
String
table
)
throws
SQLException
{
createOrDropTrigger
(
conn
,
schema
,
table
,
true
);
}
...
...
@@ -793,11 +792,11 @@ public class FullText {
* @param table the table name
*/
private
static
void
indexExistingRows
(
Connection
conn
,
String
schema
,
String
table
)
throws
SQLException
{
String
table
)
throws
SQLException
{
FullText
.
FullTextTrigger
existing
=
new
FullText
.
FullTextTrigger
();
existing
.
init
(
conn
,
schema
,
null
,
table
,
false
,
Trigger
.
INSERT
);
String
sql
=
"SELECT * FROM "
+
StringUtils
.
quoteIdentifier
(
schema
)
+
"."
+
StringUtils
.
quoteIdentifier
(
table
);
String
sql
=
"SELECT * FROM "
+
StringUtils
.
quoteIdentifier
(
schema
)
+
"."
+
StringUtils
.
quoteIdentifier
(
table
);
ResultSet
rs
=
conn
.
createStatement
().
executeQuery
(
sql
);
int
columnCount
=
rs
.
getMetaData
().
getColumnCount
();
while
(
rs
.
next
())
{
...
...
@@ -1151,8 +1150,8 @@ public class FullText {
return
buff
.
toString
();
}
private
PreparedStatement
getStatement
(
Connection
conn
,
int
indx
)
throws
SQLException
{
return
useOwnConnection
?
conn
.
prepareStatement
(
SQL
[
ind
x
])
:
prepStatements
[
ind
x
];
private
PreparedStatement
getStatement
(
Connection
conn
,
int
ind
e
x
)
throws
SQLException
{
return
useOwnConnection
?
conn
.
prepareStatement
(
SQL
[
ind
ex
])
:
prepStatements
[
inde
x
];
}
}
...
...
h2/src/main/org/h2/fulltext/FullTextLucene.java
浏览文件 @
9b4ca4a4
...
...
@@ -5,6 +5,7 @@
*/
package
org
.
h2
.
fulltext
;
import
java.io.File
;
import
java.io.IOException
;
import
java.sql.Connection
;
import
java.sql.DatabaseMetaData
;
...
...
@@ -15,17 +16,25 @@ import java.sql.Statement;
import
java.util.ArrayList
;
import
java.util.Collections
;
import
java.util.HashMap
;
import
java.util.Map
;
import
org.apache.lucene.analysis.Analyzer
;
import
org.apache.lucene.analysis.standard.StandardAnalyzer
;
import
org.apache.lucene.document.DateTools
;
import
org.apache.lucene.document.Document
;
import
org.apache.lucene.document.Field
;
import
org.apache.lucene.index.IndexReader
;
import
org.apache.lucene.index.IndexWriter
;
import
org.apache.lucene.index.IndexWriterConfig
;
import
org.apache.lucene.index.Term
;
import
org.apache.lucene.queryParser.QueryParser
;
import
org.apache.lucene.search.IndexSearcher
;
import
org.apache.lucene.search.Query
;
import
org.apache.lucene.search.ScoreDoc
;
import
org.apache.lucene.search.TopDocs
;
import
org.apache.lucene.store.Directory
;
import
org.apache.lucene.store.FSDirectory
;
import
org.apache.lucene.store.RAMDirectory
;
import
org.apache.lucene.util.Version
;
import
org.h2.api.Trigger
;
import
org.h2.command.Parser
;
import
org.h2.engine.Session
;
...
...
@@ -37,16 +46,6 @@ import org.h2.util.New;
import
org.h2.util.StatementBuilder
;
import
org.h2.util.StringUtils
;
import
org.h2.util.Utils
;
import
java.io.File
;
import
java.util.Map
;
import
org.apache.lucene.search.ScoreDoc
;
import
org.apache.lucene.search.TopDocs
;
import
org.apache.lucene.store.FSDirectory
;
import
org.apache.lucene.store.Directory
;
import
org.apache.lucene.store.RAMDirectory
;
import
org.apache.lucene.util.Version
;
import
org.apache.lucene.index.IndexWriter
;
/**
* This class implements the full text search based on Apache Lucene.
...
...
@@ -256,7 +255,7 @@ public class FullTextLucene extends FullText {
* @param table the table name
*/
private
static
void
createTrigger
(
Connection
conn
,
String
schema
,
String
table
)
throws
SQLException
{
String
table
)
throws
SQLException
{
createOrDropTrigger
(
conn
,
schema
,
table
,
true
);
}
...
...
@@ -344,11 +343,11 @@ public class FullTextLucene extends FullText {
* @param table the table name
*/
private
static
void
indexExistingRows
(
Connection
conn
,
String
schema
,
String
table
)
throws
SQLException
{
String
table
)
throws
SQLException
{
FullTextLucene
.
FullTextTrigger
existing
=
new
FullTextLucene
.
FullTextTrigger
();
existing
.
init
(
conn
,
schema
,
null
,
table
,
false
,
Trigger
.
INSERT
);
String
sql
=
"SELECT * FROM "
+
StringUtils
.
quoteIdentifier
(
schema
)
+
"."
+
StringUtils
.
quoteIdentifier
(
table
);
String
sql
=
"SELECT * FROM "
+
StringUtils
.
quoteIdentifier
(
schema
)
+
"."
+
StringUtils
.
quoteIdentifier
(
table
);
ResultSet
rs
=
conn
.
createStatement
().
executeQuery
(
sql
);
int
columnCount
=
rs
.
getMetaData
().
getColumnCount
();
while
(
rs
.
next
())
{
...
...
@@ -429,9 +428,9 @@ public class FullTextLucene extends FullText {
if
(
limit
==
0
)
{
limit
=
docs
.
totalHits
;
}
for
(
int
i
=
0
,
len
=
docs
.
scoreDocs
.
length
;
i
<
limit
&&
i
+
offset
<
docs
.
totalHits
&&
i
+
offset
<
len
;
i
++)
{
for
(
int
i
=
0
,
len
=
docs
.
scoreDocs
.
length
;
i
<
limit
&&
i
+
offset
<
docs
.
totalHits
&&
i
+
offset
<
len
;
i
++)
{
ScoreDoc
sd
=
docs
.
scoreDocs
[
i
+
offset
];
Document
doc
=
searcher
.
doc
(
sd
.
doc
);
float
score
=
sd
.
score
;
...
...
@@ -442,17 +441,14 @@ public class FullTextLucene extends FullText {
Session
session
=
(
Session
)
c
.
getSession
();
Parser
p
=
new
Parser
(
session
);
String
tab
=
q
.
substring
(
0
,
idx
);
ExpressionColumn
expr
=
(
ExpressionColumn
)
p
.
parseExpression
(
tab
);
ExpressionColumn
expr
=
(
ExpressionColumn
)
p
.
parseExpression
(
tab
);
String
schemaName
=
expr
.
getOriginalTableAliasName
();
String
tableName
=
expr
.
getColumnName
();
q
=
q
.
substring
(
idx
+
" WHERE "
.
length
());
Object
[][]
columnData
=
parseKey
(
conn
,
q
);
result
.
addRow
(
schemaName
,
tableName
,
columnData
[
0
],
columnData
[
1
],
score
);
result
.
addRow
(
schemaName
,
tableName
,
columnData
[
0
],
columnData
[
1
],
score
);
}
else
{
result
.
addRow
(
q
,
score
);
}
...
...
h2/src/main/org/h2/fulltext/FullTextSettings.java
浏览文件 @
9b4ca4a4
...
...
@@ -13,7 +13,6 @@ import java.sql.Statement;
import
java.util.Collections
;
import
java.util.Map
;
import
java.util.Set
;
import
org.h2.util.New
;
import
org.h2.util.SoftHashMap
;
...
...
@@ -69,7 +68,7 @@ final class FullTextSettings {
/**
* Clear set of ignored words
*/
public
void
clearInored
()
{
public
void
clearI
g
nored
()
{
synchronized
(
ignoreList
)
{
ignoreList
.
clear
();
}
...
...
@@ -274,7 +273,7 @@ final class FullTextSettings {
return
whitespaceChars
;
}
private
String
normalizeWord
(
String
word
)
{
private
static
String
normalizeWord
(
String
word
)
{
// TODO this is locale specific, document
return
word
.
toUpperCase
();
}
...
...
h2/src/main/org/h2/jdbc/JdbcConnection.java
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/main/org/h2/table/TableView.java
浏览文件 @
9b4ca4a4
...
...
@@ -81,7 +81,10 @@ public class TableView extends Table {
String
oldQuerySQL
=
this
.
querySQL
;
Column
[]
oldColumnTemplates
=
this
.
columnTemplates
;
boolean
oldRecursive
=
this
.
recursive
;
init
(
querySQL
,
null
,
newColumnTemplates
==
null
?
this
.
columnTemplates
:
newColumnTemplates
,
session
,
recursive
,
literalsChecked
);
init
(
querySQL
,
null
,
newColumnTemplates
==
null
?
this
.
columnTemplates
:
newColumnTemplates
,
session
,
recursive
,
literalsChecked
);
DbException
e
=
recompile
(
session
,
force
,
true
);
if
(
e
!=
null
)
{
init
(
oldQuerySQL
,
null
,
oldColumnTemplates
,
session
,
oldRecursive
,
literalsChecked
);
...
...
h2/src/main/org/h2/tools/CreateCluster.java
浏览文件 @
9b4ca4a4
...
...
@@ -5,22 +5,20 @@
*/
package
org
.
h2
.
tools
;
import
java.io.IOException
;
import
java.io.PipedReader
;
import
java.io.PipedWriter
;
import
java.sql.Connection
;
import
java.sql.DriverManager
;
import
java.sql.ResultSet
;
import
java.sql.SQLException
;
import
java.sql.Statement
;
import
org.h2.api.ErrorCode
;
import
org.h2.engine.Constants
;
import
org.h2.util.IOUtils
;
import
org.h2.util.JdbcUtils
;
import
org.h2.util.Tool
;
import
java.io.PipedReader
;
import
java.io.PipedWriter
;
import
java.io.IOException
;
import
java.sql.ResultSet
;
/**
* Creates a cluster from a standalone database.
* <br />
...
...
@@ -100,12 +98,12 @@ public class CreateCluster extends Tool {
process
(
urlSource
,
urlTarget
,
user
,
password
,
serverList
);
}
private
void
process
(
String
urlSource
,
String
urlTarget
,
private
static
void
process
(
String
urlSource
,
String
urlTarget
,
String
user
,
String
password
,
String
serverList
)
throws
SQLException
{
Connection
connSource
=
null
,
connTarget
=
null
;
Statement
statSource
=
null
,
statTarget
=
null
;
PipedReader
pipeReader
=
null
;
try
{
org
.
h2
.
Driver
.
load
();
...
...
@@ -146,19 +144,23 @@ public class CreateCluster extends Tool {
statSource
.
execute
(
"SET EXCLUSIVE 2"
);
pipeReader
=
new
PipedReader
();
try
{
// Pipe writer is used + closed in the inner class, in a separate thread (needs to be final).
// It should be initialized within try{} so an exception could be caught if creation fails.
// In that scenario, the the writer should be null and needs no closing,
// and the main goal is that finally{} should bring the source DB
// out of exclusive mode, and close the reader.
/*
* Pipe writer is used + closed in the inner class, in a
* separate thread (needs to be final). It should be initialized
* within try{} so an exception could be caught if creation
* fails. In that scenario, the the writer should be null and
* needs no closing, and the main goal is that finally{} should
* bring the source DB out of exclusive mode, and close the
* reader.
*/
final
PipedWriter
pipeWriter
=
new
PipedWriter
(
pipeReader
);
// Backup data from source database in script form.
// Start writing to pipe writer in separate thread.
final
ResultSet
rs
=
statSource
.
executeQuery
(
"SCRIPT"
);
// Delete the target database first.
connTarget
=
DriverManager
.
getConnection
(
urlTarget
+
";CLUSTER=''"
,
user
,
password
);
...
...
@@ -166,9 +168,10 @@ public class CreateCluster extends Tool {
statTarget
.
execute
(
"DROP ALL OBJECTS DELETE FILES"
);
connTarget
.
close
();
new
Thread
(
new
Runnable
(){
@Override
public
void
run
()
{
try
{
while
(
rs
.
next
())
{
...
...
@@ -184,7 +187,7 @@ public class CreateCluster extends Tool {
}
}
).
start
();
// Read data from pipe reader, restore on target.
connTarget
=
DriverManager
.
getConnection
(
urlTarget
,
user
,
password
);
RunScript
.
execute
(
connTarget
,
pipeReader
);
...
...
@@ -193,7 +196,7 @@ public class CreateCluster extends Tool {
// set the cluster to the serverList on both databases
statSource
.
executeUpdate
(
"SET CLUSTER '"
+
serverList
+
"'"
);
statTarget
.
executeUpdate
(
"SET CLUSTER '"
+
serverList
+
"'"
);
}
catch
(
IOException
ex
)
{
throw
new
SQLException
(
ex
);
}
finally
{
...
...
h2/src/main/org/h2/util/ToDateTokenizer.java
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/main/org/h2/value/Value.java
浏览文件 @
9b4ca4a4
...
...
@@ -568,7 +568,8 @@ public abstract class Value {
* @param precision the precision of the column to convert this value to.
* The special constant <code>-1</code> is used to indicate that
* the precision plays no role when converting the value
* @param column the column that contains the ENUM datatype enumerators, for dealing with ENUM conversions
* @param column the column that contains the ENUM datatype enumerators,
* for dealing with ENUM conversions
* @return the converted value
*/
public
Value
convertTo
(
int
targetType
,
int
precision
,
Mode
mode
,
Column
column
)
{
...
...
h2/src/test/org/h2/test/bench/TestScalability.java
浏览文件 @
9b4ca4a4
...
...
@@ -175,8 +175,8 @@ public class TestScalability implements Database.DatabaseTest {
// calls garbage collection
TestBase
.
getMemoryUsed
();
Database
db
=
dbs
.
get
(
i
);
System
.
out
.
println
(
"Testing the performance of "
+
db
.
getName
()
+
" ("
+
db
.
getThreadsCount
()
+
" threads)"
);
System
.
out
.
println
(
"Testing the performance of "
+
db
.
getName
()
+
" ("
+
db
.
getThreadsCount
()
+
" threads)"
);
db
.
startServer
();
Connection
conn
=
db
.
openNewConnection
();
DatabaseMetaData
meta
=
conn
.
getMetaData
();
...
...
h2/src/test/org/h2/test/db/TestMergeUsing.java
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/db/TestSetCollation.java
浏览文件 @
9b4ca4a4
...
...
@@ -168,7 +168,7 @@ public class TestSetCollation extends TestBase {
}
}
private
void
insertValues
(
Connection
con
,
String
[]
values
,
int
startId
)
throws
SQLException
{
private
static
void
insertValues
(
Connection
con
,
String
[]
values
,
int
startId
)
throws
SQLException
{
PreparedStatement
ps
=
con
.
prepareStatement
(
"INSERT INTO charsettable VALUES (?, ?)"
);
int
id
=
startId
;
for
(
String
value
:
values
)
{
...
...
@@ -179,7 +179,7 @@ public class TestSetCollation extends TestBase {
ps
.
close
();
}
private
List
<
String
>
loadTableValues
(
Connection
con
)
throws
SQLException
{
private
static
List
<
String
>
loadTableValues
(
Connection
con
)
throws
SQLException
{
List
<
String
>
results
=
new
ArrayList
<>();
Statement
statement
=
con
.
createStatement
();
ResultSet
resultSet
=
statement
.
executeQuery
(
"select testvalue from charsettable order by testvalue"
);
...
...
h2/src/test/org/h2/test/db/TestSynonymForTable.java
浏览文件 @
9b4ca4a4
...
...
@@ -5,15 +5,14 @@
*/
package
org
.
h2
.
test
.
db
;
import
org.h2.engine.Constants
;
import
org.h2.jdbc.JdbcSQLException
;
import
org.h2.test.TestBase
;
import
java.sql.Connection
;
import
java.sql.PreparedStatement
;
import
java.sql.ResultSet
;
import
java.sql.SQLException
;
import
java.sql.Statement
;
import
org.h2.engine.Constants
;
import
org.h2.jdbc.JdbcSQLException
;
import
org.h2.test.TestBase
;
/**
* Tests for table synonyms.
...
...
@@ -248,7 +247,7 @@ public class TestSynonymForTable extends TestBase {
conn
.
close
();
}
private
void
deleteFromSynonym
(
Connection
conn
,
int
id
)
throws
SQLException
{
private
static
void
deleteFromSynonym
(
Connection
conn
,
int
id
)
throws
SQLException
{
PreparedStatement
prep
=
conn
.
prepareStatement
(
"DELETE FROM testsynonym WHERE id = ?"
);
prep
.
setInt
(
1
,
id
);
...
...
@@ -307,21 +306,21 @@ public class TestSynonymForTable extends TestBase {
assertFalse
(
rs
.
next
());
}
private
void
insertIntoSynonym
(
Connection
conn
,
int
id
)
throws
SQLException
{
private
static
void
insertIntoSynonym
(
Connection
conn
,
int
id
)
throws
SQLException
{
PreparedStatement
prep
=
conn
.
prepareStatement
(
"INSERT INTO testsynonym VALUES(?)"
);
prep
.
setInt
(
1
,
id
);
prep
.
execute
();
}
private
void
insertIntoBackingTable
(
Connection
conn
,
int
id
)
throws
SQLException
{
private
static
void
insertIntoBackingTable
(
Connection
conn
,
int
id
)
throws
SQLException
{
PreparedStatement
prep
=
conn
.
prepareStatement
(
"INSERT INTO backingtable VALUES(?)"
);
prep
.
setInt
(
1
,
id
);
prep
.
execute
();
}
private
void
createTableWithSynonym
(
Connection
conn
)
throws
SQLException
{
private
static
void
createTableWithSynonym
(
Connection
conn
)
throws
SQLException
{
Statement
stat
=
conn
.
createStatement
();
stat
.
execute
(
"CREATE TABLE IF NOT EXISTS backingtable(id INT PRIMARY KEY)"
);
stat
.
execute
(
"CREATE OR REPLACE SYNONYM testsynonym FOR backingtable"
);
...
...
h2/src/test/org/h2/test/jdbc/TestCustomDataTypesHandler.java
浏览文件 @
9b4ca4a4
...
...
@@ -5,6 +5,15 @@
*/
package
org
.
h2
.
test
.
jdbc
;
import
java.io.Serializable
;
import
java.sql.Connection
;
import
java.sql.PreparedStatement
;
import
java.sql.ResultSet
;
import
java.sql.SQLException
;
import
java.sql.Statement
;
import
java.sql.Types
;
import
java.text.DecimalFormat
;
import
java.util.Locale
;
import
org.h2.api.CustomDataTypesHandler
;
import
org.h2.api.ErrorCode
;
import
org.h2.message.DbException
;
...
...
@@ -20,16 +29,6 @@ import org.h2.value.ValueDouble;
import
org.h2.value.ValueJavaObject
;
import
org.h2.value.ValueString
;
import
java.io.Serializable
;
import
java.sql.Connection
;
import
java.sql.PreparedStatement
;
import
java.sql.ResultSet
;
import
java.sql.SQLException
;
import
java.sql.Statement
;
import
java.sql.Types
;
import
java.text.DecimalFormat
;
import
java.util.Locale
;
/**
* Tests {@link CustomDataTypesHandler}.
*/
...
...
@@ -300,7 +299,7 @@ public class TestCustomDataTypesHandler extends TestBase {
}
/** Constructs data type instance for complex number type */
private
DataType
createComplex
()
{
private
static
DataType
createComplex
()
{
DataType
result
=
new
DataType
();
result
.
type
=
COMPLEX_DATA_TYPE_ID
;
result
.
name
=
COMPLEX_DATA_TYPE_NAME
;
...
...
h2/src/test/org/h2/test/scripts/TestScript.java
浏览文件 @
9b4ca4a4
...
...
@@ -115,7 +115,7 @@ public class TestScript extends TestBase {
for
(
String
s
:
new
String
[]
{
"array-contains"
,
"array-get"
,
"array-length"
,
"autocommit"
,
"cancel-session"
,
"casewhen"
,
"cast"
,
"coalesce"
,
"convert"
,
"csvread"
,
"csvwrite"
,
"currval"
,
"database-path"
,
"dat
e
base"
,
"decode"
,
"disk-space-used"
,
"database-path"
,
"dat
a
base"
,
"decode"
,
"disk-space-used"
,
"file-read"
,
"file-write"
,
"greatest"
,
"h2version"
,
"identity"
,
"ifnull"
,
"least"
,
"link-schema"
,
"lock-mode"
,
"lock-timeout"
,
"memory-free"
,
"memory-used"
,
"nextval"
,
"nullif"
,
"nvl2"
,
...
...
@@ -137,7 +137,8 @@ public class TestScript extends TestBase {
private
void
testScript
(
String
scriptFileName
)
throws
Exception
{
deleteDb
(
"script"
);
// Reset all the state in case there is anything left over from the previous file we processed.
// Reset all the state in case there is anything left over from the previous file
// we processed.
conn
=
null
;
stat
=
null
;
in
=
null
;
...
...
h2/src/test/org/h2/test/scripts/commands-dml-create-view.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
create
memory
table
test
(
id
int
primary
key
,
name
varchar
(
255
));
>
ok
...
...
h2/src/test/org/h2/test/scripts/commands-dml-script.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
CREATE
VIEW
TEST_VIEW
(
A
)
AS
SELECT
'a'
;
>
ok
...
...
h2/src/test/org/h2/test/scripts/datatypes/array.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/datatypes/bigint.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/datatypes/binary.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/datatypes/blob.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/datatypes/boolean.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/datatypes/char.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/datatypes/clob.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/datatypes/date.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/datatypes/decimal.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/datatypes/double.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/datatypes/enum.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
----------------
--- ENUM support
----------------
...
...
h2/src/test/org/h2/test/scripts/datatypes/geometry.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/datatypes/identity.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/datatypes/int.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/datatypes/other.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/datatypes/real.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/datatypes/smallint.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/datatypes/time.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/datatypes/timestamp-with-timezone.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/datatypes/timestamp.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/datatypes/tinyint.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/datatypes/uuid.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/datatypes/varchar-ignorecase.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/datatypes/varchar.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/functions/aggregate/avg.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/functions/aggregate/bit-and.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/functions/aggregate/bit-or.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/functions/aggregate/bool-and.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/functions/aggregate/bool-or.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/functions/aggregate/count.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/functions/aggregate/group-concat.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/functions/aggregate/max.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/functions/aggregate/min.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/functions/aggregate/selectivity.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/functions/aggregate/stddev-pop.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/functions/aggregate/stddev-samp.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/functions/aggregate/sum.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/functions/aggregate/var-pop.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/functions/aggregate/var-samp.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/functions/numeric/abs.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
create
memory
table
test
(
id
int
primary
key
,
name
varchar
(
255
));
>
ok
...
...
h2/src/test/org/h2/test/scripts/functions/numeric/acos.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
create
memory
table
test
(
id
int
primary
key
,
name
varchar
(
255
));
>
ok
...
...
h2/src/test/org/h2/test/scripts/functions/numeric/asin.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
create
memory
table
test
(
id
int
primary
key
,
name
varchar
(
255
));
>
ok
...
...
h2/src/test/org/h2/test/scripts/functions/numeric/atan.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
create
memory
table
test
(
id
int
primary
key
,
name
varchar
(
255
));
>
ok
...
...
h2/src/test/org/h2/test/scripts/functions/numeric/atan2.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
create
memory
table
test
(
id
int
primary
key
,
name
varchar
(
255
));
>
ok
...
...
h2/src/test/org/h2/test/scripts/functions/numeric/bitand.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
create
memory
table
test
(
id
int
primary
key
,
name
varchar
(
255
));
>
ok
...
...
h2/src/test/org/h2/test/scripts/functions/numeric/bitget.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/functions/numeric/bitor.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
create
memory
table
test
(
id
int
primary
key
,
name
varchar
(
255
));
>
ok
...
...
h2/src/test/org/h2/test/scripts/functions/numeric/bitxor.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
create
memory
table
test
(
id
int
primary
key
,
name
varchar
(
255
));
>
ok
...
...
h2/src/test/org/h2/test/scripts/functions/numeric/ceil.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
create
memory
table
test
(
id
int
primary
key
,
name
varchar
(
255
));
>
ok
...
...
h2/src/test/org/h2/test/scripts/functions/numeric/compress.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/functions/numeric/cos.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
create
memory
table
test
(
id
int
primary
key
,
name
varchar
(
255
));
>
ok
...
...
h2/src/test/org/h2/test/scripts/functions/numeric/cosh.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/functions/numeric/cot.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
create
memory
table
test
(
id
int
primary
key
,
name
varchar
(
255
));
>
ok
...
...
h2/src/test/org/h2/test/scripts/functions/numeric/decrypt.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
call
utf8tostring
(
decrypt
(
'AES'
,
'00000000000000000000000000000000'
,
'dbd42d55d4b923c4b03eba0396fac98e'
));
>
'Hello World Test'
>
------------------
...
...
h2/src/test/org/h2/test/scripts/functions/numeric/degrees.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
create
memory
table
test
(
id
int
primary
key
,
name
varchar
(
255
));
>
ok
...
...
h2/src/test/org/h2/test/scripts/functions/numeric/encrypt.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
call
encrypt
(
'AES'
,
'00000000000000000000000000000000'
,
stringtoutf8
(
'Hello World Test'
));
>
X
'dbd42d55d4b923c4b03eba0396fac98e'
>
-----------------------------------
...
...
h2/src/test/org/h2/test/scripts/functions/numeric/exp.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
create
memory
table
test
(
id
int
primary
key
,
name
varchar
(
255
));
>
ok
...
...
h2/src/test/org/h2/test/scripts/functions/numeric/expand.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/functions/numeric/floor.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
create
memory
table
test
(
id
int
primary
key
,
name
varchar
(
255
));
>
ok
...
...
h2/src/test/org/h2/test/scripts/functions/numeric/hash.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
call
hash
(
'SHA256'
,
stringtoutf8
(
'Hello'
),
1
);
>
X
'185f8db32271fe25f561a6fc938b2e264306ec304eda518007d1764826381969'
>
-------------------------------------------------------------------
...
...
h2/src/test/org/h2/test/scripts/functions/numeric/length.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
create
memory
table
test
(
id
int
primary
key
,
name
varchar
(
255
));
>
ok
...
...
h2/src/test/org/h2/test/scripts/functions/numeric/log.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
create
memory
table
test
(
id
int
primary
key
,
name
varchar
(
255
));
>
ok
...
...
h2/src/test/org/h2/test/scripts/functions/numeric/mod.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
create
memory
table
test
(
id
int
primary
key
,
name
varchar
(
255
));
>
ok
...
...
h2/src/test/org/h2/test/scripts/functions/numeric/pi.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
create
memory
table
test
(
id
int
primary
key
,
name
varchar
(
255
));
>
ok
...
...
h2/src/test/org/h2/test/scripts/functions/numeric/power.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
create
memory
table
test
(
id
int
primary
key
,
name
varchar
(
255
));
>
ok
...
...
h2/src/test/org/h2/test/scripts/functions/numeric/radians.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
create
memory
table
test
(
id
int
primary
key
,
name
varchar
(
255
));
>
ok
...
...
h2/src/test/org/h2/test/scripts/functions/numeric/rand.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
create
memory
table
test
(
id
int
primary
key
,
name
varchar
(
255
));
>
ok
...
...
h2/src/test/org/h2/test/scripts/functions/numeric/random-uuid.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/functions/numeric/round.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
create
memory
table
test
(
id
int
primary
key
,
name
varchar
(
255
));
>
ok
...
...
h2/src/test/org/h2/test/scripts/functions/numeric/roundmagic.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/functions/numeric/secure-rand.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/functions/numeric/sign.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
create
memory
table
test
(
id
int
primary
key
,
name
varchar
(
255
));
>
ok
...
...
h2/src/test/org/h2/test/scripts/functions/numeric/sin.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
create
memory
table
test
(
id
int
primary
key
,
name
varchar
(
255
));
>
ok
...
...
h2/src/test/org/h2/test/scripts/functions/numeric/sinh.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/functions/numeric/sqrt.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
create
memory
table
test
(
id
int
primary
key
,
name
varchar
(
255
));
>
ok
...
...
h2/src/test/org/h2/test/scripts/functions/numeric/tan.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
create
memory
table
test
(
id
int
primary
key
,
name
varchar
(
255
));
>
ok
...
...
h2/src/test/org/h2/test/scripts/functions/numeric/tanh.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/functions/numeric/trunc.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
create
memory
table
test
(
id
int
primary
key
,
name
varchar
(
255
));
>
ok
...
...
h2/src/test/org/h2/test/scripts/functions/numeric/truncate.sql
浏览文件 @
9b4ca4a4
-- Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
h2/src/test/org/h2/test/scripts/functions/numeric/zero.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/ascii.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/bit-length.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/char.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/concat-ws.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/concat.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/difference.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/hextoraw.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/insert.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/instr.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/left.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/length.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/locate.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/lower.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/lpad.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/ltrim.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/octet-length.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/position.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/rawtohex.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/regex-replace.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/regexp-like.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/repeat.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/replace.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/right.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/rpad.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/rtrim.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/soundex.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/space.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/stringdecode.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/stringencode.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/stringtoutf8.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/substring.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/to-char.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/translate.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/trim.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/upper.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/utf8tostring.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/xmlattr.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/xmlcdata.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/xmlcomment.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/xmlnode.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/xmlstartdoc.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/xmltext.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/array-contains.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/array-get.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/array-length.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/autocommit.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/cancel-session.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/casewhen.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/cast.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/coalesce.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/convert.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/csvread.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/csvwrite.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/currval.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/database-path.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/dat
e
base.sql
→
h2/src/test/org/h2/test/scripts/functions/system/dat
a
base.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/decode.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/disk-space-used.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/file-read.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/file-write.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/greatest.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/h2version.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/identity.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/ifnull.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/least.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/link-schema.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/lock-mode.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/lock-timeout.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/memory-free.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/memory-used.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/nextval.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/nullif.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/nvl2.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/readonly.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/rownum.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/schema.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/scope-identity.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/session-id.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/set.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/table.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/transaction-id.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/truncate-value.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/user.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/current-time.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/current_date.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/current_timestamp.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/dateadd.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/datediff.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/day-of-month.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/day-of-week.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/day-of-year.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/dayname.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/extract.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/formatdatetime.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/hour.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/minute.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/month.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/monthname.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/parsedatetime.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/quarter.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/second.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/week.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/year.sql
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/package.html
0 → 100644
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/test/org/h2/test/store/TestConcurrentLinkedList.java
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
h2/src/tools/org/h2/build/doc/dictionary.txt
浏览文件 @
9b4ca4a4
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论