Received: from localhost (pluto.hub.org [200.46.204.4]) by postgresql.org (Postfix) with ESMTP id 639EC9FA491 for ; Sun, 5 Nov 2006 16:46:35 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.4]) (amavisd-new, port 10024) with ESMTP id 18827-07 for ; Sun, 5 Nov 2006 16:46:26 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by postgresql.org (Postfix) with SMTP id 018B79F9ED7 for ; Sun, 5 Nov 2006 16:46:33 -0400 (AST) Received: (qmail invoked by alias); 05 Nov 2006 20:46:32 -0000 Received: from 85-125-151-239.dynamic.xdsl-line.inode.at (EHLO [192.168.1.15]) [85.125.151.239] by mail.gmx.net (mp040) with SMTP; 05 Nov 2006 21:46:32 +0100 X-Authenticated: #1946847 Message-ID: <454E4DA7.8030603@gmx.at> Date: Sun, 05 Nov 2006 21:46:31 +0100 From: Michael Paesold User-Agent: Thunderbird 1.5.0.7 (X11/20060915) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: JDBC Support for standard_conforming_strings Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/26 X-Sequence-Number: 16068 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