Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b1IuI-0002Y4-9z for pgsql-jdbc@arkaria.postgresql.org; Fri, 13 May 2016 19:37:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b1IuH-0003YX-Tk for pgsql-jdbc@arkaria.postgresql.org; Fri, 13 May 2016 19:37:53 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b1IVv-0004kv-Jv for pgsql-jdbc@postgresql.org; Fri, 13 May 2016 19:12:43 +0000 Received: from mail-lf0-x22d.google.com ([2a00:1450:4010:c07::22d]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1b1IVs-0004My-7A for pgsql-jdbc@postgresql.org; Fri, 13 May 2016 19:12:42 +0000 Received: by mail-lf0-x22d.google.com with SMTP id u64so93189675lff.3 for ; Fri, 13 May 2016 12:12:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gong-io.20150623.gappssmtp.com; s=20150623; h=from:references:in-reply-to:mime-version:thread-index:date :message-id:subject:to:cc; bh=XjZhq2NrJwUrzokjET9oPZHLvVtyoG3+3g0PRixyGYI=; b=UZbEFM2VK3QmPonAl4zHNWO//oQR2JW/oJ6KyPIVW/K9l5hsLsj1aWuyJGG1ZTR8IW oWBaQ9xHNY5Ok11sjlLmGaYEXiqiig8Q78iJVOXZWIafp8nyO1qK8gCEDwIzJhJs+9MG C/06ZbCW1MHBERDBOe87d7PpsJnbkLkHXq0uN5McDrF1CtHN9PLkFaB44QFwO8tjbwz8 sA8hjbscN0xHuwr7RnaeI7lqt0d+cVBb17K0NGIzUz/6Ns7geZZep44ulGjluJ5qhqPM Wc4MUEuA4ZV+omvsKAJC+/hyrFJd2C6Ar0Ut/MMv0pcWj/uk+aOCNlPZ0i8iLWqTSUUO g3WA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:references:in-reply-to:mime-version :thread-index:date:message-id:subject:to:cc; bh=XjZhq2NrJwUrzokjET9oPZHLvVtyoG3+3g0PRixyGYI=; b=dOnMtp5356kowFj1utm1xKTxCmH57XRlVqwZ2nrYx94q9Bo9wNckKpgZU9l+OTfsvt L35dnQGXxItNBag4S7+bObK9Ffsuz+uo9QdsCNK9ZcVsHg2y+da+Nsoq7qkiOuAkt3Do Tq7yNMBIBNufH1/HcUaXR6EU9iClp4nQHQLEtHvEm360tgPe04jnO+ryTAKaT0f2bvO6 bxzSUc74qP+v9tzYJDxneFrTtWY9lPIuSipryehWEaPaOfVbxlEj1TtFFPYR24HCbDhL 7x54oTwIBZ+ymc+FFSxjIMlRKj0uTCa7P/4be2QnSq1oaA4eApmmSTDTJ8LNJqtYt4Bh DHWQ== X-Gm-Message-State: AOPr4FUwwBnwoVW/hbxk28VogObWiAqZ6/toxFOukuf1s7OlPL562IgCMRqagJpmQuczw9O7VUgdP5n1ovtu3dmz X-Received: by 10.25.81.13 with SMTP id f13mr7604960lfb.78.1463166757677; Fri, 13 May 2016 12:12:37 -0700 (PDT) From: Eilon Reshef References: <3e41e6a378a4dbf7097b8297e4cad25f@mail.gmail.com> In-Reply-To: MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQIukxjItamb4KO8slnGTmdXZooobwJ0wNb1nunKCIA= Date: Fri, 13 May 2016 22:12:36 +0300 Message-ID: <260c0f8b4ecb2dfec6427f186a137c63@mail.gmail.com> Subject: Re: ResultSetMetaData.getSchemaName always return an empty string To: Dave Cramer Cc: List Content-Type: multipart/alternative; boundary=001a11405b06d776e00532be0e0e X-Pg-Spam-Score: -1.8 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org --001a11405b06d776e00532be0e0e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks for the quick reply! It=E2=80=99d be great if this can be added. Our current plan is to cast the ResultSetMetaData to a Pg=E2=80=A6 one and use the getBaseSchemaName, which= is obviously less than ideal. I hope that the method (getSchemaName) isn=E2=80= =99t used by clients too often =E2=80=93 probably not used directly in clients= =E2=80=99 code (since it returns an empty string) but might be used by some frameworks=E2= =80=A6? Thanks again. *From:* davecramer@gmail.com [mailto:davecramer@gmail.com] *On Behalf Of *D= ave Cramer *Sent:* Friday, May 13, 2016 4:11 PM *To:* Eilon Reshef *Cc:* List *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 wrote: But, it seems that a valid implementation exists as getBaseSchemaName (not part of the JDBC interface) =E2=80=93 is there a reason why the implementat= ion is not carried over to the standard API call, or is this considered a bug? Thanks Eilon --001a11405b06d776e00532be0e0e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Thanks for the quick reply!<= /span>

=C2=A0

<= span style=3D"font-size:11.0pt;font-family:"Calibri",sans-serif">= It=E2=80=99d be great if this can be added. Our current plan is to cast the= ResultSetMetaData to a Pg=E2=80=A6 one and use the getBaseSchemaName, whic= h is obviously less than ideal. I hope that the method (getSchemaName) isn= =E2=80=99t used by clients too often =E2=80=93 probably not used directly i= n clients=E2=80=99 code (since it returns an empty string) but might be use= d by some frameworks=E2=80=A6?

=C2=A0

Thanks again.

=C2=A0

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] ResultS= etMetaData.getSchemaName always return an empty string

=C2=A0

For some reason I thou= ght this had been addressed. One issue is that it will be a performance reg= ression as it has to fetch the metadata


=C2=A0

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

But, it s= eems that a valid implementation exists as getBaseSchemaName (not part of t= he JDBC interface) =E2=80=93 is there a reason why the implementation is no= t carried over to the standard API call, or is this considered a bug?

=C2=A0

Thanks

= Eilon

=C2=A0

=C2=A0

--001a11405b06d776e00532be0e0e--