Skip to content

Conversation

@vypxl
Copy link

@vypxl vypxl commented Jan 8, 2026

Resolves #765

I've recently encountered the same issue that was raised about two years ago, and decided to think of a fix for it.

What I ended up doing is to add a case to the inferType function, which infers jsonb type 3802 if the supplied value is an object.

This resolves any problems I had with jsonb values.

Copy link

@AceCodePt AceCodePt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything else looks good but the type system should be spot on.

}

type EscapableArray = (string | number)[]
type EscapableArray = (string | number | object)[]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dislike the type object. Please use Record<string,unknown>

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.

Multiple updates in one query does not support jsonb columns

2 participants