Merge pull request #349 from CartoDB/Fix_whole_file_date_query

Fix whole file date query
This commit is contained in:
Antonio Carlón 2018-07-23 13:38:41 +02:00 committed by GitHub
commit 8acd5d39b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;