From 9f3c5924b071eed1b8315a96e103d11de7a6ee42 Mon Sep 17 00:00:00 2001 From: sqlcoder Date: Mon, 1 Feb 2010 07:59:09 +0000 Subject: [PATCH] oops! missed out SQL.py from last release --- pyfpdb/SQL.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pyfpdb/SQL.py b/pyfpdb/SQL.py index 7a83ac99..647bc82c 100644 --- a/pyfpdb/SQL.py +++ b/pyfpdb/SQL.py @@ -1848,6 +1848,15 @@ class Sql: self.query['getLimits2'] = """SELECT DISTINCT type, limitType, bigBlind from Gametypes ORDER by type, limitType DESC, bigBlind DESC""" + self.query['getLimits3'] = """select DISTINCT type + , limittype + , case type + when 'ring' then bigblind + else buyin + end as bb_or_buyin + from gametypes gt + cross join tourneytypes tt + order by type, limitType DESC, bb_or_buyin DESC""" if db_server == 'mysql': self.query['playerDetailedStats'] = """