Commits

Olav Andreas Lindekleiv committed 8f6a8c1

Actually produce valid SQL and minor cleanups.

Comments (0)

Files changed (1)

             for column in columns:
                 if column in map_dict:
                     new_columns.append(map_dict[column])
-                else:
-                    new_columns.append(None)
             columns = new_columns
 
         # Insert query:
         # Comma separated column names:
         query_columns = []
         for column in columns:
-            if column:
-                query_columns.append(column)
+            query_columns.append(column)
         query.append(', '.join(query_columns))
 
         # Rows:
                     int(value)
                     query_row.append(str(value))
                 except ValueError:
-                    query_row.append('`%s`' % value)
+                    query_row.append('"%s"' % value)
 
             # Add semicolon on last row:
             new_row = ', '.join(query_row)