Changes between Version 1 and Version 2 of Ticket #29225


Ignore:
Timestamp:
Mar 15, 2018, 3:43:18 PM (7 years ago)
Author:
gh720
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29225 – Description

    v1 v2  
    2626The teardown procedure is repeated for every database config we have.
    2727Guess what happens in the second iteration?
    28 Real sqlite db is destroyed.
     28Real sqlite db is destroyed because  {{{ self.connection.settings_dict }}} is actually the same object for both configs.
    2929
    3030May be this one is well known and every developer is aware of that?
    3131But still it is to easy to step into this trap in my opinion.
    3232
    33 I guess it should be documented somewhere or the code above somehow amended.
    34 (I don't know Django well enough to say whether that restoring old name is necessary or not)
     33I guess it should be documented somewhere or the code above somehow amended.
     34May be some flag showing that the database is already destroyed would be enough.
     35I don't know Django well enough to say whether that restoring old name is necessary or not.
    3536
Back to Top