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