|| ' ADD CONSTRAINT ' || quote_ident(cn)
|| ' CHECK (st_scale' || $4 || '('
|| quote_ident($3)
- || ') = ' || attr || ')';
+ || ')::numeric(16,10) = (' || attr || ')::numeric(16,10))';
RETURN _add_raster_constraint(cn, sql);
END;
$$ LANGUAGE 'plpgsql' VOLATILE STRICT
sql := 'ALTER TABLE ' || fqtn
|| ' ADD CONSTRAINT ' || quote_ident(cn)
|| ' CHECK (_raster_constraint_nodata_values(' || quote_ident($3)
- || ') = ''{';
+ || ')::numeric(16,10)[] = ''{';
FOR x in 1..max LOOP
sql := sql || attr[x];
IF x < max THEN
sql := sql || ',';
END IF;
END LOOP;
- sql := sql || '}''::double precision[])';
+ sql := sql || '}''::numeric(16,10)[])';
RETURN _add_raster_constraint(cn, sql);
END;