Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 47E2FB5DC44 for ; Fri, 9 Sep 2011 11:19:00 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 23373-08 for ; Fri, 9 Sep 2011 14:18:54 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by mail.postgresql.org (Postfix) with ESMTP id D8B7DB5DC1A for ; Fri, 9 Sep 2011 11:18:53 -0300 (ADT) Received: from mail63.csoft.net (localhost [127.0.0.1]) by mail63.csoft.net (Postfix) with ESMTP id 5DC5528429; Fri, 9 Sep 2011 10:18:53 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=csoft.net; h=date:from:to :cc:subject:in-reply-to:message-id:references:mime-version :content-type; s=sel1; bh=oWmz4T/WIyZi40OStenoIpjPd6A=; b=nOyC/q d1IkVMJ9+lr+uwhPPyKROWFusAojMtTk82PRNkBTxn2xCp64Npegc+kXs5PcQ/YE NrjF1r+0W+9Z96VdQaCngaEs2YdwkEdV80i3YTfPns9kGJHWJbBMgDXdsIkdcVPl wvNxvf3J5ngqjkhzTXBaEILZ9vl2Ni2ZAyo4E= Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail63.csoft.net (Postfix) with ESMTP id 55F4B2841D; Fri, 9 Sep 2011 10:18:53 -0400 (EDT) Received: by leary.csoft.net (Postfix, from userid 1112) id 42354A43E; Fri, 9 Sep 2011 10:18:53 -0400 (EDT) Date: Fri, 9 Sep 2011 10:18:53 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: dv cc: pgsql-jdbc@postgresql.org Subject: Re: Issue getColumns(): Nonstandard use of \\ in a string literal In-Reply-To: <1315566316640-4785925.post@n5.nabble.com> Message-ID: References: <201102151808.06825.ml-tb@emagixx.de> <1315566316640-4785925.post@n5.nabble.com> User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201109/22 X-Sequence-Number: 22140 On Fri, 9 Sep 2011, dv wrote: > As of postgresql 9.1 defaulted to > standard_conforming_strings = on > > These warnings are turned to the errors, so they cannot be ignored any more: > > 2011-09-09 14:41:06 MSD ERROR: invalid escape string > 2011-09-09 14:41:06 MSD HINT: Escape string must be empty or one character. > 2011-09-09 14:41:06 MSD STATEMENT: SELECT COUNT(a0.id) FROM country a0 > WHERE a0."name" LIKE '%%' ESCAPE '\\' > This certainly doesn't look like any JDBC driver generated SQL, so I'm not sure what your specific complaint here is. It looks to me like you are using a hardcoded and incorrect escape string. If you show the Java code associated with this, perhaps some more concrete advice could be offered. Kris Jurka