Opened 13 years ago
Closed 13 years ago
#1413 closed defect (fixed)
COPY into typmod table fails on OSX
Reported by: | pramsey | Owned by: | pramsey |
---|---|---|---|
Priority: | critical | Milestone: | PostGIS 2.0.0 |
Component: | postgis | Version: | master |
Keywords: | osx | Cc: |
Description
From the loader regression:
CREATE TABLE "point" (gid serial); ALTER TABLE "point" ADD PRIMARY KEY (gid); SELECT AddGeometryColumn('','point','geom','0','POINT',2); COPY "point" (geom) FROM stdin; POINT(0 1) \.
returns
ERROR: Geometry type (Invalid type) does not match column type (Point) CONTEXT: COPY point, line 1, column geom: "POINT(0 1)"
Note:
See TracTickets
for help on using tickets.
Actually this was a larger problem with how the in/out functions were handling the postgis_valid_typmod function. They were freeing an lwgeom and then calling postgis_valid_typmod on it. So on system with looser memory handling, the data was still there and things worked. On OSX they didn't. I've changed postgis_valid_typmod to work on gserialized instead, which should hopefully be a better design in any event. Committed at r8615