Fix whole file date query

This commit is contained in:
antoniocarlon 2018-07-23 13:38:01 +02:00
parent 2f76772b4a
commit 509d1d727a

View File

@ -279,7 +279,7 @@ BEGIN
IF month_no IS NOT NULL THEN
where_clause := format(
$query$
WHERE month LIKE '____-%1$s-__'
WHERE month LIKE '%1$s/__/____'
$query$, LPAD(month_no, 2, '0'));
END IF;