]> granicus.if.org Git - postgis/commitdiff
fixed geometry_in('SRID=<int>{no ;}').
authorDavid Blasby <dblasby@gmail.com>
Fri, 22 Aug 2003 17:40:11 +0000 (17:40 +0000)
committerDavid Blasby <dblasby@gmail.com>
Fri, 22 Aug 2003 17:40:11 +0000 (17:40 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@297 b70326c6-7e19-0410-871a-916f4a2858ee

postgis_inout.c

index dd3e7bfaea329b8acd9818ed0b1913773763705c..728f4f3ad84100d672d9f33a9c11ca67c4b6312a 100644 (file)
@@ -11,6 +11,9 @@
  *
  **********************************************************************
  * $Log$
+ * Revision 1.27  2003/08/22 17:40:11  dblasby
+ * fixed geometry_in('SRID=<int>{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() ;
+               }
        }