Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
33d135d2
提交
33d135d2
authored
10月 17, 2017
作者:
Noel Grandin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
javadoc and formatting
上级
d7adee0b
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
199 个修改的文件
包含
1500 行增加
和
626 行删除
+1500
-626
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
+53
-52
Session.java
h2/src/main/org/h2/engine/Session.java
+2
-2
FullText.java
h2/src/main/org/h2/fulltext/FullText.java
+4
-4
FullTextLucene.java
h2/src/main/org/h2/fulltext/FullTextLucene.java
+20
-24
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
+20
-18
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
TestScript.java
h2/src/test/org/h2/test/scripts/TestScript.java
+2
-1
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
没有找到文件。
h2/src/docsrc/help/help.csv
浏览文件 @
33d135d2
...
...
@@ -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
浏览文件 @
33d135d2
...
...
@@ -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
浏览文件 @
33d135d2
...
...
@@ -1137,9 +1137,13 @@ public class Parser {
String
[]
querySQLOutput
=
new
String
[]{
null
};
List
<
Column
>
columnTemplateList
=
createQueryColumnTemplateList
(
null
,
command
.
getQuery
(),
querySQLOutput
);
TableView
temporarySourceTableView
=
createTemporarySessionView
(
command
.
getQueryAlias
(),
querySQLOutput
[
0
],
columnTemplateList
,
false
/*no recursion*/
,
false
/* do not add to session*/
);
TableFilter
sourceTableFilter
=
new
TableFilter
(
session
,
temporarySourceTableView
,
command
.
getQueryAlias
(),
rightsChecked
,
(
Select
)
command
.
getQuery
(),
0
,
null
);
TableView
temporarySourceTableView
=
createTemporarySessionView
(
command
.
getQueryAlias
(),
querySQLOutput
[
0
],
columnTemplateList
,
false
/* no recursion */
,
false
/* do not add to session */
);
TableFilter
sourceTableFilter
=
new
TableFilter
(
session
,
temporarySourceTableView
,
command
.
getQueryAlias
(),
rightsChecked
,
(
Select
)
command
.
getQuery
(),
0
,
null
);
command
.
setSourceTableFilter
(
sourceTableFilter
);
}
else
{
...
...
@@ -1193,31 +1197,18 @@ public class Parser {
setSQL
(
command
,
"MERGE"
,
start
);
// build and prepare the targetMatchQuery ready to test each rows existence in the target table (using source row to match)
StringBuffer
targetMatchQuerySQL
=
new
StringBuffer
(
"SELECT _ROWID_ FROM "
+
command
.
getTargetTable
().
getName
());
if
(
command
.
getTargetTableFilter
().
getTableAlias
()!=
null
){
targetMatchQuerySQL
.
append
(
" AS "
+
command
.
getTargetTableFilter
().
getTableAlias
());
}
targetMatchQuerySQL
.
append
(
" WHERE "
+
command
.
getOnCondition
().
getSQL
());
// Select preparedTargetMatchQuery = new Select(session);
// preparedTargetMatchQuery.addTableFilter(command.getTargetTableFilter(), true/*isTop*/);
// preparedTargetMatchQuery.addTableFilter(command.getSourceTableFilter(), false/*isTop - not top table scan*/);
// preparedTargetMatchQuery.setSQL(targetMatchQuerySQL.toString());
// ArrayList<Expression> selectList = New.arrayList();
// //Database db = session == null ? null : session.getDatabase();
// selectList.add(new ExpressionColumn(session.getDatabase(), command.getTargetTableFilter().getTable().getRowIdColumn()));
// preparedTargetMatchQuery.setExpressions(selectList);
// preparedTargetMatchQuery.init();
command
.
setTargetMatchQuery
((
Select
)
parse
(
targetMatchQuerySQL
.
toString
()));
// Select command = new Select(session);
// currentSelect = command;
// TableFilter filter = parseValuesTable(0);
// ArrayList<Expression> list = New.arrayList();
// list.add(new Wildcard(null, null));
// command.setExpressions(list);
// command.addTableFilter(filter, true);
// command.init();
// build and prepare the targetMatchQuery ready to test each rows
// existence in the target table (using source row to match)
StringBuffer
targetMatchQuerySQL
=
new
StringBuffer
(
"SELECT _ROWID_ FROM "
+
command
.
getTargetTable
().
getName
());
if
(
command
.
getTargetTableFilter
().
getTableAlias
()
!=
null
)
{
targetMatchQuerySQL
.
append
(
" AS "
+
command
.
getTargetTableFilter
().
getTableAlias
());
}
targetMatchQuerySQL
.
append
(
" WHERE "
+
command
.
getOnCondition
().
getSQL
());
command
.
setTargetMatchQuery
(
(
Select
)
parse
(
targetMatchQuerySQL
.
toString
()));
return
command
;
}
...
...
@@ -3422,7 +3413,8 @@ public class Parser {
return
s
;
}
// TODO: why does this function allow defaultSchemaName=null - which resets the parser schemaName for everyone ?
// TODO: why does this function allow defaultSchemaName=null - which resets
// the parser schemaName for everyone ?
private
String
readIdentifierWithSchema
(
String
defaultSchemaName
)
{
if
(
currentTokenType
!=
IDENTIFIER
)
{
throw
DbException
.
getSyntaxError
(
sqlCommand
,
parseIndex
,
...
...
@@ -5251,39 +5243,48 @@ public class Parser {
}
finally
{
session
.
removeLocalTempTable
(
recursiveTable
);
}
TableView
view
=
createTemporarySessionView
(
tempViewName
,
querySQLOutput
[
0
],
columnTemplateList
,
true
/*allowRecursiveQueryDetection*/
,
true
);
TableView
view
=
createTemporarySessionView
(
tempViewName
,
querySQLOutput
[
0
],
columnTemplateList
,
true
/* allowRecursiveQueryDetection */
,
true
);
return
view
;
}
/**
* Creates a list of column templates from a query (usually from WITH query, but could be any query)
* @param cols - an optional list of column names (can be specified by WITH clause overriding usual select names)
* Creates a list of column templates from a query (usually from WITH query,
* but could be any query)
*
* @param cols - an optional list of column names (can be specified by WITH
* clause overriding usual select names)
* @param theQuery - the query object we want the column list for
* @param querySQLOutput - array of length 1 to receive extra 'output' field in addition to return value
* - containing the SQL query of the Query object
* @param querySQLOutput - array of length 1 to receive extra 'output' field
* in addition to return value - containing the SQL query of the
* Query object
* @return a list of column object returned by withQuery
*/
private
List
<
Column
>
createQueryColumnTemplateList
(
String
[]
cols
,
Query
theQuery
,
String
[]
querySQLOutput
)
{
private
static
List
<
Column
>
createQueryColumnTemplateList
(
String
[]
cols
,
Query
theQuery
,
String
[]
querySQLOutput
)
{
List
<
Column
>
columnTemplateList
=
new
ArrayList
<
Column
>();
theQuery
.
prepare
();
// array of length 1 to receive extra 'output' field in addition to return value
// array of length 1 to receive extra 'output' field in addition to
// return value
querySQLOutput
[
0
]
=
StringUtils
.
cache
(
theQuery
.
getPlanSQL
());
ArrayList
<
Expression
>
withExpressions
=
theQuery
.
getExpressions
();
for
(
int
i
=
0
;
i
<
withExpressions
.
size
();
++
i
)
{
Expression
columnExp
=
withExpressions
.
get
(
i
);
// use the passed in column name if supplied, otherwise use alias (if found) otherwise use column name
// derived from column expression
/*
* Use the passed in column name if supplied, otherwise use alias
* (if found) otherwise use column name derived from column
* expression.
*/
String
columnName
;
if
(
cols
!=
null
){
if
(
cols
!=
null
)
{
columnName
=
cols
[
i
];
}
else
if
(
columnExp
.
getAlias
()
!=
null
)
{
}
else
if
(
columnExp
.
getAlias
()
!=
null
)
{
columnName
=
columnExp
.
getAlias
();
}
else
{
columnName
=
columnExp
.
getColumnName
();
}
else
{
columnName
=
columnExp
.
getColumnName
();
}
columnTemplateList
.
add
(
new
Column
(
columnName
,
columnExp
.
getType
()));
columnTemplateList
.
add
(
new
Column
(
columnName
,
columnExp
.
getType
()));
}
return
columnTemplateList
;
}
...
...
@@ -6114,16 +6115,16 @@ public class Parser {
readIf
(
"COLUMN"
);
String
columnName
=
readColumnIdentifier
();
if
((
isToken
(
"NOT"
)
||
isToken
(
"NULL"
)))
{
AlterTableAlterColumn
command
=
new
AlterTableAlterColumn
(
session
,
schema
);
command
.
setTableName
(
tableName
);
command
.
setIfTableExists
(
ifTableExists
);
Column
column
=
columnIfTableExists
(
schema
,
tableName
,
columnName
,
ifTableExists
);
command
.
setOldColumn
(
column
);
AlterTableAlterColumn
command
=
new
AlterTableAlterColumn
(
session
,
schema
);
command
.
setTableName
(
tableName
);
command
.
setIfTableExists
(
ifTableExists
);
Column
column
=
columnIfTableExists
(
schema
,
tableName
,
columnName
,
ifTableExists
);
command
.
setOldColumn
(
column
);
if
(
readIf
(
"NOT"
))
{
command
.
setType
(
CommandInterface
.
ALTER_TABLE_ALTER_COLUMN_NOT_NULL
);
}
else
{
read
(
"NULL"
);
read
(
"NULL"
);
command
.
setType
(
CommandInterface
.
ALTER_TABLE_ALTER_COLUMN_NULL
);
}
return
command
;
...
...
h2/src/main/org/h2/engine/Session.java
浏览文件 @
33d135d2
...
...
@@ -535,8 +535,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
浏览文件 @
33d135d2
...
...
@@ -750,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
);
}
...
...
@@ -792,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
())
{
...
...
h2/src/main/org/h2/fulltext/FullTextLucene.java
浏览文件 @
33d135d2
...
...
@@ -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/jdbc/JdbcConnection.java
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/main/org/h2/table/TableView.java
浏览文件 @
33d135d2
...
...
@@ -80,7 +80,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
浏览文件 @
33d135d2
...
...
@@ -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 />
...
...
@@ -105,7 +103,7 @@ public class CreateCluster extends Tool {
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,7 +168,7 @@ public class CreateCluster extends Tool {
statTarget
.
execute
(
"DROP ALL OBJECTS DELETE FILES"
);
connTarget
.
close
();
new
Thread
(
new
Runnable
(){
public
void
run
()
{
...
...
@@ -184,7 +186,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 +195,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
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/main/org/h2/value/Value.java
浏览文件 @
33d135d2
...
...
@@ -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
浏览文件 @
33d135d2
...
...
@@ -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/scripts/TestScript.java
浏览文件 @
33d135d2
...
...
@@ -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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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
浏览文件 @
33d135d2
-- 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/string/ascii.sql
浏览文件 @
33d135d2
-- 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/string/bit-length.sql
浏览文件 @
33d135d2
-- 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/string/char.sql
浏览文件 @
33d135d2
-- 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/string/concat-ws.sql
浏览文件 @
33d135d2
-- 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/string/concat.sql
浏览文件 @
33d135d2
-- 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/string/difference.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/hextoraw.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/insert.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/instr.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/left.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/length.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/locate.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/lower.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/lpad.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/ltrim.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/octet-length.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/position.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/rawtohex.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/regex-replace.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/regexp-like.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/repeat.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/replace.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/right.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/rpad.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/rtrim.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/soundex.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/space.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/stringdecode.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/stringencode.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/stringtoutf8.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/substring.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/to-char.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/translate.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/trim.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/upper.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/utf8tostring.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/xmlattr.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/xmlcdata.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/xmlcomment.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/xmlnode.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/xmlstartdoc.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/string/xmltext.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/array-contains.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/array-get.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/array-length.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/autocommit.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/cancel-session.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/casewhen.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/cast.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/coalesce.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/convert.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/csvread.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/csvwrite.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/currval.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/database-path.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/database.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/decode.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/disk-space-used.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/file-read.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/file-write.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/greatest.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/h2version.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/identity.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/ifnull.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/least.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/link-schema.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/lock-mode.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/lock-timeout.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/memory-free.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/memory-used.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/nextval.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/nullif.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/nvl2.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/readonly.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/rownum.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/schema.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/scope-identity.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/session-id.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/set.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/table.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/transaction-id.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/truncate-value.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/system/user.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/current-time.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/current_date.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/current_timestamp.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/dateadd.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/datediff.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/day-of-month.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/day-of-week.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/day-of-year.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/dayname.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/extract.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/formatdatetime.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/hour.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/minute.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/month.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/monthname.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/parsedatetime.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/quarter.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/second.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/week.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/functions/timeanddate/year.sql
浏览文件 @
33d135d2
差异被折叠。
点击展开。
h2/src/test/org/h2/test/scripts/package.html
0 → 100644
浏览文件 @
33d135d2
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论