pg-mem icon indicating copy to clipboard operation
pg-mem copied to clipboard

Cannot cast single select results to values

Open oguimbal opened this issue 4 years ago • 0 comments

image

When:

create table test(id text);
insert into  test values ('a'), ('b');

✅ Supposed to work

select * from test where id=(select  id from test limit 1);
insert into test values ((select  id from test limit 1));

💥 Supposed to fail

select * from test where id=(select  id from test);

oguimbal avatar Feb 10 '21 08:02 oguimbal