-
Notifications
You must be signed in to change notification settings - Fork 667
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: EXPOSED-384 CurrentTimestamp cannot be used with OffsetDateTimeC…
…olumnType (#2081) * fix: EXPOSED-384 CurrentTimestamp cannot be used with OffsetDateTimeColumnType Since the 0.50.0 column type safety changes, CurrentTimestamp is no longer a class, but an object, and it no longer returns type T, but Instant. So its previous use as a default expression with a timezone compatible column is no longer possible, as even changing to a singleton still required OffsetDateTime as the return type. This introduces a new object CurrentTimestampWithTimeZone for this specific use to both modules exposed-java-time and exposed-kotlin-datetime. Rather than repeating the same query builder logic, the 3 CurrentX objects now extend from a base sealed class.
- Loading branch information
Showing
7 changed files
with
77 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters