9 lines
242 B
SQL
9 lines
242 B
SQL
{% test is_last_day_of_month(model, column_name) %}
|
|
select *
|
|
from {{ model }}
|
|
where
|
|
{{ column_name }}
|
|
!= date_trunc('MONTH', {{ column_name }})
|
|
+ interval '1 MONTH'
|
|
- interval '1 DAY'
|
|
{% endtest %}
|