Skip to content

Commit

Permalink
Fix unquoted database name
Browse files Browse the repository at this point in the history
  • Loading branch information
skion authored May 28, 2024
1 parent fc98e4e commit d1a73b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macros/sql/get_tables_by_pattern_sql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
table_schema as {{ adapter.quote('table_schema') }},
table_name as {{ adapter.quote('table_name') }},
{{ dbt_utils.get_table_types_sql() }}
from {{ database }}.information_schema.tables
from {{ adapter.quote(database) }}.information_schema.tables
where table_schema ilike '{{ schema_pattern }}'
and table_name ilike '{{ table_pattern }}'
and table_name not ilike '{{ exclude }}'
Expand Down

0 comments on commit d1a73b0

Please sign in to comment.