Skip to content

Commit

Permalink
fix: ai._table_def returning null if no indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterOdin authored and jgpruitt committed Jan 13, 2025
1 parent fcc7873 commit 596b9a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/extension/sql/idempotent/905-text-to-sql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ begin
;

-- indexes
select pg_catalog.string_agg(pg_catalog.pg_get_indexdef(i.indexrelid, 0, true), E';\n')
select coalesce(pg_catalog.string_agg(pg_catalog.pg_get_indexdef(i.indexrelid, 0, true), E';\n'), '')
into strict _indexes
from pg_catalog.pg_index i
where i.indrelid operator(pg_catalog.=) objid
Expand Down

0 comments on commit 596b9a6

Please sign in to comment.