Skip to content

Commit 4bdcaf6

Browse files
fixed issue with double quotes hardcoded for column (#1119)
Co-authored-by: Colin Rogers <[email protected]>
1 parent 52fda88 commit 4bdcaf6

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
kind: Fixes
2+
body: Fixed hard-coded quoting issue in snapshots.
3+
time: 2025-07-11T12:09:31.589323601-06:00
4+
custom:
5+
Author: stevetracvc
6+
Issue: "1118"

dbt-adapters/src/dbt/include/global_project/macros/materializations/snapshots/helpers.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{% macro default__create_columns(relation, columns) %}
99
{% for column in columns %}
1010
{% call statement() %}
11-
alter table {{ relation.render() }} add column "{{ column.name }}" {{ column.data_type }};
11+
alter table {{ relation.render() }} add column {{ adapter.quote(column.name) }} {{ column.data_type }};
1212
{% endcall %}
1313
{% endfor %}
1414
{% endmacro %}

0 commit comments

Comments
 (0)