pgsql/create_tables-dovecot-1.2.x.pgsql
branchv0.6.x
changeset 511 0244f1344b04
parent 503 492c179094c9
child 512 821d3ffaaaca
equal deleted inserted replaced
510:1fa354bbdb90 511:0244f1344b04
   596              WHERE gid = did
   596              WHERE gid = did
   597                AND address = localpart
   597                AND address = localpart
   598             LOOP
   598             LOOP
   599                 RETURN NEXT record;
   599                 RETURN NEXT record;
   600             END LOOP;
   600             END LOOP;
       
   601         IF NOT FOUND THEN
       
   602             FOR record IN
       
   603                 SELECT recipient, destination
       
   604                   FROM catchall
       
   605                  WHERE gid = did
       
   606                 LOOP
       
   607                     RETURN NEXT record;
       
   608                 END LOOP;
       
   609         END IF;
   601         RETURN;
   610         RETURN;
   602     END;
   611     END;
   603 $$ LANGUAGE plpgsql STABLE
   612 $$ LANGUAGE plpgsql STABLE
   604 RETURNS NULL ON NULL INPUT
   613 RETURNS NULL ON NULL INPUT
   605 EXTERNAL SECURITY INVOKER;
   614 EXTERNAL SECURITY INVOKER;