Add quote arround table name

This commit is contained in:
Cédric Krier committed 2008-10-15 16:50:54 +02:00
1 parent 7248d2eb9c
commit 74e8efabaa
1 file changed
+1 -1
+1 -1
View File
@@ -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