diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-05-22 21:22:32 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-05-22 21:22:32 +0200 |
| commit | f2bdd5c9c41796f1887eea94576de67af6bc88e0 (patch) | |
| tree | 51a18be42f1f0f25c2a7d9f80ab66c79e8659f46 /crunch_global.sql | |
| parent | c401f9e227e92c03e249db23159b738b1456bd6f (diff) | |
| download | cruncher-release/2.4.0.tar.gz cruncher-release/2.4.0.zip | |
crunch build statsrelease/2.4.0
Diffstat (limited to 'crunch_global.sql')
| -rw-r--r-- | crunch_global.sql | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/crunch_global.sql b/crunch_global.sql index 7bb6263..e06c805 100644 --- a/crunch_global.sql +++ b/crunch_global.sql @@ -55,7 +55,14 @@ JOIN `filter` ON `filter`.`name` = 'all' AND `filter`.`dimension_on` = 'global' JOIN `hero` ON `hero`.`id` = `participant`.`hero_id` OR `hero`.`name` = 'all' JOIN `game_mode` ON `game_mode`.`id` = `participant`.`game_mode_id` OR `game_mode`.`name` = 'all' JOIN `skill_tier` ON `participant`.`skill_tier` BETWEEN `skill_tier`.`start` AND `skill_tier`.`end` OR `skill_tier`.`name` = 'all' -JOIN `build` ON `build`.`name` = 'all' +JOIN `build` ON `build`.`name` = 'all' OR ( + `participant_stats`.`item_grants` RLIKE CONCAT(:build_regex_start, `build`.`item_1`, :build_regex_end) AND + `participant_stats`.`item_grants` RLIKE CONCAT(:build_regex_start, `build`.`item_2`, :build_regex_end) AND + `participant_stats`.`item_grants` RLIKE CONCAT(:build_regex_start, `build`.`item_3`, :build_regex_end) AND + `participant_stats`.`item_grants` RLIKE CONCAT(:build_regex_start, `build`.`item_4`, :build_regex_end) AND + `participant_stats`.`item_grants` RLIKE CONCAT(:build_regex_start, `build`.`item_5`, :build_regex_end) AND + `participant_stats`.`item_grants` RLIKE CONCAT(:build_regex_start, `build`.`item_6`, :build_regex_end) +) JOIN `role` ON `role`.`id` = `participant`.`role_id` OR `role`.`name` = 'all' JOIN `region` ON `region`.`name` = `participant`.`shard_id` OR `region`.`name` = 'all' |
