Re: How to retrieve column names for tables with underscores - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: How to retrieve column names for tables with underscores
Date
Msg-id alpine.BSO.2.00.1103241615460.4390@leary.csoft.net
Whole thread Raw
In response to Re: How to retrieve column names for tables with underscores  ("ml-tb" <ml-tb@emagixx.de>)
Responses Re: How to retrieve column names for tables with underscores  (Thomas Kellerer <spam_eater@gmx.net>)
List pgsql-jdbc

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

pgsql-jdbc by date:

Previous
From: "ml-tb"
Date:
Subject: Re: How to retrieve column names for tables with underscores
Next
From: Thomas Kellerer
Date:
Subject: Re: How to retrieve column names for tables with underscores