pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vladimir Crnčić (Infoart d.o.o.) <vcrncic@infoart.hr>
To: pgsql-jdbc@postgresql.org
Subject: TIMESTAMP value binary transfer problem
Date: Wed, 22 Oct 2014 14:03:22 +0200
Message-ID: <001401cfedf0$2d861690$889243b0$@infoart.hr> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

There is a problem with JDBS driver interpretation of "timestamp without
time zone" values when binary transfer is on. When binary transfer is
disabled for TIMESTAMP columns (binaryTransferDisable=TIMESTAMP or
binaryTransfer=false) problem does not occur.

 

database version: 9.1.1

driver version: 9.2, 9.3

 

BINARY TRANSFER:

----------------

database value (TIMESTAMP):                 2014-10-26 01:00:04

bytes (AbstractJdbc2Resultset):              [0, 1, -87, 71, -77, -6, 45, 0]

long value (TimestampUtils):                    467600404000000

java timestamp (TimestampUtils):          2014-10-26 02:00:04.0
(not OK)

 

TEXT TRANSFER:

--------------

database value (TIMESTAMP):                                 2014-10-26
01:00:04

string value (AbstractJdbc2Resultset):                 2014-10-26 01:00:04

java timestamp (TimestampUtils):                         2014-10-26
01:00:04.0    (OK)

view thread (7+ messages)  latest in thread

Message-ID: <001401cfedf0$2d861690$889243b0$@infoart.hr>
Permalink:  ../001401cfedf0$2d861690$889243b0$@infoart.hr/
Also on:    postgresql.org/message-id/001401cfedf0$2d861690$889243b0$@infoart.hr

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: vcrncic@infoart.hr
  Subject: Re: TIMESTAMP value binary transfer problem
  In-Reply-To: <001401cfedf0$2d861690$889243b0$@infoart.hr>
  References: <001401cfedf0$2d861690$889243b0$@infoart.hr>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox