Обсуждение: [pgjdbc/pgjdbc] 4dc98b: fix: adjust date, hour, minute, second whenroundi...

Поиск
Список
Период
Сортировка

[pgjdbc/pgjdbc] 4dc98b: fix: adjust date, hour, minute, second whenroundi...

От
Vladimir Sitnikov
Дата:
Branch: refs/heads/master
  Home:   https://github.com/pgjdbc/pgjdbc
  Commit: 4dc98be81829bbff3bb00c23214606757df16fab
      https://github.com/pgjdbc/pgjdbc/commit/4dc98be81829bbff3bb00c23214606757df16fab
  Author: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
  Date:   2018-06-08 (Fri, 08 Jun 2018)

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

  Log Message:
  -----------
  fix: adjust date, hour, minute, second when rounding timestamp (#1212)

PostgreSQL supports microsecond resolution only, so PgJDBC rounds
nanoseconds to micros. When that happens the number of years, days, hours, seconds, minutes, etc
might change as well

fixes #1211



      **NOTE:** This service been marked for deprecation:
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.