Received: from candle.pha.pa.us (candle.navpoint.com [162.33.245.46]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eAP49sA74359; Fri, 24 Nov 2000 23:09:54 -0500 (EST) (envelope-from pgman@candle.pha.pa.us) Received: (from pgman@localhost) by candle.pha.pa.us (8.9.0/8.9.0) id XAA29073; Fri, 24 Nov 2000 23:09:25 -0500 (EST) From: Bruce Momjian Message-Id: <200011250409.XAA29073@candle.pha.pa.us> Subject: Re: [INTERFACES] Re: no meaningful way to determine fe or beversion? In-Reply-To: <3A16B252.86AD5A5D@lecando.com> "from Anders Bengtsson at Nov 18, 2000 05:46:10 pm" To: Anders Bengtsson Date: Fri, 24 Nov 2000 23:09:25 -0500 (EST) CC: pgsql-bugs@postgresql.org, PostgreSQL-interfaces X-Mailer: ELM [version 2.4ME+ PL77 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200011/132 X-Sequence-Number: 154 OK, I think I understand this now. getDatabaseProductVersion() calls getVersion, which is defined in Driver.java.in as the version string from configure. It returns the version of the client jdbc code. To get the server version, you need that SELECT you suggested. Is that OK? > I think Peter Mount looked at it, but there where some big changes to > the JDBC driver going on at that time. When I look at the code in CVS > now it looks nothing like what it did when I did the patch against it. > > Anyway, I found my old patch in the archives: > http://www.postgresql.org/mhonarc/pgsql-interfaces/2000-09/msg00051.html > > /Anders > > Bruce Momjian wrote: > > > > This concerns me. Did we lose a patch here? Can you send it again? > > > > > > > I posted a patch for the JDBC driver to pgsql-interfaces to do just that > > > some time ago. Don't know what happened to it, though .. > > _____________________________________________________________________ > A n d e r s B e n g t s s o n anders@lecando.com > Stockholm, Sweden > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026