[open-ils-commits] r13321 - trunk/Open-ILS/src/sql/Pg (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jun 4 18:26:06 EDT 2009
Author: erickson
Date: 2009-06-04 18:26:01 -0400 (Thu, 04 Jun 2009)
New Revision: 13321
Modified:
trunk/Open-ILS/src/sql/Pg/999.functions.global.sql
Log:
clear pending flag on an approved address
Modified: trunk/Open-ILS/src/sql/Pg/999.functions.global.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/999.functions.global.sql 2009-06-04 22:13:53 UTC (rev 13320)
+++ trunk/Open-ILS/src/sql/Pg/999.functions.global.sql 2009-06-04 22:26:01 UTC (rev 13321)
@@ -198,7 +198,7 @@
-- address replaces an existing address
DELETE FROM actor.usr_address WHERE id = -old_id;
UPDATE actor.usr_address SET id = -id WHERE id = old_id;
- UPDATE actor.usr_address SET replaces = NULL, id = old_id WHERE id = pending_id;
+ UPDATE actor.usr_address SET replaces = NULL, id = old_id, pending = 'f' WHERE id = pending_id;
RETURN old_id;
END
$$ LANGUAGE plpgsql;
More information about the open-ils-commits
mailing list