[open-ils-commits] r16805 - trunk/Open-ILS/src/sql/Pg (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jun 24 11:13:01 EDT 2010
Author: miker
Date: 2010-06-24 11:12:58 -0400 (Thu, 24 Jun 2010)
New Revision: 16805
Modified:
trunk/Open-ILS/src/sql/Pg/pgmemcache-ou_tree_traversal_cache.sql
Log:
and imagine that, the ou passed to actor.org_unit_descendants(INT) might also be null. super.
Modified: trunk/Open-ILS/src/sql/Pg/pgmemcache-ou_tree_traversal_cache.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/pgmemcache-ou_tree_traversal_cache.sql 2010-06-24 14:05:04 UTC (rev 16804)
+++ trunk/Open-ILS/src/sql/Pg/pgmemcache-ou_tree_traversal_cache.sql 2010-06-24 15:12:58 UTC (rev 16805)
@@ -57,6 +57,10 @@
cached_value RECORD;
BEGIN
+ IF org IS NULL THEN
+ RETURN;
+ END IF;
+
IF permission.mc_init() THEN
-- RAISE NOTICE 'Getting perm from cache';
EXECUTE $$SELECT memcache_get('oils_orgcache_$$ || org || $$') AS x;$$ INTO cached_value;
More information about the open-ils-commits
mailing list