Skip to content
Discussion options

You must be logged in to vote

@skoobasteeve The error message says is not related to the cast, but to the usage of the like operator(underlyingly it uses ~~) on the xml column.

On your curl request you're basically doing:

SELECT xml::text FROM api.accounts WHERE xml LIKE '%raymond%';`

Casting on filters is not supported directly because it invalidates indexes on the columns. For more details see #1952.

You can use a computed column for this.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by skoobasteeve
Comment options

You must be logged in to vote
2 replies
@steve-chavez
Comment options

@skoobasteeve
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2678 on February 22, 2023 18:20.