-
-
Notifications
You must be signed in to change notification settings - Fork 609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Postgres date and time boundary conditions #2643
Conversation
Incompatible changes
com.typesafe.slick:slick
since 3.5.0-pre.5.4a92f781
|
Incompatibility | Symbol | Problem |
---|---|---|
Backward | slick.jdbc.PostgresProfile$JdbcTypes$InstantJdbcType |
MissingTypesProblem the type hierarchy of class slick.jdbc.PostgresProfile#JdbcTypes#InstantJdbcType is different in current version. Missing types {slick.jdbc.PostgresProfile$JdbcTypes$PostgreTimeJdbcType} |
Backward | slick.jdbc.PostgresProfile$JdbcTypes$LocalDateJdbcType |
MissingTypesProblem the type hierarchy of class slick.jdbc.PostgresProfile#JdbcTypes#LocalDateJdbcType is different in current version. Missing types {slick.jdbc.PostgresProfile$JdbcTypes$PostgreTimeJdbcType} |
Backward | slick.jdbc.PostgresProfile$JdbcTypes$LocalDateTimeJdbcType |
MissingTypesProblem the type hierarchy of class slick.jdbc.PostgresProfile#JdbcTypes#LocalDateTimeJdbcType is different in current version. Missing types {slick.jdbc.PostgresProfile$JdbcTypes$PostgreTimeJdbcType} |
Backward | slick.jdbc.PostgresProfile$JdbcTypes$LocalTimeJdbcType |
MissingTypesProblem the type hierarchy of class slick.jdbc.PostgresProfile#JdbcTypes#LocalTimeJdbcType is different in current version. Missing types {slick.jdbc.PostgresProfile$JdbcTypes$PostgreTimeJdbcType} |
Backward | slick.jdbc.PostgresProfile$JdbcTypes$OffsetTimeJdbcType |
MissingTypesProblem the type hierarchy of class slick.jdbc.PostgresProfile#JdbcTypes#OffsetTimeJdbcType is different in current version. Missing types {slick.jdbc.PostgresProfile$JdbcTypes$PostgreTimeJdbcType} |
Backward | slick.jdbc.PostgresProfile$JdbcTypes$PostgreTimeJdbcType |
MissingClassProblem interface slick.jdbc.PostgresProfile#JdbcTypes#PostgreTimeJdbcType does not have a correspondent in current version |
I know it's done a lot already but relying on the |
6734919
to
5900d10
Compare
Incompatible changes
com.typesafe.slick:slick
since 3.5.0-pre.7.51172fc8
|
Incompatibility | Symbol | Problem |
---|---|---|
Backward | slick.jdbc.PostgresProfile$JdbcTypes$InstantJdbcType |
MissingTypesProblem the type hierarchy of class slick.jdbc.PostgresProfile#JdbcTypes#InstantJdbcType is different in current version. Missing types {slick.jdbc.PostgresProfile$JdbcTypes$PostgreTimeJdbcType} |
Backward | slick.jdbc.PostgresProfile$JdbcTypes$LocalDateJdbcType |
MissingTypesProblem the type hierarchy of class slick.jdbc.PostgresProfile#JdbcTypes#LocalDateJdbcType is different in current version. Missing types {slick.jdbc.PostgresProfile$JdbcTypes$PostgreTimeJdbcType} |
Backward | slick.jdbc.PostgresProfile$JdbcTypes$LocalDateTimeJdbcType |
MissingTypesProblem the type hierarchy of class slick.jdbc.PostgresProfile#JdbcTypes#LocalDateTimeJdbcType is different in current version. Missing types {slick.jdbc.PostgresProfile$JdbcTypes$PostgreTimeJdbcType} |
Backward | slick.jdbc.PostgresProfile$JdbcTypes$LocalTimeJdbcType |
MissingTypesProblem the type hierarchy of class slick.jdbc.PostgresProfile#JdbcTypes#LocalTimeJdbcType is different in current version. Missing types {slick.jdbc.PostgresProfile$JdbcTypes$PostgreTimeJdbcType} |
Backward | slick.jdbc.PostgresProfile$JdbcTypes$OffsetTimeJdbcType |
MissingTypesProblem the type hierarchy of class slick.jdbc.PostgresProfile#JdbcTypes#OffsetTimeJdbcType is different in current version. Missing types {slick.jdbc.PostgresProfile$JdbcTypes$PostgreTimeJdbcType} |
Backward | slick.jdbc.PostgresProfile$JdbcTypes$PostgreTimeJdbcType |
MissingClassProblem interface slick.jdbc.PostgresProfile#JdbcTypes#PostgreTimeJdbcType does not have a correspondent in current version |
Hi @nafg, are you able to suggest an preferred alternative approach for isolating the tests to a specific database provider or is there a constant which I can reference? |
Maybe something like |
Hi @nafg, I've applied the change to the tests, is there anything which needs to be done to land this PR? |
Incompatible changes
com.typesafe.slick:slick
since 3.5.0-pre.7.51172fc8
|
Incompatibility | Symbol | Problem |
---|---|---|
Backward | slick.jdbc.PostgresProfile$JdbcTypes$InstantJdbcType |
MissingTypesProblem the type hierarchy of class slick.jdbc.PostgresProfile#JdbcTypes#InstantJdbcType is different in current version. Missing types {slick.jdbc.PostgresProfile$JdbcTypes$PostgreTimeJdbcType} |
Backward | slick.jdbc.PostgresProfile$JdbcTypes$LocalDateJdbcType |
MissingTypesProblem the type hierarchy of class slick.jdbc.PostgresProfile#JdbcTypes#LocalDateJdbcType is different in current version. Missing types {slick.jdbc.PostgresProfile$JdbcTypes$PostgreTimeJdbcType} |
Backward | slick.jdbc.PostgresProfile$JdbcTypes$LocalDateTimeJdbcType |
MissingTypesProblem the type hierarchy of class slick.jdbc.PostgresProfile#JdbcTypes#LocalDateTimeJdbcType is different in current version. Missing types {slick.jdbc.PostgresProfile$JdbcTypes$PostgreTimeJdbcType} |
Backward | slick.jdbc.PostgresProfile$JdbcTypes$LocalTimeJdbcType |
MissingTypesProblem the type hierarchy of class slick.jdbc.PostgresProfile#JdbcTypes#LocalTimeJdbcType is different in current version. Missing types {slick.jdbc.PostgresProfile$JdbcTypes$PostgreTimeJdbcType} |
Backward | slick.jdbc.PostgresProfile$JdbcTypes$OffsetTimeJdbcType |
MissingTypesProblem the type hierarchy of class slick.jdbc.PostgresProfile#JdbcTypes#OffsetTimeJdbcType is different in current version. Missing types {slick.jdbc.PostgresProfile$JdbcTypes$PostgreTimeJdbcType} |
Backward | slick.jdbc.PostgresProfile$JdbcTypes$PostgreTimeJdbcType |
MissingClassProblem interface slick.jdbc.PostgresProfile#JdbcTypes#PostgreTimeJdbcType does not have a correspondent in current version |
de3e62a
to
dafcdf8
Compare
Incompatible changes
com.typesafe.slick:slick
since 3.5.0-pre.15.cec14293
|
Incompatibility | Symbol | Problem |
---|---|---|
Backward | slick.jdbc.PostgresProfile$JdbcTypes$InstantJdbcType |
MissingTypesProblem the type hierarchy of class slick.jdbc.PostgresProfile#JdbcTypes#InstantJdbcType is different in current version. Missing types {slick.jdbc.PostgresProfile$JdbcTypes$PostgreTimeJdbcType} |
Backward | slick.jdbc.PostgresProfile$JdbcTypes$LocalDateJdbcType |
MissingTypesProblem the type hierarchy of class slick.jdbc.PostgresProfile#JdbcTypes#LocalDateJdbcType is different in current version. Missing types {slick.jdbc.PostgresProfile$JdbcTypes$PostgreTimeJdbcType} |
Backward | slick.jdbc.PostgresProfile$JdbcTypes$LocalDateTimeJdbcType |
MissingTypesProblem the type hierarchy of class slick.jdbc.PostgresProfile#JdbcTypes#LocalDateTimeJdbcType is different in current version. Missing types {slick.jdbc.PostgresProfile$JdbcTypes$PostgreTimeJdbcType} |
Backward | slick.jdbc.PostgresProfile$JdbcTypes$LocalTimeJdbcType |
MissingTypesProblem the type hierarchy of class slick.jdbc.PostgresProfile#JdbcTypes#LocalTimeJdbcType is different in current version. Missing types {slick.jdbc.PostgresProfile$JdbcTypes$PostgreTimeJdbcType} |
Backward | slick.jdbc.PostgresProfile$JdbcTypes$OffsetTimeJdbcType |
MissingTypesProblem the type hierarchy of class slick.jdbc.PostgresProfile#JdbcTypes#OffsetTimeJdbcType is different in current version. Missing types {slick.jdbc.PostgresProfile$JdbcTypes$PostgreTimeJdbcType} |
Backward | slick.jdbc.PostgresProfile$JdbcTypes$PostgreTimeJdbcType |
MissingClassProblem interface slick.jdbc.PostgresProfile#JdbcTypes#PostgreTimeJdbcType does not have a correspondent in current version |
LocalTime and OffsetTime tests fail
dafcdf8
to
3c72438
Compare
Incompatible changes
com.typesafe.slick:slick
since 3.5.0-pre.23.6862f90f
|
Incompatibility | Symbol | Problem |
---|---|---|
Backward | slick.jdbc.PostgresProfile$PostgresJdbcTypes$PostgreTimeJdbcType |
MissingClassProblem interface slick.jdbc.PostgresProfile#PostgresJdbcTypes#PostgreTimeJdbcType does not have a correspondent in current version |
Backward | slick.jdbc.PostgresProfile$PostgresJdbcTypes$PostgresInstantJdbcType |
MissingTypesProblem the type hierarchy of class slick.jdbc.PostgresProfile#PostgresJdbcTypes#PostgresInstantJdbcType is different in current version. Missing types {slick.jdbc.PostgresProfile$PostgresJdbcTypes$PostgreTimeJdbcType} |
Backward | slick.jdbc.PostgresProfile$PostgresJdbcTypes$PostgresLocalDateJdbcType |
MissingTypesProblem the type hierarchy of class slick.jdbc.PostgresProfile#PostgresJdbcTypes#PostgresLocalDateJdbcType is different in current version. Missing types {slick.jdbc.PostgresProfile$PostgresJdbcTypes$PostgreTimeJdbcType} |
Backward | slick.jdbc.PostgresProfile$PostgresJdbcTypes$PostgresLocalDateTimeJdbcType |
MissingTypesProblem the type hierarchy of class slick.jdbc.PostgresProfile#PostgresJdbcTypes#PostgresLocalDateTimeJdbcType is different in current version. Missing types {slick.jdbc.PostgresProfile$PostgresJdbcTypes$PostgreTimeJdbcType} |
Backward | slick.jdbc.PostgresProfile$PostgresJdbcTypes$PostgresLocalTimeJdbcType |
MissingTypesProblem the type hierarchy of class slick.jdbc.PostgresProfile#PostgresJdbcTypes#PostgresLocalTimeJdbcType is different in current version. Missing types {slick.jdbc.PostgresProfile$PostgresJdbcTypes$PostgreTimeJdbcType} |
Backward | slick.jdbc.PostgresProfile$PostgresJdbcTypes$PostgresOffsetTimeJdbcType |
MissingTypesProblem the type hierarchy of class slick.jdbc.PostgresProfile#PostgresJdbcTypes#PostgresOffsetTimeJdbcType is different in current version. Missing types {slick.jdbc.PostgresProfile$PostgresJdbcTypes$PostgreTimeJdbcType} |
@JamesMcIntosh thanks! How should I categorize this? Is it a bug fix or an improvement? And is it significant enough to be in the Release Highlights section? |
Hi @nafg, thanks for getting this merged! I would say it's a bugfix more so (even though it is also an improvement in some areas) as some of the issues which it fixes were reported as bugs. Many thanks |
This PR deals with the max and min values for dates and times in the PostgreSQL profile.
The profile currently passes through the values
infinity
/-infinity
when you use the max/min values of the Java date/time types, this was introduced in PR #2238This needs to be refined:
infinity
fordate
andtimestamp
SQL typesLocalTime
boundaries are23:59:59.999999999
and00:00:00
, Postgres can return24:00:00
from atime
columnOffsetTime
has the same boundaries asLocalTime
with a additionalZoneOffset
of +/-18:00 hours, Postgres only supports timezone boundaries of +/-15:59https://www.postgresql.org/docs/current/datatype-datetime.html
https://docs.oracle.com/javase/8/docs/api/java/time/LocalTime.html
https://docs.oracle.com/javase/8/docs/api/java/time/OffsetTime.html
Related issues & PRs:
#2132
#2090
#1987
pgjdbc/pgjdbc#2713
#2238
Looks like there was some work which stalled which looked at Date/Time across all databases too
#2035