From 82a00d7e45a23fc060d04fdb7fad3f49c9ba947e Mon Sep 17 00:00:00 2001 From: Dennis-UiPath <84574129+Dennis-UiPath@users.noreply.github.com> Date: Mon, 15 May 2023 15:34:07 +0200 Subject: [PATCH] fix: date conversion for null values --- macros/multiple_databases/date_from_timestamp.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macros/multiple_databases/date_from_timestamp.sql b/macros/multiple_databases/date_from_timestamp.sql index c67fb62..f713c41 100644 --- a/macros/multiple_databases/date_from_timestamp.sql +++ b/macros/multiple_databases/date_from_timestamp.sql @@ -5,7 +5,7 @@ when len({{ field }}) > 0 then try_to_date({{ field }}) else - try_to_date(null) + to_date(null) end {%- elif target.type == 'sqlserver' -%} case