public inbox for [email protected]  
help / color / mirror / Atom feed
From: John DeSoi <[email protected]>
To: [email protected]
Subject: docs correction (8.0 beta)
Date: Thu, 19 Aug 2004 14:17:16 -0400
Message-ID: <[email protected]> (raw)

 From the example below and looking at scan.c, it seems that nested 
block comments are supported.

test=# select /* /* nested */ */ 1;
  ?column?
----------
         1
(1 row)



 From section 35.3:

There are two types of comments in PL/pgSQL. A double  dash (--) starts 
a comment that extends to the end of  the line. A /* starts a block 
comment that extends to  the next occurrence of */. Block comments 
cannot be  nested, but double dash comments can be enclosed into a 
block comment and  a double dash can hide the block comment delimiters 
/*  and */.




view thread (5+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: docs correction (8.0 beta)
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox