Ticket #382 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

sqlite table recreation: not enough quoting

Reported by: alex@… Owned by: andrew
Priority: major Milestone: 0.7
Component: commands Version: 0.7-pre
Keywords: Cc:


If you model has a field with a reversed name, copying data from the temporary table into the new table fails, because the field names are not quoted.


south-sqlite-quote-field-names.patch (459 bytes) - added by alex@… 6 years ago.
south-sqlite-quote-field-names-2.patch (1.1 KB) - added by Alexander Clausen <alex@…> 6 years ago.

Change History

Changed 6 years ago by alex@…

comment:1 Changed 6 years ago by anonymous

ok, somehow, _again_, I managed to mess up my hg checkout. ignore this.

comment:2 Changed 6 years ago by Alexander Clausen <alex@…>

actually, the bug is still valid (the patch is not). in _copy_data, the field names in q_fields (and in field_renames!) are not quoted.

Changed 6 years ago by Alexander Clausen <alex@…>

comment:3 Changed 6 years ago by andrew

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone set to 0.7

Thanks for that; committed in [fb7089894e4d].

Note: See TracTickets for help on using tickets.