[open-ils-commits] r12141 - trunk/Open-ILS/src/sql/Pg (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Feb 10 15:49:15 EST 2009
Author: erickson
Date: 2009-02-10 15:49:11 -0500 (Tue, 10 Feb 2009)
New Revision: 12141
Modified:
trunk/Open-ILS/src/sql/Pg/999.functions.global.sql
Log:
return addr id for consistency
Modified: trunk/Open-ILS/src/sql/Pg/999.functions.global.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/999.functions.global.sql 2009-02-10 20:46:58 UTC (rev 12140)
+++ trunk/Open-ILS/src/sql/Pg/999.functions.global.sql 2009-02-10 20:49:11 UTC (rev 12141)
@@ -190,7 +190,7 @@
SELECT INTO old_id replaces FROM actor.usr_address where id = pending_id;
IF old_id IS NULL THEN
UPDATE actor.usr_address SET pending = 'f' WHERE id = pending_id;
- RETURN NULL;
+ RETURN pending_id;
END IF;
-- address replaces an existing address
DELETE FROM actor.usr_address WHERE id = -old_id;
More information about the open-ils-commits
mailing list