Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id E800A1337BC8 for ; Thu, 24 Mar 2011 17:18:29 -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 27182-09 for ; Thu, 24 Mar 2011 20:18:18 +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 4B87F1337B4E for ; Thu, 24 Mar 2011 17:18:18 -0300 (ADT) Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail63.csoft.net (Postfix) with ESMTP id A43322842F; Thu, 24 Mar 2011 16:18:17 -0400 (EDT) Received: by leary.csoft.net (Postfix, from userid 1112) id 69F17A3D7; Thu, 24 Mar 2011 16:18:17 -0400 (EDT) Date: Thu, 24 Mar 2011 16:18:17 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: ml-tb cc: pgsql-jdbc@postgresql.org Subject: Re: How to retrieve column names for tables with underscores In-Reply-To: <201103241618.32280.ml-tb@emagixx.de> Message-ID: References: <201103241618.32280.ml-tb@emagixx.de> User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.396 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01, URIBL_RHS_DOB=1.514 X-Spam-Level: X-Archive-Number: 201103/44 X-Sequence-Number: 21599 On Thu, 24 Mar 2011, ml-tb wrote: > Hi Thomas, > > Am Donnerstag, 24. M?rz 2011 schrieb Thomas Kellerer: >> backslash escape ("table1\_") but that didn't work. > IMHO it should be "table1\\_"? > The escape needed depends on the value of standard_conforming_strings. You should use this call to find the escape needed: http://download.oracle.com/javase/6/docs/api/java/sql/DatabaseMetaData.html#getSearchStringEscape() Kris Jurka