From 5a2fcea9dfc3dad5e0039640e74454659e70e022 Mon Sep 17 00:00:00 2001 From: Chaz Date: Thu, 2 Dec 2010 00:27:03 -0500 Subject: [PATCH] turns out the the '+0' is for indexing and has nothing to do with NULLS so I put it back in --- pyfpdb/SQL.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyfpdb/SQL.py b/pyfpdb/SQL.py index 1f91e822..1b6a9f4c 100644 --- a/pyfpdb/SQL.py +++ b/pyfpdb/SQL.py @@ -3964,12 +3964,12 @@ class Sql: street2Raises=street2Raises+%s, street3Raises=street3Raises+%s, street4Raises=street4Raises+%s - WHERE gametypeId=%s + WHERE gametypeId+0=%s AND playerId=%s AND activeSeats=%s AND position=%s AND (case when tourneyTypeId is NULL then 1 else - (case when tourneyTypeId=%s then 1 else 0 end) end)=1 + (case when tourneyTypeId+0=%s then 1 else 0 end) end)=1 AND styleKey=%s""" self.query['get_hero_hudcache_start'] = """select min(hc.styleKey)