playframework/play — pull request #472 by Wilhansen (2012-02-27 05:50:43+00:00)
Title: [#997] Evolutions fix refinement for DO blocks

Our web app based on Play has this kind of code (note the semicolon inside the parenthesis):

CREATE RULE r
AS ON UPDATE to table_a
DO ALSO (
INSERT INTO table_b VALUES (NEW.a);
INSERT INTO table_c VALUES (NEW.a)
);

Which I failed to take into account (or more like I didn't know that existed until our db programmer brought it up). This should fix it (I also threw in more test cases as a bonus).