Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(pg): introspect composite index with mixed types
Browse files Browse the repository at this point in the history
dalton-oliveira committed Dec 28, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 06be106 commit 49ae6c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drizzle-kit/src/serializer/pgSerializer.ts
Original file line number Diff line number Diff line change
@@ -1563,7 +1563,7 @@ WHERE
ON i.indrelid = a.attrelid AND k.attnum = a.attnum
JOIN pg_namespace c on c.oid = t.relnamespace
LEFT JOIN pg_am AS am ON ic.relam = am.oid
JOIN pg_opclass opc ON opc.oid = ANY(i.indclass)
JOIN pg_opclass opc ON opc.oid = i.indclass[k.i-1]
WHERE
c.nspname = '${tableSchema}' AND
t.relname = '${tableName}';`,

0 comments on commit 49ae6c2

Please sign in to comment.