From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu> |
Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, Postgres Hackers List <hackers(at)postgreSQL(dot)org> |
Subject: | Re: [HACKERS] psql and comments |
Date: | 1999-10-06 18:17:20 |
Message-ID: | 199910061817.OAA15421@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> While you're at it...
>
> The following example shows psql correctly clearing its input buffer
> when a line containing *only* a comment is seen, but not completely
> clearing the buffer (or not realizing that it is cleared; note the
> changed prompt) if the comment is at the end of a valid query.
>
> postgres=> -- comment
> postgres=> select 'hi'; -- comment
> ?column?
> --------
> hi
> (1 row)
>
> postgres->
But aren't they _in_ a new statement, that begins with '--'?
--
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 | Oleg Bartunov | 1999-10-06 19:06:26 | union and LIMIT problem |
Previous Message | Peter Eisentraut | 1999-10-06 16:34:37 | Re: AW: [HACKERS] psql Week 1 |