Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xgvi9-0007xi-ER for pgsql-jdbc@arkaria.postgresql.org; Wed, 22 Oct 2014 13:12:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Xgvi8-0004Pf-Pt for pgsql-jdbc@arkaria.postgresql.org; Wed, 22 Oct 2014 13:12:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XgudU-0007U9-Gt for pgsql-jdbc@postgresql.org; Wed, 22 Oct 2014 12:03:28 +0000 Received: from mxout2.iskon.hr ([213.191.128.81]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XgudR-0007vP-2a for pgsql-jdbc@postgresql.org; Wed, 22 Oct 2014 12:03:27 +0000 Received: from mxscanout.iskon.hr (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 0D8562E345F for ; Wed, 22 Oct 2014 14:03:24 +0200 (CEST) Received: from mxscanout.iskon.hr (localhost [127.0.0.1]) by mxscanout (MCF 1.0.2) with SMTP for pgsql-jdbc@postgresql.org; Wed, 22 Oct 2014 14:03:24 +0200 (CEST) Received: from in1.mail.iskon.hr (in1.mail.iskon.hr [213.191.133.66]) by mxscanout.iskon.hr (Postfix) with ESMTP id 0B7C82E3452 for ; Wed, 22 Oct 2014 14:03:24 +0200 (CEST) Received: from kas30pipe.localhost (localhost [127.0.0.1]) by in1.mail.iskon.hr (Postfix) with ESMTP id 010ACC608E for ; Wed, 22 Oct 2014 14:03:24 +0200 (CEST) X-Remote-IP: 213.202.97.37 Received: from charizard.infoart.hr (unknown [213.202.97.37]) by in1.mail.iskon.hr (Postfix) with ESMTP id CE013C608C for ; Wed, 22 Oct 2014 14:03:23 +0200 (CEST) Received: by charizard.infoart.hr (Postfix, from userid 5002) id E20FCCB0708; Wed, 22 Oct 2014 14:03:22 +0200 (CEST) Received: from vladimir (unknown [213.202.97.35]) by charizard.infoart.hr (Postfix) with ESMTP id C818ACB0268 for ; Wed, 22 Oct 2014 14:03:22 +0200 (CEST) From: =?iso-8859-2?Q?Vladimir_Crn=E8i=E6_=28Infoart_d.o.o.=29?= To: Date: Wed, 22 Oct 2014 14:03:22 +0200 MIME-Version: 1.0 X-Mailer: Microsoft Outlook 15.0 Thread-Index: Ac/t8BEHteJ1K22tQXSAD5paPPHitw== Content-Language: hr Message-ID: <001401cfedf0$2d861690$889243b0$@infoart.hr> Content-Type: multipart/alternative; boundary="----=_NextPart_000_0015_01CFEE00.F111CCC0" Subject: TIMESTAMP value binary transfer problem X-Anti-Virus: Kaspersky Anti-Virus for Linux Mail Server 5.6.45/RELEASE, bases: 20140401 #7726142, check: 20141022 clean X-SpamTest-Envelope-From: vcrncic@infoart.hr X-SpamTest-Group-ID: 00000000 X-SpamTest-Info: Profiles 68120 [Oct 22 2014] X-SpamTest-Info: {From: Likely Random} X-SpamTest-Info: {relay has no DNS name} X-SpamTest-Method: none X-SpamTest-Rate: 50 X-SpamTest-SPF: none X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0284], KAS30/Release X-Pg-Spam-Score: -0.2 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org This is a multipart message in MIME format. ------=_NextPart_000_0015_01CFEE00.F111CCC0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit 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) ------=_NextPart_000_0015_01CFEE00.F111CCC0 Content-Type: text/html; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable

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=3DTIMESTAMP or binaryTransfer=3Dfalse) problem = does not occur.

 

database = version: 9.1.1

driver version: 9.2, = 9.3

 

BINARY TRANSFER:

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

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

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

long value = (TimestampUtils): =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = 467600404000000

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

 

TEXT TRANSFER:

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

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

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

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

------=_NextPart_000_0015_01CFEE00.F111CCC0--