Ticket #25955: django_stable_1.8.patch

File django_stable_1.8.patch, 1.2 KB (added by Artyem Klimenko, 9 years ago)
  • django/db/transaction.py

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    206206                    # Release savepoint if there is one
    207207                    if sid is not None:
    208208                        try:
     209                            if connection.features.can_defer_constraint_checks:
     210                                connection.check_constraints()
    209211                            connection.savepoint_commit(sid)
    210212                        except DatabaseError:
    211213                            try:
    212214                                connection.savepoint_rollback(sid)
     215                                if connection.features.can_defer_constraint_checks:
     216                                    connection.check_constraints()
    213217                                # The savepoint won't be reused. Release it to
    214218                                # minimize overhead for the database server.
    215219                                connection.savepoint_commit(sid)
Back to Top