pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paesold <mpaesold@gmx.at>
To: pgsql-jdbc@postgresql.org
Subject: JDBC Support for standard_conforming_strings
Date: Sun, 05 Nov 2006 21:46:31 +0100
Message-ID: <454E4DA7.8030603@gmx.at> (raw)

Hi all,

Regarding standard_conforming_strings, I am currently reading through 
the code and looking at all places that need to understand string 
escaping rules.

I have found two issues where I need more advice:

arrays (org.postgresql.jdbc2.AbstractJdbc2Array)
bytea (org.postgresql.util.PGbytea)

As far as I understand, quoting in arrays and bytea only changes as far 
as the types are passing through the backend parser as string-literals. 
Correct?

Since the result of AbstractJdbc2Array.toString() and 
PGbytea.toPGString() will be fed to PreparedStatement.setString() in the 
end, we do not have to change the array or bytea code. Is this reasoning 
valid?

Best Regards,
Michael Paesold



view thread (11+ messages)  latest in thread

Message-ID: <454E4DA7.8030603@gmx.at>
Permalink:  ../454E4DA7.8030603@gmx.at/
Also on:    postgresql.org/message-id/454E4DA7.8030603@gmx.at

 · 

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: mpaesold@gmx.at
  Subject: Re: JDBC Support for standard_conforming_strings
  In-Reply-To: <454E4DA7.8030603@gmx.at>
  References: <454E4DA7.8030603@gmx.at>

* 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