From 1a4d5f98aa87f4be81e2554cf684e1a8b8db83da Mon Sep 17 00:00:00 2001 From: miker Date: Thu, 24 Jun 2010 15:12:58 +0000 Subject: [PATCH] and imagine that, the ou passed to actor.org_unit_descendants(INT) might also be null. super. git-svn-id: svn://svn.open-ils.org/ILS/trunk@16805 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/sql/Pg/pgmemcache-ou_tree_traversal_cache.sql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Open-ILS/src/sql/Pg/pgmemcache-ou_tree_traversal_cache.sql b/Open-ILS/src/sql/Pg/pgmemcache-ou_tree_traversal_cache.sql index 5f70e37bf..53eea2e8e 100644 --- a/Open-ILS/src/sql/Pg/pgmemcache-ou_tree_traversal_cache.sql +++ b/Open-ILS/src/sql/Pg/pgmemcache-ou_tree_traversal_cache.sql @@ -57,6 +57,10 @@ DECLARE 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; -- 2.11.0