pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Eilon Reshef <eilon.reshef@gong.io>
To: Dave Cramer <pg@fastcrypt.com>
Cc: List <pgsql-jdbc@postgresql.org>
Subject: Re: ResultSetMetaData.getSchemaName always return an empty string
Date: Fri, 13 May 2016 22:12:36 +0300
Message-ID: <260c0f8b4ecb2dfec6427f186a137c63@mail.gmail.com> (raw)
In-Reply-To: <CADK3HHKn0qfnaXxpf93s=zHT378+x9bBYqiO_TCmtGRDd=1Zow@mail.gmail.com>
References: <3e41e6a378a4dbf7097b8297e4cad25f@mail.gmail.com>
	<CADK3HHKn0qfnaXxpf93s=zHT378+x9bBYqiO_TCmtGRDd=1Zow@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

Thanks for the quick reply!



It’d be great if this can be added. Our current plan is to cast the
ResultSetMetaData to a Pg… one and use the getBaseSchemaName, which is
obviously less than ideal. I hope that the method (getSchemaName) isn’t
used by clients too often – probably not used directly in clients’ code
(since it returns an empty string) but might be used by some frameworks…?



Thanks again.



*From:* davecramer@gmail.com [mailto:davecramer@gmail.com] *On Behalf Of *Dave
Cramer
*Sent:* Friday, May 13, 2016 4:11 PM
*To:* Eilon Reshef <eilon.reshef@gong.io>
*Cc:* List <pgsql-jdbc@postgresql.org>
*Subject:* Re: [JDBC] ResultSetMetaData.getSchemaName always return an
empty string



For some reason I thought this had been addressed. One issue is that it
will be a performance regression as it has to fetch the metadata


Dave Cramer

davec@postgresintl.com

www.postgresintl.com



On 13 May 2016 at 02:08, Eilon Reshef <eilon.reshef@gong.io> wrote:

But, it seems that a valid implementation exists as getBaseSchemaName (not
part of the JDBC interface) – is there a reason why the implementation is
not carried over to the standard API call, or is this considered a bug?



Thanks

Eilon

view thread (3+ messages)

Message-ID: <260c0f8b4ecb2dfec6427f186a137c63@mail.gmail.com>
Permalink:  ../260c0f8b4ecb2dfec6427f186a137c63@mail.gmail.com/
Also on:    postgresql.org/message-id/260c0f8b4ecb2dfec6427f186a137c63@mail.gmail.com

 · 

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: eilon.reshef@gong.io, pg@fastcrypt.com
  Subject: Re: ResultSetMetaData.getSchemaName always return an empty string
  In-Reply-To: <260c0f8b4ecb2dfec6427f186a137c63@mail.gmail.com>
  References: <3e41e6a378a4dbf7097b8297e4cad25f@mail.gmail.com> <CADK3HHKn0qfnaXxpf93s=zHT378+x9bBYqiO_TCmtGRDd=1Zow@mail.gmail.com> <260c0f8b4ecb2dfec6427f186a137c63@mail.gmail.com>

* 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