From 4e28d6da126e2940d17f697de783a717f2503188 Mon Sep 17 00:00:00 2001 From: Joel Labes Date: Tue, 29 Nov 2022 11:34:14 +1300 Subject: [PATCH] Change to dbt.escape_single_quotes --- macros/sql/pivot.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macros/sql/pivot.sql b/macros/sql/pivot.sql index 88751062..3eabc727 100644 --- a/macros/sql/pivot.sql +++ b/macros/sql/pivot.sql @@ -69,7 +69,7 @@ Arguments: {{ agg }}( {% if distinct %} distinct {% endif %} case - when {{ column }} {{ cmp }} '{{ dbt_utils.escape_single_quotes(value) }}' + when {{ column }} {{ cmp }} '{{ dbt.escape_single_quotes(value) }}' then {{ then_value }} else {{ else_value }} end