Skip to content

Commit

Permalink
Change from date() to cast( as date)
Browse files Browse the repository at this point in the history
The date() function doesn't exist in T-SQL
Rather than developing a brand new macro for T-SQL this should work for all engines
  • Loading branch information
b-per committed Mar 26, 2021
1 parent 5c16c92 commit 76ccc19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macros/get_base_dates.sql
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ with date_spine as

)
select
date(d.date_day) as date_day
cast(d.date_day as date) as date_day
from
date_spine d
{% endmacro %}

0 comments on commit 76ccc19

Please sign in to comment.