Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 243AE9FB487 for ; Tue, 10 Jul 2007 08:32:39 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 59744-01-2 for ; Tue, 10 Jul 2007 08:32:31 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from oxford.xeocode.com (unknown [62.232.55.118]) by postgresql.org (Postfix) with ESMTP id 86E6C9FB47C for ; Tue, 10 Jul 2007 08:32:35 -0300 (ADT) Received: from localhost ([127.0.0.1] helo=oxford.xeocode.com) by oxford.xeocode.com with esmtp (Exim 4.67) (envelope-from ) id 1I8Dx6-000102-Ja; Tue, 10 Jul 2007 12:32:20 +0100 From: Gregory Stark To: "Altaf Malik" Cc: "Tom Lane" , "Kris Jurka" , , Subject: Re: Unable to prepare a statement when the object names contain more than one $ symbol In-Reply-To: <322907.85878.qm@web39109.mail.mud.yahoo.com> (Altaf Malik's message of "Tue, 10 Jul 2007 03:08:10 -0700 (PDT)") Organization: EnterpriseDB References: <322907.85878.qm@web39109.mail.mud.yahoo.com> X-Draft-From: ("nnimap+mail01.enterprisedb.com:INBOX.jdbc" 263) Date: Tue, 10 Jul 2007 12:32:20 +0100 Message-ID: <87ejjgze7v.fsf@oxford.xeocode.com> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/38 X-Sequence-Number: 17212 "Altaf Malik" writes: > I think $$ should start a quote instead of $x$. Or $ character have special > meaning but if there is one dollar does not happen anything wrong. Are $$ and > $x$ equal? If yes, what happens with the character(s) between the two dollar > signs? $anything$ starts a quote and ends with $anything$ as in: postgres=# select $foo$bar$foo$; ?column? ---------- bar (1 row) However the $ must start a new token: postgres=# select foo$foo$bar$foo$; ERROR: column "foo$foo$bar$foo$" does not exist LINE 1: select foo$foo$bar$foo$; -- Gregory Stark EnterpriseDB http://www.enterprisedb.com