Fix: typo

This commit is contained in:
Javier Goizueta 2015-12-16 17:26:17 +01:00
parent f7857945c1
commit e5cc9ef0bd

View File

@ -95,7 +95,7 @@ AS $$
suffix TEXT; suffix TEXT;
is_overview BOOLEAN; is_overview BOOLEAN;
BEGIN BEGIN
suffix := Format('_ov%', ref_z); suffix := Format('_ov%s', ref_z);
SELECT ref::text LIKE Format('%%%s', suffix) INTO is_overview; SELECT ref::text LIKE Format('%%%s', suffix) INTO is_overview;
IF is_overview THEN IF is_overview THEN
SELECT substring(ref::text FROM 1 FOR length(ref::text)-length(suffix)) INTO base; SELECT substring(ref::text FROM 1 FOR length(ref::text)-length(suffix)) INTO base;