correct case in SQL

This commit is contained in:
sqlcoder 2010-02-01 08:22:14 +00:00
parent 9f3c5924b0
commit a06aac6da8

View File

@ -1849,13 +1849,13 @@ class Sql:
from Gametypes from Gametypes
ORDER by type, limitType DESC, bigBlind DESC""" ORDER by type, limitType DESC, bigBlind DESC"""
self.query['getLimits3'] = """select DISTINCT type self.query['getLimits3'] = """select DISTINCT type
, limittype , limitType
, case type , case type
when 'ring' then bigblind when 'ring' then bigBlind
else buyin else buyin
end as bb_or_buyin end as bb_or_buyin
from gametypes gt from Gametypes gt
cross join tourneytypes tt cross join TourneyTypes tt
order by type, limitType DESC, bb_or_buyin DESC""" order by type, limitType DESC, bb_or_buyin DESC"""
if db_server == 'mysql': if db_server == 'mysql':