[JDBC] [pgjdbc/pgjdbc] 8287e7: test: assume integer datetimes for timestamptests...

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема [JDBC] [pgjdbc/pgjdbc] 8287e7: test: assume integer datetimes for timestamptests...
Дата
Msg-id 5975c0c8b064a_16823f89e433dc38107911@hookshot-fe3-cp1-prd.iad.github.net.mail
обсуждение исходный текст
Список pgsql-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.



В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Vladimir Sitnikov
Дата:
Сообщение: [JDBC] [pgjdbc/pgjdbc] ed0014: test: make StringTypeParameterTest 8.3+ since8.2 ...
Следующее
От: Vladimir Sitnikov
Дата:
Сообщение: [JDBC] [pgjdbc/pgjdbc] f0deab: fix: named statements were used whenfetchSize was...