Skip to content

Commit

Permalink
dont run queries in parsing mode
Browse files Browse the repository at this point in the history
  • Loading branch information
drewbanin committed Jun 12, 2018
1 parent 1bc8069 commit f3450d4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions macros/sql/star.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{% macro star(from, except=[]) -%}

{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}
{%- if not execute -%}
{{ return('') }}
{% endif %}

{%- if from.name -%}
{%- set schema_name, table_name = from.schema, from.name -%}
{%- else -%}
Expand Down

0 comments on commit f3450d4

Please sign in to comment.