From: Ant Zucaro Date: Wed, 2 Oct 2013 00:44:38 +0000 (-0400) Subject: Fix date range for q4 partition. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2d7fcc7e05d52dc7a17281bc84f1d3d0d58532d1;p=xonotic%2Fxonstatdb.git Fix date range for q4 partition. --- diff --git a/triggers/team_game_stats_ins_trg.sql b/triggers/team_game_stats_ins_trg.sql index b968fd5..6a0974c 100644 --- a/triggers/team_game_stats_ins_trg.sql +++ b/triggers/team_game_stats_ins_trg.sql @@ -6,7 +6,7 @@ BEGIN INSERT INTO team_game_stats_2013Q2 VALUES (NEW.*); ELSIF (NEW.create_dt >= DATE '2013-07-01' AND NEW.create_dt < DATE '2013-10-01') THEN INSERT INTO team_game_stats_2013Q3 VALUES (NEW.*); - ELSIF (NEW.create_dt >= DATE '2013-10-01' AND NEW.create_dt < DATE '2013-01-01') THEN + ELSIF (NEW.create_dt >= DATE '2013-10-01' AND NEW.create_dt < DATE '2014-01-01') THEN INSERT INTO team_game_stats_2013Q4 VALUES (NEW.*); -- 2014