From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | djerius(at)cfa(dot)harvard(dot)edu |
Cc: | pgsql-ports(at)postgreSQL(dot)org |
Subject: | Re: [PORTS] Port Bug Report: missing commas in IN( ) ignored; bracketing entries ignored |
Date: | 1999-04-26 16:05:50 |
Message-ID: | 199904261605.MAA22842@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-ports |
> Problem Description:
> --------------------
> In psql, if a list of entries in an IN ( ) statement is
> split across several lines, missing commas are not flagged as errors,
> but the entries immediately before and after the missing comma
> are ignored
>
> --------------------------------------------------------------------------
>
> Test Case:
> ----------
> The following sql shows the problem. Note the missing comma between
> the 'c' and 'd' lines in the IN( ) clause. The query
> should return no rows.
>
> drop table test;
>
> create table test ( s text );
>
> insert into test values ( 'a' );
> insert into test values ( 'b' );
> insert into test values ( 'c' );
> insert into test values ( 'd' );
> insert into test values ( 'e' );
>
>
>
> select
> s
> from
> test
> where
> s not in (
> 'a',
> 'b',
> 'c'
> 'd',
> 'e'
> )
> order by s
> ;
That is the strangest parser problem I have seen in quite some time.
Does anyone want to guess on a cause?
--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Lockhart | 1999-04-26 16:14:27 | Re: [PORTS] Port Bug Report: missing commas in IN( ) ignored; bracketing entries ignored |
Previous Message | Unprivileged user | 1999-04-26 14:31:58 | Port Bug Report: missing commas in IN( ) ignored; bracketing entries ignored |