TYPMOD_SET_SRID(typmod, srid);
}
}
+#if 0 /* keep the default instead */
else
{
if ( is_geography )
{
ereport(ERROR,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
- errmsg("Negative SRID is not for GEOGRAPHY")));
- }
+ errmsg("UNKNOWN SRID is not for GEOGRAPHY")));
+ }
}
+#endif /* keep the default for unknown */
}
}
-- #1450
SELECT '#1450', GeometryType('POINT(0 0)'::geography), GeometryType('POLYGON EMPTY'::geography);
+-- #1482
+select '#1482', ST_Srid('POINT(0 0)'::geography(point, 0)::geometry);
+
-- Clean up
DELETE FROM spatial_ref_sys;
#1478|01040000200100000000000000
#745|GEOMETRYCOLLECTION(POLYGON((-72 42 1,-70 43 1,-71 41 1,-72 42 1)))
#1450|POINT|POLYGON
+#1482|4326