Re: Bug in AbstracJdbc2Statement.replaceProcessing when using dollar quoting?

From: Maciek Sakrejda <m(dot)sakrejda(at)gmail(dot)com>
To: David Johnston <polobo(at)yahoo(dot)com>
Cc: Dave Cramer <pg(at)fastcrypt(dot)com>, GEISINGER Marc - Contractor <Marc(dot)GEISINGER(at)external(dot)thalesgroup(dot)com>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Bug in AbstracJdbc2Statement.replaceProcessing when using dollar quoting?
Date: 2012-09-24 15:16:15
Message-ID: CAOtHd0BhXfjO1WGaSHsg-RnQ1Om8Vjds89ifEFagUrZxN7w-tg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Mon, Sep 24, 2012 at 6:54 AM, David Johnston <polobo(at)yahoo(dot)com> wrote:
> Is there any SQL syntax that allows for a dollar-sign outside of a string
> literal? If not then if we are not in a string and we encounter a
> dollar-sign we could assume that we are dealing with a PostgreSQL string and
> immediately return the original input unchanged.

Identifiers can also contain "$" when quoted:

=> create table "$"("$" int);
CREATE TABLE

Not to mention comments.

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message the6campbells 2012-09-24 15:30:56 ResultSet metadata for a prepared statement missing the applicable table, schema etc properties
Previous Message the6campbells 2012-09-24 15:12:04 DatabaseMetadata.getTypeInfo resultset returns more than just Postgres/user defined data types