]> granicus.if.org Git - postgis/commitdiff
#3006 Numeric overflow when executing AddRasterConstraints, increased precision...
authorRegina Obe <lr@pcorp.us>
Wed, 3 Dec 2014 23:28:59 +0000 (23:28 +0000)
committerRegina Obe <lr@pcorp.us>
Wed, 3 Dec 2014 23:28:59 +0000 (23:28 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13136 b70326c6-7e19-0410-871a-916f4a2858ee

raster/rt_pg/rtpostgis.sql.in

index bbba976e787b0c9fb6681151def904619c17aa70..5d26e91bcec37fc7192ebdabf31ceaf364184585 100644 (file)
@@ -6965,7 +6965,7 @@ CREATE OR REPLACE FUNCTION _add_raster_constraint_scale(rastschema name, rasttab
                        || ' ADD CONSTRAINT ' || quote_ident(cn)
                        || ' CHECK (st_scale' || $4 || '('
                        || quote_ident($3)
-                       || ')::numeric(16,10) = (' || attr || ')::numeric(16,10))';
+                       || ')::numeric(25,10) = (' || attr || ')::numeric(25,10))';
                RETURN _add_raster_constraint(cn, sql);
        END;
        $$ LANGUAGE 'plpgsql' VOLATILE STRICT