branch | v0.6.x |
changeset 511 | 0244f1344b04 |
parent 503 | 492c179094c9 |
child 512 | 821d3ffaaaca |
--- a/pgsql/update_tables_0.5.x-0.6.pgsql Tue Apr 10 00:08:12 2012 +0200 +++ b/pgsql/update_tables_0.5.x-0.6.pgsql Tue Apr 10 00:33:53 2012 +0200 @@ -473,6 +473,15 @@ LOOP RETURN NEXT record; END LOOP; + IF NOT FOUND THEN + FOR record IN + SELECT recipient, destination + FROM catchall + WHERE gid = did + LOOP + RETURN NEXT record; + END LOOP; + END IF; RETURN; END; $$ LANGUAGE plpgsql STABLE