pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Johnston <polobo@yahoo.com>
To: Роман Литовченко <roman.lytovchenko@gmail.com>
Cc: Florent Guillaume <fg@nuxeo.com>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: plpgsql function, comment with single quote, braces
Date: Fri, 20 Jan 2012 09:22:43 -0500
Message-ID: <85EA3C73-B498-4D36-B2FF-DB51240B00FA@yahoo.com> (raw)
In-Reply-To: <CALvayt=ysdq9s6N+X5Z3pSOig+shvCCak0C38upF5=eeGsLfaw@mail.gmail.com>
References: <CALvaytkAZW2xPy4tGQms8HqUamWBwg904XKEXrH86VtRXgwR6w@mail.gmail.com>
	<011b01ccd630$c00a3350$401e99f0$@yahoo.com>
	<CALvaytn0xA7XCSzBdiPd8UraAe0ML4GFU_T4Kz4MkHo=zsuOrg@mail.gmail.com>
	<CALvayt=SeTnyO7Y=LY5muZjd2hQJHyunfJLa+LGm+9fA0D7V-Q@mail.gmail.com>
	<CAF-4BpO=i3C4JTNimH=c_HffZc-sHBVy4NYLyFo1drHdJdsq5A@mail.gmail.com>
	<CALvaytnDOC+6tv1Hm8XEvG9eW8EP_vGF7uVQ6aeCZObEgoHrNw@mail.gmail.com>
	<CAF-4BpMge2e368k7cSAW+U3swyuxToanhVNt6QDi02SNjUn5yQ@mail.gmail.com>
	<CALvayt=ysdq9s6N+X5Z3pSOig+shvCCak0C38upF5=eeGsLfaw@mail.gmail.com>

On Jan 20, 2012, at 8:33, Роман Литовченко <roman.lytovchenko@gmail.com> wrote:

>> Otherwise what's the problem if you just deactivate escape processing?
> 
> Because it is alogical.
> I follow Postgresql documentation for writing sql code. I want to
> write comments in functions. I want to write braces in literals.
> 
> Сan one of the developers answer me or register this bug?
> 

Speaking without full knowledge here but...

This has nothing to do with PostgreSQL; in fact the database never even sees the original form of the query.  In order to facilitate portability ODBC and JDBC have internal escape sequences for certain things.  In this case you want to bypass that escaping and supply the raw SQL to the server and thus you need to follow the suggestion and turn off escape processing.  If you do this and the problem does not go away then there is a bug otherwise things are working logically and as intended.

If you still do not like the solution take it up with the JDBC specification writers; the people on this mailing list are just following instructions.

David J.


view thread (9+ messages)  latest in thread

Message-ID: <85EA3C73-B498-4D36-B2FF-DB51240B00FA@yahoo.com>
Permalink:  ../85EA3C73-B498-4D36-B2FF-DB51240B00FA@yahoo.com/
Also on:    postgresql.org/message-id/85EA3C73-B498-4D36-B2FF-DB51240B00FA@yahoo.com

 · 

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 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: polobo@yahoo.com, roman.lytovchenko@gmail.com, fg@nuxeo.com
  Subject: Re: plpgsql function, comment with single quote, braces
  In-Reply-To: <85EA3C73-B498-4D36-B2FF-DB51240B00FA@yahoo.com>
  References: <CALvaytkAZW2xPy4tGQms8HqUamWBwg904XKEXrH86VtRXgwR6w@mail.gmail.com> <011b01ccd630$c00a3350$401e99f0$@yahoo.com> <CALvaytn0xA7XCSzBdiPd8UraAe0ML4GFU_T4Kz4MkHo=zsuOrg@mail.gmail.com> <CALvayt=SeTnyO7Y=LY5muZjd2hQJHyunfJLa+LGm+9fA0D7V-Q@mail.gmail.com> <CAF-4BpO=i3C4JTNimH=c_HffZc-sHBVy4NYLyFo1drHdJdsq5A@mail.gmail.com> <CALvaytnDOC+6tv1Hm8XEvG9eW8EP_vGF7uVQ6aeCZObEgoHrNw@mail.gmail.com> <CAF-4BpMge2e368k7cSAW+U3swyuxToanhVNt6QDi02SNjUn5yQ@mail.gmail.com> <CALvayt=ysdq9s6N+X5Z3pSOig+shvCCak0C38upF5=eeGsLfaw@mail.gmail.com> <85EA3C73-B498-4D36-B2FF-DB51240B00FA@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