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
drizzle-orm
0.39.0
drizzle-kit
0.30.3
No response
The following query arrayOverlaps where clause resulted in an unexpected ERR error: operator does not exist: text[] && record error
arrayOverlaps
ERR error: operator does not exist: text[] && record
.where( and( eq(table.organizationId, orgId), arrayOverlaps(table.messageIds, questionIds), ), );
This exact replacement does work:
const formattedIds = questionIds.map(id => `'${id}'`).join(', '); .where( and( eq(table.organizationId, orgId), sql.raw(`table.message_ids && ARRAY[${formattedIds}]::text[]`), ),
Also tried using `sql`` variations and not seemed to work, had to use sql.raw() in the end.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Report hasn't been filed before.
What version of
drizzle-orm
are you using?0.39.0
What version of
drizzle-kit
are you using?0.30.3
Other packages
No response
Describe the Bug
The following query
arrayOverlaps
where clause resulted in an unexpectedERR error: operator does not exist: text[] && record
errorThis exact replacement does work:
Also tried using `sql`` variations and not seemed to work, had to use sql.raw() in the end.
The text was updated successfully, but these errors were encountered: