diff --git a/CHANGELOG.md b/CHANGELOG.md index 4359fb09..b41f92f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,11 +16,13 @@ ## Fixes - Better handling of whitespaces in the star macro ([#651](https://github.com/dbt-labs/dbt-utils/pull/651)) - Fix to correct behavior in `mutually_exclusive_ranges` test in certain situations when `zero_length_range_allowed: true` and multiple ranges in a partition have the same value for `lower_bound_column`. ([[#659](https://github.com/dbt-labs/dbt-utils/issues/659)], [#660](https://github.com/dbt-labs/dbt-utils/pull/660)) +- Fix to utilize dbt Core version of `escape_single_quotes` instead of version from dbt Utils ([[#689](https://github.com/dbt-labs/dbt-utils/issues/689)], [#692](https://github.com/dbt-labs/dbt-utils/pull/692)) ## Contributors: - [@christineberger](https://github.com/christineberger) (#624) - [@courentin](https://github.com/courentin) (#651) - [@sfc-gh-ancoleman](https://github.com/sfc-gh-ancoleman) (#660) +- [@zachoj10](https://github.com/zachoj10) (#692) # dbt-utils v0.8.6 diff --git a/macros/sql/pivot.sql b/macros/sql/pivot.sql index 88751062..4233ba9d 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 }} '{{ escape_single_quotes(value) }}' then {{ then_value }} else {{ else_value }} end