               ON "vote"."initiative_id" = "initiative"."id"
               AND "vote"."member_id" = "direct_voter"."member_id"
             WHERE "initiative"."issue_id" = "issue_id_p"
-            AND "initiative"."admitted"
+            AND "initiative"."admitted"  -- NOTE: NULL case is handled too
             GROUP BY "initiative"."id"
           ) AS "vote_counts",
           "issue",

        "fully_frozen" = now()
        WHERE "id" = "issue_id_p";
      FOR "initiative_row" IN
        SELECT * FROM "initiative" WHERE "issue_id" = "issue_id_p"
      LOOP
        IF
          "initiative_row"."revoked" ISNULL AND
          "initiative_row"."satisfied_supporter_count" > 0 AND
          "initiative_row"."satisfied_supporter_count" *
          "policy_row"."initiative_quorum_den" >=

BEGIN;

CREATE VIEW "liquid_feedback_version" AS
  SELECT * FROM (VALUES ('beta16', NULL, NULL, NULL))
  AS "subquery"("string", "major", "minor", "revision");


