Ticket #25955: django_master.patch

File django_master.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
     
    204204                    # Release savepoint if there is one
    205205                    if sid is not None:
    206206                        try:
     207                            if connection.features.can_defer_constraint_checks:
     208                                connection.check_constraints()
    207209                            connection.savepoint_commit(sid)
    208210                        except DatabaseError:
    209211                            try:
    210212                                connection.savepoint_rollback(sid)
     213                                if connection.features.can_defer_constraint_checks:
     214                                    connection.check_constraints()
    211215                                # The savepoint won't be reused. Release it to
    212216                                # minimize overhead for the database server.
    213217                                connection.savepoint_commit(sid)
Back to Top