Skip to content

Commit

Permalink
(#1717) fix for re-rendering in statement calls
Browse files Browse the repository at this point in the history
  • Loading branch information
drewbanin committed Aug 30, 2019
1 parent fe48478 commit ec5a19c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/dbt/include/global_project/macros/core.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% macro statement(name=None, fetch_result=False, auto_begin=True) -%}
{%- if execute: -%}
{%- set sql = render(caller()) -%}
{%- set sql = caller() -%}

{%- if name == 'main' -%}
{{ log('Writing runtime SQL for node "{}"'.format(model['unique_id'])) }}
Expand All @@ -16,7 +16,7 @@
{%- endmacro %}

{% macro noop_statement(name=None, status=None, res=None) -%}
{%- set sql = render(caller()) -%}
{%- set sql = caller() -%}

{%- if name == 'main' -%}
{{ log('Writing runtime SQL for node "{}"'.format(model['unique_id'])) }}
Expand Down

0 comments on commit ec5a19c

Please sign in to comment.