[pgjdbc/pgjdbc] e442db: fix: avoid connection failure when DateStyle is se...

From: Vladimir Sitnikov <sitnikov(dot)vladimir(at)gmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: [pgjdbc/pgjdbc] e442db: fix: avoid connection failure when DateStyle is se...
Date: 2018-01-21 16:21:31
Message-ID: 5a64be0b7365b_52e92ad23cbc5c08926f@hookshot-fe-cace476.cp1-iad.github.net.mail
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: e442db1f064c78372f8312d65faee30842a68aea
https://github.com/pgjdbc/pgjdbc/commit/e442db1f064c78372f8312d65faee30842a68aea
Author: Vladimir Sitnikov <sitnikov(dot)vladimir(at)gmail(dot)com>
Date: 2018-01-21 (Sun, 21 Jan 2018)

Changed paths:
M CHANGELOG.md
M pgjdbc/src/main/java/org/postgresql/core/v3/QueryExecutorImpl.java
A pgjdbc/src/test/java/org/postgresql/test/jdbc2/DateStyleTest.java
M pgjdbc/src/test/java/org/postgresql/test/jdbc2/Jdbc2TestSuite.java

Log Message:
-----------
fix: avoid connection failure when DateStyle is set to ISO (#1081)

Default PostgreSQL configuration is DateStyle='iso, dmy', however pgjdbc should not raise errors
if DateStyle is just ISO

Note: PostgreSQL prints DateStyle value in upper case, and toUpperCase
was added just in case.

fixes #1080

Browse pgsql-jdbc by date

  From Date Subject
Next Message Stefan Tzeggai 2018-01-22 15:29:56 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. "
Previous Message praiskup 2018-01-19 11:53:02 [pgjdbc/pgjdbc]