- Timestamp:
- Aug 28, 2011, 4:02:07 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/django_gheat/gheat/management/commands/import_droidstumbler.py
r9592 r9598 32 32 cursor = connection.cursor() 33 33 try: 34 sql = "INSERT INTO %s VALUES %s" % (sql_table, ','.join(sql_values)) 34 # Make sure the special NULL is preserved 35 sql = "INSERT INTO %s VALUES %s" % (sql_table, ','.join(sql_values).replace("'NULL'",'NULL')) 35 36 count = cursor.execute(sql) 36 37 transaction.commit_unless_managed()
Note:
See TracChangeset
for help on using the changeset viewer.