JDBC driver returns different version strings on Ubuntu and CentOS

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: JDBC driver returns different version strings on Ubuntu and CentOS
Date: 2018-02-19 15:52:33
Message-ID: p6ero2$ge$1@blaine.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

I have just noticed that DatabaseMetaData.getDatabaseProductVersion() returns the String "10.2.2" when connected to a server running 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

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Jorge Solórzano 2018-02-19 17:04:30 Re: JDBC driver returns different version strings on Ubuntu and CentOS
Previous Message Vladimir Sitnikov 2018-02-18 11:33:34 [pgjdbc/pgjdbc] 45c32b: fix: ArrayIndexOutOfBoundsException when using the...