diff --git a/trytond/sql_db.py b/trytond/sql_db.py index 1ee63fd441..92533f6532 100644 --- a/trytond/sql_db.py +++ b/trytond/sql_db.py @@ -380,7 +380,7 @@ class table_handler: (self.table_name, column_name, column_type)) # check if table is non-empty: - self.cursor.execute('SELECT 1 FROM %s limit 1' % self.table_name) + self.cursor.execute('SELECT 1 FROM "%s" limit 1' % self.table_name) if self.cursor.rowcount: # Populate column with default values: default = None