Re: Comments with embedded single quotes - Mailing list pgsql-general

From Bruce Momjian
Subject Re: Comments with embedded single quotes
Date
Msg-id 200006290241.WAA07420@candle.pha.pa.us
Whole thread Raw
In response to Comments with embedded single quotes  (Richard Harvey Chapman <hchapman@3gfp.com>)
List 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@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-general by date:

Previous
From: Richard Harvey Chapman
Date:
Subject: Comments with embedded single quotes
Next
From: Tom Lane
Date:
Subject: Re: Comments with embedded single quotes