From: David Blasby Date: Fri, 22 Aug 2003 17:40:11 +0000 (+0000) Subject: fixed geometry_in('SRID={no ;}'). X-Git-Tag: pgis_0_8_0~85 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0dd9d64709e2f3eafc7e04251ccc2600c27a456c;p=postgis fixed geometry_in('SRID={no ;}'). git-svn-id: http://svn.osgeo.org/postgis/trunk@297 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/postgis_inout.c b/postgis_inout.c index dd3e7bfae..728f4f3ad 100644 --- a/postgis_inout.c +++ b/postgis_inout.c @@ -11,6 +11,9 @@ * ********************************************************************** * $Log$ + * Revision 1.27 2003/08/22 17:40:11 dblasby + * fixed geometry_in('SRID={no ;}'). + * * Revision 1.26 2003/08/21 16:22:09 dblasby * added patch from strk@freek.keybit.net for PG_NARGS() not being in 7.2 * @@ -1506,13 +1509,18 @@ Datum geometry_in(PG_FUNCTION_ARGS) if (nitems !=1 ) { //error - elog(ERROR,"couldnt parse objects in GEOMETRY (SRID related)\n"); + elog(ERROR,"couldnt parse objects in GEOMETRY (SRID related)"); PG_RETURN_NULL() ; } //delete first part of string str = strchr(str,';'); if (str != NULL) str++; + else + { + elog(ERROR,"couldnt parse objects in GEOMETRY (SRID related - no ';')"); + PG_RETURN_NULL() ; + } }