提交 00dcf60f authored 作者: Thomas Mueller's avatar Thomas Mueller

Update statements with a column list in brackets did not work if the list only contains one column.

上级 c011af00
......@@ -91,9 +91,6 @@ create table test(id int primary key, name varchar(255), row_number int);
insert into test values(1, 'hello', 10), (2, 'world', 20);
> update count: 2
update test set (id)=(id);
> update count: 2
select row_number() over(), id, name from test order by id;
> ROWNUM() ID NAME
> -------- -- -----
......@@ -115,6 +112,9 @@ select row_number() over(), id, name from test order by name desc;
> 1 1 hello
> rows (ordered): 2
update test set (id)=(id);
> update count: 2
drop table test;
> ok
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论