Re: Re: [BUGS] no meaningful way to determine fe or be version? - Mailing list pgsql-interfaces

From Joseph Shraibman
Subject Re: Re: [BUGS] no meaningful way to determine fe or be version?
Date
Msg-id 3A147930.4284AEA0@selectacast.net
Whole thread Raw
In response to Re: [BUGS] no meaningful way to determine fe or be version?  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-interfaces
Bruce Momjian wrote:
> 
> > Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > > Yes, should we return the client or server version from the interface?
> > > If we return the server version, how does someone query the client version?
> >
> > sorry, yes.  the client-side interfaces (DatabaseMetaData.getDriver*)
> > are actually fine - they return a major/minor version that have been
> > getting manually updated (they're much more visible, being in
> > org/postgresql/Driver.java).  the server-side interfaces
> > (DatabaseMetaData.getDatabase{Name,Version}) are the ones that aren't
> > tied to the server, return hardcoded strings and haven't been getting
> > updated regularly.
> 
> Oh, really.  I didn't know there was that distinction.  Sounds like they
> should be callling SELECT version().  Comments, Java folks?
> 
I remember someone posting a patch saying that he changed the code to do
that.  Or saying he was going to post a patch, I forget.

Anyway, I just checked and it isn't in the cvs.

-- 
Joseph Shraibman
jks@selectacast.net
Increase signal to noise ratio.  http://www.targabot.com


pgsql-interfaces by date:

Previous
From: "Michael Miyabara-McCaskey"
Date:
Subject: ODBC Windows driver corrupts data?
Next
From: Thomas Lockhart
Date:
Subject: Re: ODBC Maintainer?