Re: Regression in 42.2.0? "The server''s DateStyle parameter was changed to ISO. The JDBC driver requires DateStyle to begin with ISO for correct operation. "

From: Dave Cramer <pg(at)fastcrypt(dot)com>
To: Stefan Tzeggai <tzeggai(at)empirica-systeme(dot)de>
Cc: pgsql-jdbc(at)lists(dot)postgresql(dot)org
Subject: Re: Regression in 42.2.0? "The server''s DateStyle parameter was changed to ISO. The JDBC driver requires DateStyle to begin with ISO for correct operation. "
Date: 2018-01-24 15:57:08
Message-ID: CADK3HHJiuoQbp=fgbboVkq3PZRm6AvvEwEChT_E0k=+rxKWsFw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

42.1.1 will address this. The release is imminent.

Dave Cramer

davec(at)postgresintl(dot)com
www.postgresintl.com

On 22 January 2018 at 10:29, Stefan Tzeggai <tzeggai(at)empirica-systeme(dot)de>
wrote:

> I upgraded the JDBC driver today from 42.1.4 to 42.2.0
>
> and I get the following error:
>
> "The server''s DateStyle parameter was changed to ISO. The JDBC driver
> requires DateStyle to begin with ISO for correct operation. "
>
> It connects to a pgbouncer that has been running with JDBC 42.1.4
> without problems.
>
> I debugged into QueryExecutorImpl
>
> > if (name.equals("DateStyle") && !value.startsWith("ISO,")) {
> > close(); // we're screwed now; we can't trust any subsequent date.
> > throw new PSQLException(GT.tr(
> > "The server''s DateStyle parameter was changed to {0}. The
> JDBC driver requires DateStyle to begin with ISO for correct operation.",
> > value), PSQLState.CONNECTION_FAILURE);
> > }
>
> When it throws the exception value is "ISO" but it is checked for
> startsWith("ISO,")
>
> Might that be a bug? Maybe you want a regex here to check for a
> word-break instead of a comma?!
>
> Steve
>
>

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Vladimir Sitnikov 2018-01-25 14:53:48 [pgjdbc/pgjdbc] e53838: docs: prepare release notes for 42.2.1 (#1093)
Previous Message Dave Cramer 2018-01-24 15:56:40 Re: Postgres and Java 9