-
Notifications
You must be signed in to change notification settings - Fork 694
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: EXPOSED-130 Logger throws ClassCastException with JSON and ListS…
…erializer (#1835) * fix: EXPOSED-130 Logger throws ClassCastException with JSON and ListSerializer When a json/jsonb column is created that takes a List or ListSerializer, it correctly deserializes/serializes the json array to and from the database. However, attempting to log the statements involved throws ClassCastException, whereas there is no issue if the column is created to take an Array or ArraySerializer instead. The former extend Iterable, which is being handled separately in ColumnType.valueToString(). Overriding this branch to directly use the result of nonNullValueToString() fixes the logger issue.
- Loading branch information
Showing
4 changed files
with
90 additions
and
0 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