Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id F0058B5DBEA for ; Mon, 22 Aug 2011 05:14:42 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 98324-04 for ; Mon, 22 Aug 2011 08:14:36 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mail.postgresql.org (Postfix) with ESMTP id EFA2FB5DBD8 for ; Mon, 22 Aug 2011 05:14:35 -0300 (ADT) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1QvPeU-0007YV-0w for pgsql-jdbc@postgresql.org; Mon, 22 Aug 2011 01:14:34 -0700 Date: Mon, 22 Aug 2011 01:14:34 -0700 (PDT) From: JavaNoobie To: pgsql-jdbc@postgresql.org Message-ID: <1314000874022-4722528.post@n5.nabble.com> In-Reply-To: <201108220946.37783.ml-tb@emagixx.de> References: <1313841345919-4718287.post@n5.nabble.com> <201108211245.14465.mail@smogura.eu> <1313988267050-4722152.post@n5.nabble.com> <201108220946.37783.ml-tb@emagixx.de> Subject: Re: how to Escape single quotes with PreparedStatment MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.778 tagged_above=-10 required=5 tests=BAYES_00=-1.9, URI_HEX=1.122 X-Spam-Level: X-Archive-Number: 201108/49 X-Sequence-Number: 22081 Hi, I tried that example but it threw an error as follows. org.postgresql.util.PSQLException: ERROR: syntax error at or near "%" Position: 158 at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2102) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1835) Why could this be happening? -- View this message in context: http://postgresql.1045698.n5.nabble.com/how-to-Escape-single-quotes-with-PreparedStatment-tp4718287p4722528.html Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.