From: Altaf Malik <mmalik_altaf@yahoo.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Kris Jurka <books@ejurka.com>
Cc: Altaf Malik <mmalik_altaf@yahoo.com>
Cc: pgsql-jdbc@postgresql.org
Cc: mpaesold@gmx.at
Subject: Re: Unable to prepare a statement when the object names contain more than one $ symbol
Date: Tue, 10 Jul 2007 03:08:10 -0700 (PDT)
Message-ID: <322907.85878.qm@web39109.mail.mud.yahoo.com> (raw)
In-Reply-To: <23286.1183999558@sss.pgh.pa.us>
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?
--Altaf
Tom Lane <tgl@sss.pgh.pa.us> wrote: Kris Jurka writes:
> On Mon, 9 Jul 2007, Altaf Malik wrote:
>> PreparedStatement pstmt = con.prepareStatement("insert into a$b$c
>> values( ? , ?)");
> This is a bug in dollar quote parsing. It assumes that any potential
> dollar quote start will have an end tag.
If it thinks that's a dollar quote start, it's wrong already... that's
a perfectly valid table name. (Although personally I'd suggest that the
OP avoid dollar signs in identifiers, since they're none too portable.)
regards, tom lane
---------------------------------
Be a better Globetrotter. Get better travel answers from someone who knows.
Yahoo! Answers - Check it out.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: mmalik_altaf@yahoo.com, tgl@sss.pgh.pa.us, books@ejurka.com, mpaesold@gmx.at
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>
References: <23286.1183999558@sss.pgh.pa.us> <322907.85878.qm@web39109.mail.mud.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox