We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have the following statement to as part of a larger query: sql`AND my_table.some_column = ANY(${values}::${pgSql(type)}[])`
sql`AND my_table.some_column = ANY(${values}::${pgSql(type)}[])`
When type is text, it works as expected. When type is int I get the following error: Error [PostgresError]: type "int[]" does not exist
text
int
Error [PostgresError]: type "int[]" does not exist
Shouldn't I be able to use dynamic type casting for both text and int ?
The text was updated successfully, but these errors were encountered:
Yes, that should work. It’s probably an entirely PostgreSQL-side issue, though, and not something introduced by this client.
integer[]
Sorry, something went wrong.
No branches or pull requests
I have the following statement to as part of a larger query:
sql`AND my_table.some_column = ANY(${values}::${pgSql(type)}[])`
When type is
text
, it works as expected. When type isint
I get the following error:Error [PostgresError]: type "int[]" does not exist
Shouldn't I be able to use dynamic type casting for both
text
andint
?The text was updated successfully, but these errors were encountered: