[HACKERS] potential bug in error message in with clause

2013-07-29 Thread Szymon Guz
Hi, today on IRC there was a strange problem shown. The small working example looks like this: x=# with x as (insert into a(t) values('1') returning *) select * from x; t --- 1 (1 row) x=# with x (insert into a(t) values('1') returning *) select * from x; ERROR: syntax error at or near into

Re: [HACKERS] potential bug in error message in with clause

2013-07-29 Thread Albe Laurenz
Szymon Guz wrote: today on IRC there was a strange problem shown. The small working example looks like this: x=# with x as (insert into a(t) values('1') returning *) select * from x; t --- 1 (1 row) x=# with x (insert into a(t) values('1') returning *) select * from x; ERROR: