Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
3d3df51c
Unverified
提交
3d3df51c
authored
2月 12, 2019
作者:
Evgenij Ryazanov
提交者:
GitHub
2月 12, 2019
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1736 from katzyn/compatibility
Fix ExpressionColumn.getSQL() for DATABASE_TO_UPPER=FALSE
上级
1c185f1b
46629ef6
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
12 行增加
和
16 行删除
+12
-16
changelog.html
h2/src/docsrc/html/changelog.html
+2
-0
ExpressionColumn.java
h2/src/main/org/h2/expression/ExpressionColumn.java
+3
-16
TestCompatibility.java
h2/src/test/org/h2/test/db/TestCompatibility.java
+7
-0
没有找到文件。
h2/src/docsrc/html/changelog.html
浏览文件 @
3d3df51c
...
@@ -21,6 +21,8 @@ Change Log
...
@@ -21,6 +21,8 @@ Change Log
<h2>
Next Version (unreleased)
</h2>
<h2>
Next Version (unreleased)
</h2>
<ul>
<ul>
<li>
Issue #1735: Creating views with DATABASE_TO_UPPER=FALSE fails
</li>
<li>
Issue #1732: source.html does not work
<li>
Issue #1732: source.html does not work
</li>
</li>
<li>
Issue #1730: Show error in H2 Console if specified driver is not compatible with URL
<li>
Issue #1730: Show error in H2 Console if specified driver is not compatible with URL
...
...
h2/src/main/org/h2/expression/ExpressionColumn.java
浏览文件 @
3d3df51c
...
@@ -59,22 +59,11 @@ public class ExpressionColumn extends Expression {
...
@@ -59,22 +59,11 @@ public class ExpressionColumn extends Expression {
@Override
@Override
public
StringBuilder
getSQL
(
StringBuilder
builder
)
{
public
StringBuilder
getSQL
(
StringBuilder
builder
)
{
boolean
quote
=
database
.
getSettings
().
databaseToUpper
;
if
(
schemaName
!=
null
)
{
if
(
schemaName
!=
null
)
{
if
(
quote
)
{
Parser
.
quoteIdentifier
(
builder
,
schemaName
).
append
(
'.'
);
Parser
.
quoteIdentifier
(
builder
,
schemaName
);
}
else
{
builder
.
append
(
schemaName
);
}
builder
.
append
(
'.'
);
}
}
if
(
tableAlias
!=
null
)
{
if
(
tableAlias
!=
null
)
{
if
(
quote
)
{
Parser
.
quoteIdentifier
(
builder
,
tableAlias
).
append
(
'.'
);
Parser
.
quoteIdentifier
(
builder
,
tableAlias
);
}
else
{
builder
.
append
(
tableAlias
);
}
builder
.
append
(
'.'
);
}
}
if
(
column
!=
null
)
{
if
(
column
!=
null
)
{
if
(
derivedName
!=
null
)
{
if
(
derivedName
!=
null
)
{
...
@@ -82,10 +71,8 @@ public class ExpressionColumn extends Expression {
...
@@ -82,10 +71,8 @@ public class ExpressionColumn extends Expression {
}
else
{
}
else
{
builder
.
append
(
column
.
getSQL
());
builder
.
append
(
column
.
getSQL
());
}
}
}
else
if
(
quote
)
{
Parser
.
quoteIdentifier
(
builder
,
columnName
);
}
else
{
}
else
{
builder
.
append
(
columnName
);
Parser
.
quoteIdentifier
(
builder
,
columnName
);
}
}
return
builder
;
return
builder
;
}
}
...
...
h2/src/test/org/h2/test/db/TestCompatibility.java
浏览文件 @
3d3df51c
...
@@ -117,6 +117,13 @@ public class TestCompatibility extends TestDb {
...
@@ -117,6 +117,13 @@ public class TestCompatibility extends TestDb {
assertEquals
(
1000000000000000000000
e10
,
rs
.
getDouble
(
2
));
assertEquals
(
1000000000000000000000
e10
,
rs
.
getDouble
(
2
));
assertEquals
(
0xfafb
L
,
rs
.
getLong
(
3
));
assertEquals
(
0xfafb
L
,
rs
.
getLong
(
3
));
assertFalse
(
rs
.
next
());
assertFalse
(
rs
.
next
());
stat
.
execute
(
"create table \"t 1\" (a int, b int)"
);
stat
.
execute
(
"create view v as select * from \"t 1\""
);
stat
.
executeQuery
(
"select * from v"
).
close
();
stat
.
execute
(
"drop view v"
);
stat
.
execute
(
"drop table \"t 1\""
);
c
.
close
();
c
.
close
();
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论