fix comma bug

This commit is contained in:
John Krauss 2016-05-05 14:48:34 -04:00
parent 73f8ea1b4e
commit 5dcec6e126

View File

@ -23,7 +23,7 @@ BEGIN
WHERE type ILIKE ''geometry''
AND coltable.column_id = col.id
AND coltable.table_id = tab.id
AND col.id = $1,
AND col.id = $1
AND CASE WHEN $2 IS NOT NULL THEN timespan = $2 ELSE TRUE END
ORDER BY timespan DESC LIMIT 1
)