🩹 Fix loop_vars when there is no variable

This commit is contained in:
Benoit Perigaud
2022-08-11 19:18:55 +02:00
parent 4676f7c6b2
commit 06c04a65e8

View File

@@ -22,7 +22,7 @@
{%- if sql_query -%}
{{ sql_query | join('union all') }}
{%- else -%}
select '' as var_name, null as var_value
where var_value is not null
select '' as var_name, '' as var_value
limit 0
{%- endif -%}
{% endmacro %}