Skip to content

fix: EXPOSED-1046 Deserialize JSON columns returned as a Clob - #2879

Open
obabichevjb wants to merge 1 commit into
mainfrom
obabichev/exposed-1046-json-clob
Open

fix: EXPOSED-1046 Deserialize JSON columns returned as a Clob#2879
obabichevjb wants to merge 1 commit into
mainfrom
obabichev/exposed-1046-json-clob

Conversation

@obabichevjb

Copy link
Copy Markdown
Collaborator

Description

Summary of the change: A json() column reading from a large-character column now deserializes the value instead of silently returning the driver's java.sql.Clob handle.

Detailed description:

  • Why: JsonColumnType.valueFromDB accepted String and ByteArray, but not java.sql.Clob. When the JSON payload lives in a large-character column, the JDBC driver hands back a Clob handle rather than the text, and that case fell through to the else branch.

Type of Change

Please mark the relevant options with an "X":

  • Bug fix

Affected databases:

  • Oracle
  • H2 (Oracle)

Related Issues

EXPOSED-1046 https://youtrack.jetbrains.com/issue/EXPOSED-1046

@obabichevjb
obabichevjb force-pushed the obabichev/exposed-1046-json-clob branch from b6be1b3 to 1e26596 Compare August 7, 2026 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant