Add quote arround table name
This commit is contained in:
1 parent
7248d2eb9c
commit
74e8efabaa
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user