Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
f81f9ad2
提交
f81f9ad2
authored
3月 15, 2018
作者:
Jacek Ławrynowicz
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cleanup - redundant new for constant array creation
上级
0764b47f
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
9 行增加
和
9 行删除
+9
-9
Parser.java
h2/src/main/org/h2/command/Parser.java
+2
-2
TransactionStore.java
h2/src/main/org/h2/mvstore/db/TransactionStore.java
+1
-1
LobStorageMap.java
h2/src/main/org/h2/store/LobStorageMap.java
+4
-4
TableView.java
h2/src/main/org/h2/table/TableView.java
+1
-1
SourceCompiler.java
h2/src/main/org/h2/util/SourceCompiler.java
+1
-1
没有找到文件。
h2/src/main/org/h2/command/Parser.java
浏览文件 @
f81f9ad2
...
@@ -1136,7 +1136,7 @@ public class Parser {
...
@@ -1136,7 +1136,7 @@ public class Parser {
}
}
command
.
setQueryAlias
(
readFromAlias
(
null
,
Collections
.
singletonList
(
"ON"
)));
command
.
setQueryAlias
(
readFromAlias
(
null
,
Collections
.
singletonList
(
"ON"
)));
String
[]
querySQLOutput
=
new
String
[]
{
null
};
String
[]
querySQLOutput
=
{
null
};
List
<
Column
>
columnTemplateList
=
TableView
.
createQueryColumnTemplateList
(
null
,
command
.
getQuery
(),
List
<
Column
>
columnTemplateList
=
TableView
.
createQueryColumnTemplateList
(
null
,
command
.
getQuery
(),
querySQLOutput
);
querySQLOutput
);
TableView
temporarySourceTableView
=
createCTEView
(
TableView
temporarySourceTableView
=
createCTEView
(
...
@@ -5252,7 +5252,7 @@ public class Parser {
...
@@ -5252,7 +5252,7 @@ public class Parser {
recursiveTable
=
TableView
.
createShadowTableForRecursiveTableExpression
(
recursiveTable
=
TableView
.
createShadowTableForRecursiveTableExpression
(
isPersistent
,
session
,
cteViewName
,
schema
,
columns
,
database
);
isPersistent
,
session
,
cteViewName
,
schema
,
columns
,
database
);
List
<
Column
>
columnTemplateList
;
List
<
Column
>
columnTemplateList
;
String
[]
querySQLOutput
=
new
String
[]
{
null
};
String
[]
querySQLOutput
=
{
null
};
try
{
try
{
read
(
"AS"
);
read
(
"AS"
);
read
(
"("
);
read
(
"("
);
...
...
h2/src/main/org/h2/mvstore/db/TransactionStore.java
浏览文件 @
f81f9ad2
...
@@ -280,7 +280,7 @@ public class TransactionStore {
...
@@ -280,7 +280,7 @@ public class TransactionStore {
void
log
(
Transaction
t
,
long
logId
,
int
mapId
,
void
log
(
Transaction
t
,
long
logId
,
int
mapId
,
Object
key
,
Object
oldValue
)
{
Object
key
,
Object
oldValue
)
{
Long
undoKey
=
getOperationId
(
t
.
getId
(),
logId
);
Long
undoKey
=
getOperationId
(
t
.
getId
(),
logId
);
Object
[]
log
=
new
Object
[]
{
mapId
,
key
,
oldValue
};
Object
[]
log
=
{
mapId
,
key
,
oldValue
};
rwLock
.
writeLock
().
lock
();
rwLock
.
writeLock
().
lock
();
try
{
try
{
if
(
logId
==
0
)
{
if
(
logId
==
0
)
{
...
...
h2/src/main/org/h2/store/LobStorageMap.java
浏览文件 @
f81f9ad2
...
@@ -217,9 +217,9 @@ public class LobStorageMap implements LobStorageInterface {
...
@@ -217,9 +217,9 @@ public class LobStorageMap implements LobStorageInterface {
long
lobId
=
generateLobId
();
long
lobId
=
generateLobId
();
long
length
=
streamStore
.
length
(
streamStoreId
);
long
length
=
streamStore
.
length
(
streamStoreId
);
int
tableId
=
LobStorageFrontend
.
TABLE_TEMP
;
int
tableId
=
LobStorageFrontend
.
TABLE_TEMP
;
Object
[]
value
=
new
Object
[]
{
streamStoreId
,
tableId
,
length
,
0
};
Object
[]
value
=
{
streamStoreId
,
tableId
,
length
,
0
};
lobMap
.
put
(
lobId
,
value
);
lobMap
.
put
(
lobId
,
value
);
Object
[]
key
=
new
Object
[]
{
streamStoreId
,
lobId
};
Object
[]
key
=
{
streamStoreId
,
lobId
};
refMap
.
put
(
key
,
Boolean
.
TRUE
);
refMap
.
put
(
key
,
Boolean
.
TRUE
);
ValueLobDb
lob
=
ValueLobDb
.
create
(
ValueLobDb
lob
=
ValueLobDb
.
create
(
type
,
database
,
tableId
,
lobId
,
null
,
length
);
type
,
database
,
tableId
,
lobId
,
null
,
length
);
...
@@ -259,7 +259,7 @@ public class LobStorageMap implements LobStorageInterface {
...
@@ -259,7 +259,7 @@ public class LobStorageMap implements LobStorageInterface {
long
lobId
=
generateLobId
();
long
lobId
=
generateLobId
();
value
[
1
]
=
tableId
;
value
[
1
]
=
tableId
;
lobMap
.
put
(
lobId
,
value
);
lobMap
.
put
(
lobId
,
value
);
Object
[]
key
=
new
Object
[]
{
streamStoreId
,
lobId
};
Object
[]
key
=
{
streamStoreId
,
lobId
};
refMap
.
put
(
key
,
Boolean
.
TRUE
);
refMap
.
put
(
key
,
Boolean
.
TRUE
);
ValueLobDb
lob
=
ValueLobDb
.
create
(
ValueLobDb
lob
=
ValueLobDb
.
create
(
type
,
database
,
tableId
,
lobId
,
null
,
length
);
type
,
database
,
tableId
,
lobId
,
null
,
length
);
...
@@ -332,7 +332,7 @@ public class LobStorageMap implements LobStorageInterface {
...
@@ -332,7 +332,7 @@ public class LobStorageMap implements LobStorageInterface {
return
;
return
;
}
}
byte
[]
streamStoreId
=
(
byte
[])
value
[
0
];
byte
[]
streamStoreId
=
(
byte
[])
value
[
0
];
Object
[]
key
=
new
Object
[]
{
streamStoreId
,
lobId
};
Object
[]
key
=
{
streamStoreId
,
lobId
};
refMap
.
remove
(
key
);
refMap
.
remove
(
key
);
// check if there are more entries for this streamStoreId
// check if there are more entries for this streamStoreId
key
=
new
Object
[]
{
streamStoreId
,
0L
};
key
=
new
Object
[]
{
streamStoreId
,
0L
};
...
...
h2/src/main/org/h2/table/TableView.java
浏览文件 @
f81f9ad2
...
@@ -732,7 +732,7 @@ public class TableView extends Table {
...
@@ -732,7 +732,7 @@ public class TableView extends Table {
schema
,
Arrays
.
asList
(
columnTemplates
),
db
);
schema
,
Arrays
.
asList
(
columnTemplates
),
db
);
List
<
Column
>
columnTemplateList
;
List
<
Column
>
columnTemplateList
;
String
[]
querySQLOutput
=
new
String
[]
{
null
};
String
[]
querySQLOutput
=
{
null
};
ArrayList
<
String
>
columnNames
=
new
ArrayList
<>();
ArrayList
<
String
>
columnNames
=
new
ArrayList
<>();
for
(
Column
columnTemplate:
columnTemplates
)
{
for
(
Column
columnTemplate:
columnTemplates
)
{
columnNames
.
add
(
columnTemplate
.
getName
());
columnNames
.
add
(
columnTemplate
.
getName
());
...
...
h2/src/main/org/h2/util/SourceCompiler.java
浏览文件 @
f81f9ad2
...
@@ -459,7 +459,7 @@ public class SourceCompiler {
...
@@ -459,7 +459,7 @@ public class SourceCompiler {
Object
importCustomizer
=
Utils
.
newInstance
(
Object
importCustomizer
=
Utils
.
newInstance
(
"org.codehaus.groovy.control.customizers.ImportCustomizer"
);
"org.codehaus.groovy.control.customizers.ImportCustomizer"
);
// Call the method ImportCustomizer.addImports(String[])
// Call the method ImportCustomizer.addImports(String[])
String
[]
importsArray
=
new
String
[]
{
String
[]
importsArray
=
{
"java.sql.Connection"
,
"java.sql.Connection"
,
"java.sql.Types"
,
"java.sql.Types"
,
"java.sql.ResultSet"
,
"java.sql.ResultSet"
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论