BUG #14443: JDBC Driver > 1208 doesn't work with PGADV server

From: jec(at)jesc(dot)ch
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #14443: JDBC Driver > 1208 doesn't work with PGADV server
Date: 2016-12-01 10:34:57
Message-ID: 20161201103457.4360.38314@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 14443
Logged by: Jean-Eric Cuendet
Email address: jec(at)jesc(dot)ch
PostgreSQL version: Unsupported/Unknown
Operating system: Linux / Java
Description:

I user driver 1208. It works with my PGADV server 9.3.1.6 (version on 4
positions)
I upgraded with 1212 (1211 -> same problem) and it doesn't work anymore.
The problem is that the ServerVersion.parseServerVersionStr() method was
changed between 1208 -> 1211 and it doesn't wotk anymore.
In ServerVersion on line 145, we have:
if (versionParts == 3) {
This is wrong in the case of the version being > 3 which is my case.
It shoud be
if (versionParts >= 3) {

Thanks for the correction.

Browse pgsql-bugs by date

  From Date Subject
Next Message Peter Eisentraut 2016-12-01 13:56:50 Re: BUG #14442: serial maxvalue incorrect
Previous Message Tom Lane 2016-11-30 16:01:15 Re: BUG #14442: serial maxvalue incorrect