Re: [HACKERS] Re: SQL compliance - why -- comments only at psql level?

From: Hannu Krosing <hannu(at)tm(dot)ee>
To: Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Re: SQL compliance - why -- comments only at psql level?
Date: 2000-02-20 15:49:56
Message-ID: 38B00D24.AB13D9A9@tm.ee
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Thomas Lockhart wrote:
>
> > Can you give me a failure condition for the TODO list? I can't see the
> > bug here.
>
> Well, now that I got off my duff and tried your little test with my
> current sources, I get your result. Hannu??

My tests were with 6.5.3 which has even more yuckies in it :

[hannu(at)hu hannu]$ psql -c "select -- what ?
> count(*) from t1;"
ERROR: attribute 'what' not found
[hannu(at)hu hannu]$ psql -c "select -- what
> count(*) from t1;"
ERROR: parser: parse error at or near "count"
[hannu(at)hu hannu]$ psql -c "select count(*) -- what
> from t1;"
count
-----
3
(1 row)

But they all work from psql

hannu=> select -- what ?
hannu-> count(*) from t1;
count
-----
3
(1 row)

hannu=> select count(*) -- what ?
hannu-> from t1;
count
-----
3
(1 row)

Could you try them on current.

-------------
Hannu

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Hannu Krosing 2000-02-20 15:52:43 Re: [HACKERS] Re: SQL compliance - why -- comments only at psql level?
Previous Message Peter Eisentraut 2000-02-20 14:22:14 Re: [HACKERS] Re: SQL compliance