From a9db802c97997b72f0691c877c1460a94a7107aa Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Tue, 13 Jan 2004 20:30:19 +0000 Subject: [PATCH] Added useless PG_RETURN_NULL() call to make compiler happy git-svn-id: http://svn.osgeo.org/postgis/trunk@422 b70326c6-7e19-0410-871a-916f4a2858ee --- postgis_debug.c | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/postgis_debug.c b/postgis_debug.c index b13355355..173421c16 100644 --- a/postgis_debug.c +++ b/postgis_debug.c @@ -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 { -- 2.40.0