Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
7751faba
提交
7751faba
authored
6月 26, 2015
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Pull request #146: Improved CompareMode.
上级
8c67eba9
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
10 行增加
和
8 行删除
+10
-8
changelog.html
h2/src/docsrc/html/changelog.html
+4
-2
CompareMode.java
h2/src/main/org/h2/value/CompareMode.java
+6
-6
没有找到文件。
h2/src/docsrc/html/changelog.html
浏览文件 @
7751faba
...
@@ -21,9 +21,11 @@ Change Log
...
@@ -21,9 +21,11 @@ Change Log
<h2>
Next Version (unreleased)
</h2>
<h2>
Next Version (unreleased)
</h2>
<ul>
<ul>
<li>
Fix for #144, JdbcResultSet.setFetchDirection() throws "Feature not supported"
<li>
Pull request #146: Improved CompareMode.
</li>
</li>
<li>
Fix for issue #143, deadlock between two sessions hitting the same sequence on a column
<li>
Fix for #144, JdbcResultSet.setFetchDirection() throws "Feature not supported".
</li>
<li>
Fix for issue #143, deadlock between two sessions hitting the same sequence on a column.
</li>
</li>
<li>
Pull request #137: SourceCompiler should not throw a syntax error on javac warning.
<li>
Pull request #137: SourceCompiler should not throw a syntax error on javac warning.
</li>
</li>
...
...
h2/src/main/org/h2/value/CompareMode.java
浏览文件 @
7751faba
...
@@ -102,9 +102,8 @@ public class CompareMode {
...
@@ -102,9 +102,8 @@ public class CompareMode {
* @return the compare mode
* @return the compare mode
*/
*/
public
static
CompareMode
getInstance
(
String
name
,
int
strength
,
boolean
binaryUnsigned
)
{
public
static
CompareMode
getInstance
(
String
name
,
int
strength
,
boolean
binaryUnsigned
)
{
CompareMode
last
;
CompareMode
last
=
lastUsed
;
if
(
last
!=
null
)
{
if
((
last
=
lastUsed
)
!=
null
)
{
if
(
StringUtils
.
equals
(
last
.
name
,
name
)
&&
if
(
StringUtils
.
equals
(
last
.
name
,
name
)
&&
last
.
strength
==
strength
&&
last
.
strength
==
strength
&&
last
.
binaryUnsigned
==
binaryUnsigned
)
{
last
.
binaryUnsigned
==
binaryUnsigned
)
{
...
@@ -112,7 +111,7 @@ public class CompareMode {
...
@@ -112,7 +111,7 @@ public class CompareMode {
}
}
}
}
if
(
name
==
null
||
name
.
equals
(
OFF
))
{
if
(
name
==
null
||
name
.
equals
(
OFF
))
{
last
Used
=
last
=
new
CompareMode
(
name
,
strength
,
binaryUnsigned
);
last
=
new
CompareMode
(
name
,
strength
,
binaryUnsigned
);
}
else
{
}
else
{
boolean
useICU4J
;
boolean
useICU4J
;
if
(
name
.
startsWith
(
ICU4J
))
{
if
(
name
.
startsWith
(
ICU4J
))
{
...
@@ -125,11 +124,12 @@ public class CompareMode {
...
@@ -125,11 +124,12 @@ public class CompareMode {
useICU4J
=
CAN_USE_ICU4J
;
useICU4J
=
CAN_USE_ICU4J
;
}
}
if
(
useICU4J
)
{
if
(
useICU4J
)
{
last
Used
=
last
=
new
CompareModeIcu4J
(
name
,
strength
,
binaryUnsigned
);
last
=
new
CompareModeIcu4J
(
name
,
strength
,
binaryUnsigned
);
}
else
{
}
else
{
last
Used
=
last
=
new
CompareModeDefault
(
name
,
strength
,
binaryUnsigned
);
last
=
new
CompareModeDefault
(
name
,
strength
,
binaryUnsigned
);
}
}
}
}
lastUsed
=
last
;
return
last
;
return
last
;
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论