Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
suliangchun
dbeaver
提交
a7348b06
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,发现更多精彩内容 >>
提交
a7348b06
编写于
9月 24, 2020
作者:
S
Serge Rider
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/devel' into devel
Former-commit-id:
de64cdbf
上级
60b37d5c
d3f480ac
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
9 addition
and
4 deletion
+9
-4
plugins/org.jkiss.dbeaver.ext.postgresql/src/org/jkiss/dbeaver/ext/postgresql/edit/PostgreTableColumnManager.java
...beaver/ext/postgresql/edit/PostgreTableColumnManager.java
+1
-1
plugins/org.jkiss.dbeaver.net.ssh.ui/src/org/jkiss/dbeaver/ui/net/ssh/jsch/JSCHUIPromptProvider.java
...g/jkiss/dbeaver/ui/net/ssh/jsch/JSCHUIPromptProvider.java
+7
-3
plugins/org.jkiss.dbeaver.registry/src/org/jkiss/dbeaver/registry/DataSourceDescriptor.java
.../src/org/jkiss/dbeaver/registry/DataSourceDescriptor.java
+1
-0
未找到文件。
plugins/org.jkiss.dbeaver.ext.postgresql/src/org/jkiss/dbeaver/ext/postgresql/edit/PostgreTableColumnManager.java
浏览文件 @
a7348b06
...
@@ -81,7 +81,7 @@ public class PostgreTableColumnManager extends SQLTableColumnManager<PostgreTabl
...
@@ -81,7 +81,7 @@ public class PostgreTableColumnManager extends SQLTableColumnManager<PostgreTabl
switch
(
dataType
.
getDataKind
())
{
switch
(
dataType
.
getDataKind
())
{
case
STRING:
case
STRING:
final
long
length
=
column
.
getMaxLength
();
final
long
length
=
column
.
getMaxLength
();
if
(
length
>
0
)
{
if
(
length
>
0
&&
length
<
Integer
.
MAX_VALUE
)
{
sql
.
append
(
'('
).
append
(
length
).
append
(
')'
);
sql
.
append
(
'('
).
append
(
length
).
append
(
')'
);
}
}
break
;
break
;
...
...
plugins/org.jkiss.dbeaver.net.ssh.ui/src/org/jkiss/dbeaver/ui/net/ssh/jsch/JSCHUIPromptProvider.java
浏览文件 @
a7348b06
...
@@ -6,6 +6,7 @@ import org.eclipse.jsch.ui.UserInfoPrompter;
...
@@ -6,6 +6,7 @@ import org.eclipse.jsch.ui.UserInfoPrompter;
import
org.jkiss.dbeaver.Log
;
import
org.jkiss.dbeaver.Log
;
import
org.jkiss.dbeaver.model.net.DBWHandlerConfiguration
;
import
org.jkiss.dbeaver.model.net.DBWHandlerConfiguration
;
import
org.jkiss.dbeaver.model.net.ssh.JSCHUserInfoPromptProvider
;
import
org.jkiss.dbeaver.model.net.ssh.JSCHUserInfoPromptProvider
;
import
org.jkiss.utils.CommonUtils
;
public
class
JSCHUIPromptProvider
implements
JSCHUserInfoPromptProvider
{
public
class
JSCHUIPromptProvider
implements
JSCHUserInfoPromptProvider
{
...
@@ -26,7 +27,7 @@ public class JSCHUIPromptProvider implements JSCHUserInfoPromptProvider {
...
@@ -26,7 +27,7 @@ public class JSCHUIPromptProvider implements JSCHUserInfoPromptProvider {
@Override
@Override
public
String
[]
promptKeyboardInteractive
(
String
destination
,
String
name
,
String
instruction
,
String
[]
prompt
,
boolean
[]
echo
)
{
public
String
[]
promptKeyboardInteractive
(
String
destination
,
String
name
,
String
instruction
,
String
[]
prompt
,
boolean
[]
echo
)
{
if
(
configuration
.
isSav
ePassword
())
{
if
(
shouldUs
ePassword
())
{
setPassword
(
configuration
.
getPassword
());
setPassword
(
configuration
.
getPassword
());
}
}
return
super
.
promptKeyboardInteractive
(
destination
,
name
,
instruction
,
prompt
,
echo
);
return
super
.
promptKeyboardInteractive
(
destination
,
name
,
instruction
,
prompt
,
echo
);
...
@@ -34,7 +35,7 @@ public class JSCHUIPromptProvider implements JSCHUserInfoPromptProvider {
...
@@ -34,7 +35,7 @@ public class JSCHUIPromptProvider implements JSCHUserInfoPromptProvider {
@Override
@Override
public
boolean
promptPassword
(
String
message
)
{
public
boolean
promptPassword
(
String
message
)
{
if
(
configuration
.
isSav
ePassword
())
{
if
(
shouldUs
ePassword
())
{
setPassword
(
configuration
.
getPassword
());
setPassword
(
configuration
.
getPassword
());
return
true
;
return
true
;
}
}
...
@@ -43,7 +44,7 @@ public class JSCHUIPromptProvider implements JSCHUserInfoPromptProvider {
...
@@ -43,7 +44,7 @@ public class JSCHUIPromptProvider implements JSCHUserInfoPromptProvider {
@Override
@Override
public
boolean
promptPassphrase
(
String
message
)
{
public
boolean
promptPassphrase
(
String
message
)
{
if
(
configuration
.
isSav
ePassword
())
{
if
(
shouldUs
ePassword
())
{
setPassphrase
(
configuration
.
getPassword
());
setPassphrase
(
configuration
.
getPassword
());
return
true
;
return
true
;
}
}
...
@@ -57,5 +58,8 @@ public class JSCHUIPromptProvider implements JSCHUserInfoPromptProvider {
...
@@ -57,5 +58,8 @@ public class JSCHUIPromptProvider implements JSCHUserInfoPromptProvider {
log
.
debug
(
message
);
log
.
debug
(
message
);
}
}
private
boolean
shouldUsePassword
()
{
return
configuration
.
isSavePassword
()
||
CommonUtils
.
isNotEmpty
(
configuration
.
getPassword
());
}
}
}
}
}
\ No newline at end of file
plugins/org.jkiss.dbeaver.registry/src/org/jkiss/dbeaver/registry/DataSourceDescriptor.java
浏览文件 @
a7348b06
...
@@ -1439,6 +1439,7 @@ public class DataSourceDescriptor
...
@@ -1439,6 +1439,7 @@ public class DataSourceDescriptor
}
}
networkHandler
.
setPassword
(
authInfo
.
getUserPassword
());
networkHandler
.
setPassword
(
authInfo
.
getUserPassword
());
networkHandler
.
setSavePassword
(
authInfo
.
isSavePassword
());
networkHandler
.
setSavePassword
(
authInfo
.
isSavePassword
());
dataSourceContainer
.
getConnectionConfiguration
().
updateHandler
(
networkHandler
);
}
else
{
}
else
{
if
(!
passwordOnly
)
{
if
(!
passwordOnly
)
{
dataSourceContainer
.
getConnectionConfiguration
().
setUserName
(
authInfo
.
getUserName
());
dataSourceContainer
.
getConnectionConfiguration
().
setUserName
(
authInfo
.
getUserName
());
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录