Opened 13 years ago
Closed 13 years ago
#1606 closed defect (fixed)
upgrade script failure: error can not change name of input parameter "new_srid"
Reported by: | robe | Owned by: | strk |
---|---|---|---|
Priority: | blocker | Milestone: | PostGIS 2.0.0 |
Component: | build | Version: | master |
Keywords: | Cc: |
Description
Get this error when trying to upgrade from alpha5 to alpha6 using
ALTER EXTENSION postgis UPDATE TO "2.0.0alpha6";
Haven't checked if similar issue with regular upgrade.
Attachments (1)
Change History (7)
comment:1 by , 13 years ago
Component: | postgis → build/upgrade/install |
---|---|
Owner: | changed from | to
Summary: | error can not change name of input parameter "new_srid" → upgrade script failure: error can not change name of input parameter "new_srid" |
comment:2 by , 13 years ago
This error stemmed from #1596. The last parameter in UpdateGeometrySRID, new_srid
, was renamed to new_srid_in
. The rational was to somewhat mimic AddGeometryColumn. This can be modified back, if required. (Another internal variable name like new_srid_mod
would need to be used within UpdateGeometrySRID, since the IN parameters are CONST and this var may change to unknown_srid
).
comment:3 by , 13 years ago
If it is preferred to keep the old parameter names, use the attached patch.
comment:5 by , 13 years ago
Changing again would mean that the upgrade will fail for anyone going from alpha6 to alpha7, but those going from alpha5 to alpha7 would be fine.
Better go with the drop, probably.
Same issue with 9.0 build
I think its this function — we need to drop it first as part of upgrade