[pgjdbc/pgjdbc] d28def: fix: trim trailing zeros in timestamp strings retu...

From: Michael <michaelzg(at)users(dot)noreply(dot)github(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: [pgjdbc/pgjdbc] d28def: fix: trim trailing zeros in timestamp strings retu...
Date: 2017-10-25 12:43:47
Message-ID: 59f087034276b_38ad3fca69ef9c3c1485ad@hookshot-fe5-cp1-prd.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: d28deff57684349707d2b2a357048f59b0861bb1
https://github.com/pgjdbc/pgjdbc/commit/d28deff57684349707d2b2a357048f59b0861bb1
Author: Michael <michaelzg(at)users(dot)noreply(dot)github(dot)com>
Date: 2017-10-25 (Wed, 25 Oct 2017)

Changed paths:
M pgjdbc/src/main/java/org/postgresql/jdbc/TimestampUtils.java
M pgjdbc/src/test/java/org/postgresql/test/jdbc2/TimestampTest.java

Log Message:
-----------
fix: trim trailing zeros in timestamp strings returned in binary mode (#896)

This commit trims trailing zeros from the fractional seconds in timestamp strings returned under binary mode, where the fractional seconds used to be zero padded to 6 digits. This provides consistency in the returned timestamp strings under both forced and regular binary modes.

fixes #885

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2017-10-25 14:22:16 [pgjdbc/pgjdbc] 2dcb91: fix: support Subject Alternative Names for SSL con...
Previous Message Barnabas Bodnar 2017-10-25 11:08:31 [pgjdbc/pgjdbc] 8f5e24: fix: don't attempt to read a SQLXML more than once...