Re: JDBC driver returns different version strings on Ubuntu and CentOS - Mailing list pgsql-jdbc

From Jorge Solórzano
Subject Re: JDBC driver returns different version strings on Ubuntu and CentOS
Date
Msg-id CA+cVU8PwVX5m49RAZGUaY7zVe+EWpnW6cBHyb543rEizMX3e7A@mail.gmail.com
Whole thread Raw
In response to Re: JDBC driver returns different version strings on Ubuntu andCentOS  (Thomas Kellerer <spam_eater@gmx.net>)
List pgsql-jdbc

On Wed, Feb 21, 2018 at 11:43 AM, Thomas Kellerer <spam_eater@gmx.net> wrote:

As I said, that's the return value of DatabaseMetaData.
​​
getDatabaseProductVersion()

So apparently there *is* some parsing going on.


The receiveParameterStatus() of QueryExecutorImpl calls setServerVersion(value) of QueryExecutorBase:
https://github.com/pgjdbc/pgjdbc/blob/45c32bc6af2e140ff86dabd718344c74fc244394/pgjdbc/src/main/java/org/postgresql/core/v3/QueryExecutorImpl.java#L2637
 
There is no parsing going on.​

In my Ubuntu 
getDatabaseProductVersion() returns "10.2 (Ubuntu 10.2-1.pgdg16.04+1)".

pgsql-jdbc by date:

Previous
From: Thomas Kellerer
Date:
Subject: Re: JDBC driver returns different version strings on Ubuntu andCentOS
Next
From: Vladimir Sitnikov
Date:
Subject: Re: JDBC driver returns different version strings on Ubuntu and CentOS