Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
suliangchun
dbeaver
提交
d624ab0b
D
dbeaver
项目概览
suliangchun
/
dbeaver
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dbeaver
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d624ab0b
编写于
11月 29, 2016
作者:
S
Serge Rider
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/devel' into devel
上级
5bd728d9
e267ec0c
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
13 addition
and
5 deletion
+13
-5
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/runtime/sql/SQLQueryJob.java
...r.core/src/org/jkiss/dbeaver/runtime/sql/SQLQueryJob.java
+1
-1
plugins/org.jkiss.dbeaver.model/src/org/jkiss/dbeaver/model/exec/DBCStatementType.java
...el/src/org/jkiss/dbeaver/model/exec/DBCStatementType.java
+3
-3
plugins/org.jkiss.dbeaver.model/src/org/jkiss/dbeaver/model/impl/jdbc/cache/JDBCStructCache.java
.../jkiss/dbeaver/model/impl/jdbc/cache/JDBCStructCache.java
+9
-1
未找到文件。
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/runtime/sql/SQLQueryJob.java
浏览文件 @
d624ab0b
...
...
@@ -325,7 +325,7 @@ public class SQLQueryJob extends DataSourceJob implements Closeable
final
DBCStatement
dbcStatement
=
DBUtils
.
prepareStatement
(
source
,
session
,
DBCStatementType
.
QUERY
,
DBCStatementType
.
SCRIPT
,
sqlQuery
,
rsOffset
,
rsMaxRows
);
curStatement
=
dbcStatement
;
...
...
plugins/org.jkiss.dbeaver.model/src/org/jkiss/dbeaver/model/exec/DBCStatementType.java
浏览文件 @
d624ab0b
...
...
@@ -23,8 +23,8 @@ package org.jkiss.dbeaver.model.exec;
*/
public
enum
DBCStatementType
{
QUERY
,
EXEC
,
SCRIPT
QUERY
,
// Single query. Supports parameters binding
EXEC
,
// Stored procedure or other dynamic execution
SCRIPT
// Any other SQL. including multiple queries.
}
plugins/org.jkiss.dbeaver.model/src/org/jkiss/dbeaver/model/impl/jdbc/cache/JDBCStructCache.java
浏览文件 @
d624ab0b
...
...
@@ -33,6 +33,7 @@ import org.jkiss.dbeaver.model.impl.SimpleObjectCache;
import
org.jkiss.dbeaver.model.impl.jdbc.JDBCUtils
;
import
org.jkiss.dbeaver.model.runtime.DBRProgressMonitor
;
import
org.jkiss.dbeaver.model.struct.DBSObject
;
import
org.jkiss.utils.CommonUtils
;
import
java.sql.SQLException
;
import
java.util.*
;
...
...
@@ -79,6 +80,7 @@ public abstract class JDBCStructCache<OWNER extends DBSObject, OBJECT extends DB
return
;
}
if
(
forObject
==
null
)
{
clearChildrenCache
(
null
);
super
.
loadObjects
(
monitor
,
owner
);
}
...
...
@@ -142,7 +144,11 @@ public abstract class JDBCStructCache<OWNER extends DBSObject, OBJECT extends DB
// All children are read. Now assign them to parents
for
(
Map
.
Entry
<
OBJECT
,
List
<
CHILD
>>
colEntry
:
objectMap
.
entrySet
())
{
cacheChildren
(
colEntry
.
getKey
(),
colEntry
.
getValue
());
if
(!
isChildrenCached
(
colEntry
.
getKey
()))
{
// isChildrenCached may return true if the same cache was read in other thread
// just skip
cacheChildren
(
colEntry
.
getKey
(),
colEntry
.
getValue
());
}
}
if
(
forObject
==
null
)
{
if
(
objectMap
.
isEmpty
())
{
...
...
@@ -243,6 +249,8 @@ public abstract class JDBCStructCache<OWNER extends DBSObject, OBJECT extends DB
{
synchronized
(
childrenCache
)
{
return
childrenCache
.
containsKey
(
parent
);
// SimpleObjectCache<OBJECT, CHILD> chCache = childrenCache.get(parent);
// return chCache != null && !CommonUtils.isEmpty(chCache.getCachedObjects());
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录