From a9055049fea9d791a931a000cde39d503cf826f9 Mon Sep 17 00:00:00 2001 From: Worros Date: Fri, 5 Jun 2009 23:13:41 +0800 Subject: [PATCH] Fix HUD query under linux. Case sensitive --- pyfpdb/SQL.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pyfpdb/SQL.py b/pyfpdb/SQL.py index 18d7d116..9bad1918 100644 --- a/pyfpdb/SQL.py +++ b/pyfpdb/SQL.py @@ -564,13 +564,13 @@ class Sql: if db_server == 'mysql': self.query['get_hand_1day_ago'] = """ select coalesce(max(id),0) - from hands - where handstart < date_sub(utc_timestamp(), interval '1' day)""" + from Hands + where handStart < date_sub(utc_timestamp(), interval '1' day)""" else: # assume postgresql self.query['get_hand_1day_ago'] = """ select coalesce(max(id),0) - from hands - where handstart < now() at time zone 'UTC' - interval '1 day'""" + from Hands + where handStart < now() at time zone 'UTC' - interval '1 day'""" if __name__== "__main__": # just print the default queries and exit