Skip to content

Commit

Permalink
fix: escape single quote
Browse files Browse the repository at this point in the history
  • Loading branch information
Dat Nguyen committed Jul 12, 2024
1 parent 75aaf40 commit 25f61eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macros/execution/sql/get_sql_send_email.sql
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
'
<p>This is auto-triggered by the job run: <a href=https://{{ var("dbt_alert__dbt_cloud_access_url", "cloud.getdbt.com") }}/deploy/{{ env_var('DBT_CLOUD_ACCOUNT_ID', 'manual') }}/projects/{{ env_var('DBT_CLOUD_PROJECT_ID', 'manual') }}/runs/{{ env_var('DBT_CLOUD_RUN_ID', 'manual') }}" >runs/{{ env_var('DBT_CLOUD_RUN_ID', 'manual') }}</a></p>
<p>SQL query used as follows:</p>
<pre><code> {{ query }} </code></pre>
<pre><code> {{ query | replace("'", "''") }} </code></pre>
',
'text/html'
);
Expand Down

0 comments on commit 25f61eb

Please sign in to comment.