Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
18385135
提交
18385135
authored
14 年前
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
StringUtils.convertBytesToHex
上级
da1d6bf7
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
6 行增加
和
8 行删除
+6
-8
ConnectionInfo.java
h2/src/main/org/h2/engine/ConnectionInfo.java
+1
-1
Session.java
h2/src/main/org/h2/engine/Session.java
+2
-4
User.java
h2/src/main/org/h2/engine/User.java
+2
-2
FullText.java
h2/src/main/org/h2/fulltext/FullText.java
+1
-1
没有找到文件。
h2/src/main/org/h2/engine/ConnectionInfo.java
浏览文件 @
18385135
...
@@ -286,7 +286,7 @@ public class ConnectionInfo implements Cloneable {
...
@@ -286,7 +286,7 @@ public class ConnectionInfo implements Cloneable {
private
static
byte
[]
hashPassword
(
boolean
passwordHash
,
String
userName
,
char
[]
password
)
{
private
static
byte
[]
hashPassword
(
boolean
passwordHash
,
String
userName
,
char
[]
password
)
{
if
(
passwordHash
)
{
if
(
passwordHash
)
{
return
StringUtils
.
convert
String
ToBytes
(
new
String
(
password
));
return
StringUtils
.
convert
Hex
ToBytes
(
new
String
(
password
));
}
}
if
(
userName
.
length
()
==
0
&&
password
.
length
==
0
&&
SysProperties
.
EMPTY_PASSWORD
)
{
if
(
userName
.
length
()
==
0
&&
password
.
length
==
0
&&
SysProperties
.
EMPTY_PASSWORD
)
{
return
new
byte
[
0
];
return
new
byte
[
0
];
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/engine/Session.java
浏览文件 @
18385135
...
@@ -370,11 +370,9 @@ public class Session extends SessionWithState {
...
@@ -370,11 +370,9 @@ public class Session extends SessionWithState {
this
.
lockTimeout
=
lockTimeout
;
this
.
lockTimeout
=
lockTimeout
;
}
}
public
CommandInterface
prepareCommand
(
String
sql
,
int
fetchSize
)
{
public
synchronized
CommandInterface
prepareCommand
(
String
sql
,
int
fetchSize
)
{
synchronized
(
database
)
{
return
prepareLocal
(
sql
);
return
prepareLocal
(
sql
);
}
}
}
/**
/**
* Parse and prepare the given SQL statement. This method also checks the
* Parse and prepare the given SQL statement. This method also checks the
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/engine/User.java
浏览文件 @
18385135
...
@@ -158,9 +158,9 @@ public class User extends RightOwner {
...
@@ -158,9 +158,9 @@ public class User extends RightOwner {
}
}
if
(
password
)
{
if
(
password
)
{
buff
.
append
(
" SALT '"
).
buff
.
append
(
" SALT '"
).
append
(
StringUtils
.
convertBytesTo
String
(
salt
)).
append
(
StringUtils
.
convertBytesTo
Hex
(
salt
)).
append
(
"' HASH '"
).
append
(
"' HASH '"
).
append
(
StringUtils
.
convertBytesTo
String
(
passwordHash
)).
append
(
StringUtils
.
convertBytesTo
Hex
(
passwordHash
)).
append
(
'\''
);
append
(
'\''
);
}
else
{
}
else
{
buff
.
append
(
" PASSWORD ''"
);
buff
.
append
(
" PASSWORD ''"
);
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/fulltext/FullText.java
浏览文件 @
18385135
...
@@ -491,7 +491,7 @@ public class FullText {
...
@@ -491,7 +491,7 @@ public class FullText {
case
Types
.
VARBINARY
:
case
Types
.
VARBINARY
:
case
Types
.
LONGVARBINARY
:
case
Types
.
LONGVARBINARY
:
case
Types
.
BINARY
:
case
Types
.
BINARY
:
return
"'"
+
StringUtils
.
convertBytesTo
String
((
byte
[])
data
)
+
"'"
;
return
"'"
+
StringUtils
.
convertBytesTo
Hex
((
byte
[])
data
)
+
"'"
;
case
Types
.
CLOB
:
case
Types
.
CLOB
:
case
Types
.
JAVA_OBJECT
:
case
Types
.
JAVA_OBJECT
:
case
Types
.
OTHER
:
case
Types
.
OTHER
:
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论