Re: PL/Java 1.5.2 - fixes one regression in date conversion in 1.5.1

Поиск
Список
Период
Сортировка
От Christoph Berg
Тема Re: PL/Java 1.5.2 - fixes one regression in date conversion in 1.5.1
Дата
Msg-id 20181106074931.GB3898@msg.df7cb.de
обсуждение исходный текст
Ответ на PL/Java 1.5.2 - fixes one regression in date conversion in 1.5.1  (Chapman Flack <chap@anastigmatix.net>)
Ответы Re: PL/Java 1.5.2 - fixes one regression in date conversion in 1.5.1
Re: PL/Java 1.5.2 - fixes one regression in date conversion in 1.5.1
Список pgsql-pkg-debian
Re: Chapman Flack 2018-11-05 <5BE08D74.2060207@anastigmatix.net>
> Before 1.5.1, PostgreSQL date, time, and timestamp values could be accessed
> in PL/Java as java.sql.Date, java.sql.Time, and java.sql.Timestamp objects.
> PL/Java 1.5.1 added the option of accessing those values as objects of new
> classes in the Java 8+ java.time package. The new classes are recommended as
> a superior API for accessing dates, times, and timestamps.
> 
> However, one regression resulted in the older conversion between PostgreSQL
> date and java.sql.Date, leading to an error of one day for some dates of the
> year in some time zones. Release 1.5.2 restores the former behavior.

Hi,

1.5.2 doesn't build on Jessie and Trusty anymore (JDK 7):

https://pgdgbuild.dus.dg-i.net/job/postgresql-pljava-binaries/24/
https://pgdgbuild.dus.dg-i.net/job/postgresql-pljava-binaries/24/architecture=amd64,distribution=jessie/console

23:35:43 [ERROR] /<<PKGBUILDDIR>>/pljava-examples/src/main/java/org/postgresql/pljava/example/saxon/S9.java:[35,16]
error:package java.time does not exist
 
23:35:43 [ERROR] /<<PKGBUILDDIR>>/pljava-examples/src/main/java/org/postgresql/pljava/example/saxon/S9.java:[879,12]
error:cannot find symbol
 
23:35:43 [ERROR] symbol:   variable TIME_WITH_TIMEZONE
23:35:43 [ERROR] location: class Types


(There is another issue that apparently maven doesn't like running
several times in parallel, it chokes while reading/writing to ~/.m2.)


I've also enabled -Psaxon-examples - is it correct that no new files
appear in the .deb, but the examples are inside the existing
/usr/share/postgresql/11/pljava/pljava-examples-1.5.2.jar file?

Christoph


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

Предыдущее
От: Chapman Flack
Дата:
Сообщение: PL/Java 1.5.2 - fixes one regression in date conversion in 1.5.1
Следующее
От: apt.postgresql.org repository
Дата:
Сообщение: patroni updated to version 1.5.1-1.pgdg+1