Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
19750d57
Unverified
提交
19750d57
authored
1月 09, 2018
作者:
Prashant Bhat
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Use StringBuilder instead of StringBuffer
上级
a318cf11
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
7 行增加
和
7 行删除
+7
-7
Parser.java
h2/src/main/org/h2/command/Parser.java
+1
-1
TableFilter.java
h2/src/main/org/h2/table/TableFilter.java
+1
-1
OsgiDataSourceFactory.java
h2/src/main/org/h2/util/OsgiDataSourceFactory.java
+1
-1
TestGeneralCommonTableQueries.java
...rc/test/org/h2/test/db/TestGeneralCommonTableQueries.java
+1
-1
TestMergeUsing.java
h2/src/test/org/h2/test/db/TestMergeUsing.java
+2
-2
Statement.java
h2/src/tools/org/h2/java/Statement.java
+1
-1
没有找到文件。
h2/src/main/org/h2/command/Parser.java
浏览文件 @
19750d57
...
@@ -1201,7 +1201,7 @@ public class Parser {
...
@@ -1201,7 +1201,7 @@ public class Parser {
// build and prepare the targetMatchQuery ready to test each rows
// build and prepare the targetMatchQuery ready to test each rows
// existence in the target table (using source row to match)
// existence in the target table (using source row to match)
StringBu
ffer
targetMatchQuerySQL
=
new
StringBuff
er
(
StringBu
ilder
targetMatchQuerySQL
=
new
StringBuild
er
(
"SELECT _ROWID_ FROM "
+
command
.
getTargetTable
().
getName
());
"SELECT _ROWID_ FROM "
+
command
.
getTargetTable
().
getName
());
if
(
command
.
getTargetTableFilter
().
getTableAlias
()
!=
null
)
{
if
(
command
.
getTargetTableFilter
().
getTableAlias
()
!=
null
)
{
targetMatchQuerySQL
.
append
(
targetMatchQuerySQL
.
append
(
...
...
h2/src/main/org/h2/table/TableFilter.java
浏览文件 @
19750d57
...
@@ -788,7 +788,7 @@ public class TableFilter implements ColumnResolver {
...
@@ -788,7 +788,7 @@ public class TableFilter implements ColumnResolver {
}
}
}
}
if
(
nestedJoin
!=
null
)
{
if
(
nestedJoin
!=
null
)
{
StringBu
ffer
buffNested
=
new
StringBuff
er
();
StringBu
ilder
buffNested
=
new
StringBuild
er
();
TableFilter
n
=
nestedJoin
;
TableFilter
n
=
nestedJoin
;
do
{
do
{
buffNested
.
append
(
n
.
getPlanSQL
(
n
!=
nestedJoin
));
buffNested
.
append
(
n
.
getPlanSQL
(
n
!=
nestedJoin
));
...
...
h2/src/main/org/h2/util/OsgiDataSourceFactory.java
浏览文件 @
19750d57
...
@@ -197,7 +197,7 @@ public class OsgiDataSourceFactory implements DataSourceFactory {
...
@@ -197,7 +197,7 @@ public class OsgiDataSourceFactory implements DataSourceFactory {
}
}
// Setting URL
// Setting URL
StringBu
ffer
connectionUrl
=
new
StringBuff
er
();
StringBu
ilder
connectionUrl
=
new
StringBuild
er
();
if
(
p
.
containsKey
(
DataSourceFactory
.
JDBC_URL
))
{
if
(
p
.
containsKey
(
DataSourceFactory
.
JDBC_URL
))
{
// Use URL if specified
// Use URL if specified
connectionUrl
.
append
(
p
.
remove
(
DataSourceFactory
.
JDBC_URL
));
connectionUrl
.
append
(
p
.
remove
(
DataSourceFactory
.
JDBC_URL
));
...
...
h2/src/test/org/h2/test/db/TestGeneralCommonTableQueries.java
浏览文件 @
19750d57
...
@@ -548,7 +548,7 @@ public class TestGeneralCommonTableQueries extends TestBase {
...
@@ -548,7 +548,7 @@ public class TestGeneralCommonTableQueries extends TestBase {
int
rowNdx
=
0
;
int
rowNdx
=
0
;
while
(
rs
.
next
())
{
while
(
rs
.
next
())
{
StringBu
ffer
buf
=
new
StringBuff
er
();
StringBu
ilder
buf
=
new
StringBuild
er
();
for
(
int
columnIndex
=
1
;
columnIndex
<=
rs
.
getMetaData
().
getColumnCount
();
columnIndex
++){
for
(
int
columnIndex
=
1
;
columnIndex
<=
rs
.
getMetaData
().
getColumnCount
();
columnIndex
++){
buf
.
append
(
"|"
+
rs
.
getString
(
columnIndex
));
buf
.
append
(
"|"
+
rs
.
getString
(
columnIndex
));
}
}
...
...
h2/src/test/org/h2/test/db/TestMergeUsing.java
浏览文件 @
19750d57
...
@@ -305,7 +305,7 @@ public class TestMergeUsing extends TestBase implements Trigger {
...
@@ -305,7 +305,7 @@ public class TestMergeUsing extends TestBase implements Trigger {
+
expectedResultsSQL
+
" )"
);
+
expectedResultsSQL
+
" )"
);
int
rowCount
=
0
;
int
rowCount
=
0
;
StringBu
ffer
diffBuffer
=
new
StringBuff
er
(
""
);
StringBu
ilder
diffBuffer
=
new
StringBuild
er
(
""
);
while
(
rs
.
next
())
{
while
(
rs
.
next
())
{
rowCount
++;
rowCount
++;
diffBuffer
.
append
(
"|"
);
diffBuffer
.
append
(
"|"
);
...
@@ -401,7 +401,7 @@ public class TestMergeUsing extends TestBase implements Trigger {
...
@@ -401,7 +401,7 @@ public class TestMergeUsing extends TestBase implements Trigger {
}
}
private
String
getCreateTriggerSQL
()
{
private
String
getCreateTriggerSQL
()
{
StringBu
ffer
buf
=
new
StringBuff
er
();
StringBu
ilder
buf
=
new
StringBuild
er
();
buf
.
append
(
"CREATE TRIGGER INS_BEFORE "
+
"BEFORE INSERT ON PARENT "
buf
.
append
(
"CREATE TRIGGER INS_BEFORE "
+
"BEFORE INSERT ON PARENT "
+
"FOR EACH ROW NOWAIT CALL \""
+
getClass
().
getName
()
+
"\";"
);
+
"FOR EACH ROW NOWAIT CALL \""
+
getClass
().
getName
()
+
"\";"
);
buf
.
append
(
"CREATE TRIGGER UPD_BEFORE "
+
"BEFORE UPDATE ON PARENT "
buf
.
append
(
"CREATE TRIGGER UPD_BEFORE "
+
"BEFORE UPDATE ON PARENT "
...
...
h2/src/tools/org/h2/java/Statement.java
浏览文件 @
19750d57
...
@@ -344,7 +344,7 @@ class ForStatement extends StatementBase {
...
@@ -344,7 +344,7 @@ class ForStatement extends StatementBase {
@Override
@Override
public
String
asString
()
{
public
String
asString
()
{
StringBu
ffer
buff
=
new
StringBuff
er
();
StringBu
ilder
buff
=
new
StringBuild
er
();
buff
.
append
(
"for ("
);
buff
.
append
(
"for ("
);
if
(
iterableType
!=
null
)
{
if
(
iterableType
!=
null
)
{
Type
it
=
iterable
.
getType
();
Type
it
=
iterable
.
getType
();
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论