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

From Thomas Kellerer
Subject JDBC driver returns different version strings on Ubuntu and CentOS
Date
Msg-id p6ero2$ge$1@blaine.gmane.org
Whole thread Raw
Responses Re: JDBC driver returns different version strings on Ubuntu and CentOS  (Jorge Solórzano <jorsol@gmail.com>)
List pgsql-jdbc
I have just noticed that DatabaseMetaData.getDatabaseProductVersion() returns the String "10.2.2" when connected to a
serverrunning on Ubuntu, but returns "10.2" when connected to a server running on CentOS or Windows. 
 

Is there a specific reason for this? 

It's a bit confusing because 10.2.2 doesn't actually exists as a "real" Postgres version.

This happens with the driver versions 42.1.4 and 42.2.1 (haven tried others)

Regards
Thomas
 



pgsql-jdbc by date:

Previous
From: Vladimir Sitnikov
Date:
Subject: [pgjdbc/pgjdbc] 45c32b: fix: ArrayIndexOutOfBoundsException whenusing the...
Next
From: Jorge Solórzano
Date:
Subject: Re: JDBC driver returns different version strings on Ubuntu and CentOS