diff --git a/macros/execution/sql/get_sql_send_email.sql b/macros/execution/sql/get_sql_send_email.sql index 1bcd7f6..cd8997f 100644 --- a/macros/execution/sql/get_sql_send_email.sql +++ b/macros/execution/sql/get_sql_send_email.sql @@ -24,7 +24,7 @@ '
This is auto-triggered by the job run: runs/{{ env_var('DBT_CLOUD_RUN_ID', 'manual') }}
SQL query used as follows:
- {{ query }}
+ {{ query | replace("'", "''") }}
',
'text/html'
);