pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: How to retrieve column names for tables with underscores
Date: Thu, 24 Mar 2011 22:41:58 +0100
Message-ID: <imgdqv$3vu$1@dough.gmane.org> (raw)
In-Reply-To: <AANLkTik5mCAvTK0_KDcdr1KH8t+a0jSctDR+eyn+1Dea@mail.gmail.com>
References: <imfg0q$481$1@dough.gmane.org>
	<201103241618.32280.ml-tb@emagixx.de>
	<alpine.BSO.2.00.1103241615460.4390@leary.csoft.net>
	<imgagk$h4a$1@dough.gmane.org>
	<AANLkTik5mCAvTK0_KDcdr1KH8t+a0jSctDR+eyn+1Dea@mail.gmail.com>

Maciek Sakrejda wrote on 24.03.2011 22:02:
>> Interesting enough, the setting of standard_conforming_strings does not seem
>> to affect this at all. Am I missing something?
>
> Doesn't seem to affect what, exactly?

The escape character returned by getSearchStringEscape()

>It definitely affects how
> backslashes are interpreted, and unless the current version of the
> JDBC driver injects the 'E' escape syntax (with the 'E' prefix,
> backslash escape sequences are interpreted regardless of the setting)
> in a cavalier manner into the LIKE expression comparisons for
> getColumns() (the one I have handy doesn't seem to), you should see
> different behavior.

Regardless of the setting of standard_conforming_strings passing \_ to getColumns() always works properly.

See Kris' answer for details.

Regards
Thomas




view thread (8+ messages)  latest in thread

Message-ID: <imgdqv$3vu$1@dough.gmane.org>
Permalink:  ../imgdqv$3vu$1@dough.gmane.org/
Also on:    postgresql.org/message-id/imgdqv$3vu$1@dough.gmane.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: spam_eater@gmx.net
  Subject: Re: How to retrieve column names for tables with underscores
  In-Reply-To: <imgdqv$3vu$1@dough.gmane.org>
  References: <imfg0q$481$1@dough.gmane.org> <201103241618.32280.ml-tb@emagixx.de> <alpine.BSO.2.00.1103241615460.4390@leary.csoft.net> <imgagk$h4a$1@dough.gmane.org> <AANLkTik5mCAvTK0_KDcdr1KH8t+a0jSctDR+eyn+1Dea@mail.gmail.com> <imgdqv$3vu$1@dough.gmane.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox