]> granicus.if.org Git - postgis/commitdiff
Added useless PG_RETURN_NULL() call to make compiler happy
authorSandro Santilli <strk@keybit.net>
Tue, 13 Jan 2004 20:30:19 +0000 (20:30 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 13 Jan 2004 20:30:19 +0000 (20:30 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@422 b70326c6-7e19-0410-871a-916f4a2858ee

postgis_debug.c

index b133553554a38822eae9a1aeca99e3a1a297005b..173421c16f5ae46e1705b5a27aeb0bedcdfe466a 100644 (file)
@@ -11,6 +11,9 @@
  *
  **********************************************************************
  * $Log$
+ * Revision 1.14  2004/01/13 20:30:19  strk
+ * Added useless PG_RETURN_NULL() call to make compiler happy
+ *
  * Revision 1.13  2003/11/19 18:01:31  strk
  * CR removed
  *
@@ -283,22 +286,23 @@ Datum lockcheck (PG_FUNCTION_ARGS)
                sprintf(query,"SELECT * FROM temp_lock_have_table  WHERE xideq(transid , getTransactionID() ) AND lockcode ='%s'",lockcode);
                elog(NOTICE,"about to execute :%s", query);
 
-       SPIcode = SPI_exec(query,0);
-       if (SPIcode !=SPI_OK_SELECT )
-               elog(ERROR,"couldnt execute to test for lock aquire:%s",query);
+               SPIcode = SPI_exec(query,0);
+               if (SPIcode !=SPI_OK_SELECT )
+                       elog(ERROR,"couldnt execute to test for lock aquire:%s",query);
 
-       if (SPI_processed >0)
-       {
-               elog(NOTICE,"I own the lock - I can modify the row");
-               SPI_finish();
-               return PointerGetDatum(rettuple);
-       }
+               if (SPI_processed >0)
+               {
+                       elog(NOTICE,"I own the lock - I can modify the row");
+                       SPI_finish();
+                       return PointerGetDatum(rettuple);
+               }
 
                elog(NOTICE,"I do not own the lock - I cannot modify the row");
                //PG_RETURN_NULL();
                SPI_finish();
                //return NULL;
-                       elog(ERROR,"attemted to modify a locked row that I do not have authorization for!");
+               elog(ERROR,"attemted to modify a locked row that I do not have authorization for!");
+               PG_RETURN_NULL();
        }
        else
        {