From: Michael Glaesemann <grzm@seespotcode.net>
To: pgsql-jdbc@postgresql.org
Subject: [pgjdbc/pgjdbc] 8287e7: test: assume integer datetimes for timestamp tests...
Date: Mon, 24 Jul 2017 02:41:28 -0700
Message-ID: <5975c0c8b064a_16823f89e433dc38107911@hookshot-fe3-cp1-prd.iad.github.net.mail> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: 8287e7f92f890a41f8d2b51980157a92e1cd57e8
https://github.com/pgjdbc/pgjdbc/commit/8287e7f92f890a41f8d2b51980157a92e1cd57e8
Author: Michael Glaesemann <grzm@seespotcode.net>
Date: 2017-07-24 (Mon, 24 Jul 2017)
Changed paths:
M pgjdbc/src/test/java/org/postgresql/test/TestUtil.java
M pgjdbc/src/test/java/org/postgresql/test/jdbc2/PGTimeTest.java
M pgjdbc/src/test/java/org/postgresql/test/jdbc2/PGTimestampTest.java
M pgjdbc/src/test/java/org/postgresql/test/jdbc2/TimestampTest.java
M pgjdbc/src/test/java/org/postgresql/test/jdbc42/GetObject310Test.java
M pgjdbc/src/test/java/org/postgresql/test/jdbc42/SetObject310Test.java
Log Message:
-----------
test: assume integer datetimes for timestamp tests (#873)
Float timestamp equality comparisons like comparisons with any float
are problematic if they don't take into account their imprecise
nature. Some timestamp tests produce false negative failures for
servers compiled with float timestamps. Use JUnit assumptions to skip
these tests if the server doesn't have integer datetimes.
This addresses https://github.com/pgjdbc/pgjdbc/issues/12 in part in
that it omits (most of) the failing tests, though it leaves these
timestamp behaviors untested under float timestamps, which was the
default prior to PostgreSQL 8.4.
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
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: grzm@seespotcode.net
Subject: Re: [pgjdbc/pgjdbc] 8287e7: test: assume integer datetimes for timestamp tests...
In-Reply-To: <5975c0c8b064a_16823f89e433dc38107911@hookshot-fe3-cp1-prd.iad.github.net.mail>
References: <5975c0c8b064a_16823f89e433dc38107911@hookshot-fe3-cp1-prd.iad.github.net.mail>
* 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