sql and cursor execute bugfixes to make it work with postgres

This commit is contained in:
sqlcoder
2009-05-02 00:28:53 +01:00
parent a466201285
commit 2c991ad2d0
3 changed files with 6 additions and 4 deletions
+3 -1
View File
@@ -173,6 +173,8 @@ class Sql:
self.query['get_stats_from_hand'] = """
SELECT HudCache.playerId AS player_id,
HandsPlayers.seatNo AS seat,
Players.name AS screen_name,
seatNo AS seat,
name AS screen_name,
sum(HDs) AS n,
@@ -237,7 +239,7 @@ class Sql:
AND HudCache.gametypeId+0 = Hands.gametypeId+0)
INNER JOIN Players ON (Players.id = HandsPlayers.PlayerId+0)
WHERE Hands.id = %s
GROUP BY HudCache.PlayerId
GROUP BY HudCache.PlayerId, HandsPlayers.seatNo, Players.name
"""
# same as above except stats are aggregated for all blind/limit levels