Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
a4992cc4
提交
a4992cc4
authored
16 年前
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
The wrong exception was thrown when using unquoted text for COMMENT, ALTER USER, and SET PASSWORD.
上级
455544f2
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
13 行增加
和
4 行删除
+13
-4
AlterUser.java
h2/src/main/org/h2/command/ddl/AlterUser.java
+2
-2
CreateUser.java
h2/src/main/org/h2/command/ddl/CreateUser.java
+1
-1
SetComment.java
h2/src/main/org/h2/command/ddl/SetComment.java
+1
-1
test-1.1.txt
h2/src/test/org/h2/test/test-1.1.txt
+9
-0
没有找到文件。
h2/src/main/org/h2/command/ddl/AlterUser.java
浏览文件 @
a4992cc4
...
...
@@ -81,11 +81,11 @@ public class AlterUser extends DefineCommand {
}
private
char
[]
getCharArray
(
Expression
e
)
throws
SQLException
{
return
e
.
getValue
(
session
).
getString
().
toCharArray
();
return
e
.
optimize
(
session
).
getValue
(
session
).
getString
().
toCharArray
();
}
private
byte
[]
getByteArray
(
Expression
e
)
throws
SQLException
{
return
ByteUtils
.
convertStringToBytes
(
e
.
getValue
(
session
).
getString
());
return
ByteUtils
.
convertStringToBytes
(
e
.
optimize
(
session
).
getValue
(
session
).
getString
());
}
public
int
update
()
throws
SQLException
{
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/command/ddl/CreateUser.java
浏览文件 @
a4992cc4
...
...
@@ -52,7 +52,7 @@ public class CreateUser extends DefineCommand {
}
private
byte
[]
getByteArray
(
Expression
e
)
throws
SQLException
{
return
ByteUtils
.
convertStringToBytes
(
e
.
getValue
(
session
).
getString
());
return
ByteUtils
.
convertStringToBytes
(
e
.
optimize
(
session
).
getValue
(
session
).
getString
());
}
public
int
update
()
throws
SQLException
{
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/command/ddl/SetComment.java
浏览文件 @
a4992cc4
...
...
@@ -91,7 +91,7 @@ public class SetComment extends DefineCommand {
if
(
object
==
null
)
{
throw
Message
.
getSQLException
(
errorCode
,
objectName
);
}
String
text
=
expr
.
getValue
(
session
).
getString
();
String
text
=
expr
.
optimize
(
session
).
getValue
(
session
).
getString
();
if
(
column
)
{
Table
table
=
(
Table
)
object
;
table
.
getColumn
(
columnName
).
setComment
(
text
);
...
...
This diff is collapsed.
Click to expand it.
h2/src/test/org/h2/test/test-1.1.txt
浏览文件 @
a4992cc4
...
...
@@ -2,6 +2,15 @@
create table test(id identity);
> ok
set password test;
> exception
alter user sa set password test;
> exception
comment on table test is test;
> exception
select 1 from test a where 1 in(select 1 from test b where b.id in(select 1 from test c where c.id=a.id));
> 1
> -
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论