Re: Comments with embedded single quotes

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Richard Harvey Chapman <hchapman(at)3gfp(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Comments with embedded single quotes
Date: 2000-06-29 02:41:52
Message-ID: 200006290241.WAA07420@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> /* log will probably just be a table for Saruman's use only. */
>
> Are single quotation marks not allowed in comments?
>
> test2=# /* John's cat is fat. */
> test2'#
> test2'# '*/
> test2-# ;
> ERROR: Unterminated quoted string
> test2=#
>
> I have the SQL + comments for creating my database in files that are just
> imported in psql.

Yikes, bug alert. I will take a look at it, if Peter doesn't beat me to
it.

--
Bruce Momjian | http://www.op.net/~candle
pgman(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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2000-06-29 02:59:34 Re: Comments with embedded single quotes
Previous Message Richard Harvey Chapman 2000-06-29 02:06:38 Comments with embedded single quotes