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)) ' \