Return count purged
authorThomas Berezansky <tsbere@mvlc.org>
Wed, 19 Sep 2012 15:30:40 +0000 (11:30 -0400)
committerDan Wells <dbw2@calvin.edu>
Fri, 7 Jun 2013 19:49:45 +0000 (15:49 -0400)
Because postgres dislikes functions that don't return.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/src/sql/Pg/090.schema.action.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.purge_circulations_updates.sql

index 51530e7..80a7e0f 100644 (file)
@@ -1070,6 +1070,8 @@ BEGIN
 
         END LOOP;
     END LOOP;
+
+    return count_purged;
 END;
 $func$ LANGUAGE PLPGSQL;
 
index 27dba65..7aaec70 100644 (file)
@@ -200,6 +200,8 @@ BEGIN
 
         END LOOP;
     END LOOP;
+
+    return count_purged;
 END;
 $func$ LANGUAGE PLPGSQL;