From 25f61eb36a1accca1662fede500f3bee16f8b83a Mon Sep 17 00:00:00 2001 From: Dat Nguyen Date: Fri, 12 Jul 2024 12:03:29 +0700 Subject: [PATCH] fix: escape single quote --- macros/execution/sql/get_sql_send_email.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' );