From 4eaf7351bed4ba75fa52638b1b740aa8d6b15eb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 15 Oct 2008 11:31:52 +0200 Subject: [PATCH] Improve SQL query on check date for period --- period.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/period.py b/period.py index 3e9d20d835..7c258df411 100644 --- a/period.py +++ b/period.py @@ -72,7 +72,7 @@ class Period(OSV): if period.type != 'standard': continue cursor.execute('SELECT id ' \ - 'FROM ' + self._table + ' ' \ + 'FROM "' + self._table + '" ' \ 'WHERE ((start_date <= %s AND end_date >= %s) ' \ 'OR (start_date <= %s AND end_date >= %s) ' \ 'OR (start_date >= %s AND end_date <= %s)) ' \