Aymeric Augustin
0d74bdaf0c
Fixed #21134 -- Prevented queries in broken transactions.
...
Backport of 728548e4 from master.
Squashed commit of the following:
commit 63ddb271a44df389b2c302e421fc17b7f0529755
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Sun Sep 29 22:51:00 2013 +0200
Clarified interactions between atomic and exceptions.
commit 2899ec299228217c876ba3aa4024e523a41c8504
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Sun Sep 22 22:45:32 2013 +0200
Fixed TransactionManagementError in tests.
Previous commit introduced an additional check to prevent running
queries in transactions that will be rolled back, which triggered a few
failures in the tests. In practice using transaction.atomic instead of
the low-level savepoint APIs was enough to fix the problems.
commit 4a639b059ea80aeb78f7f160a7d4b9f609b9c238
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Tue Sep 24 22:24:17 2013 +0200
Allowed nesting constraint_checks_disabled inside atomic.
Since MySQL handles transactions loosely, this isn't a problem.
commit 2a4ab1cb6e83391ff7e25d08479e230ca564bfef
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Sat Sep 21 18:43:12 2013 +0200
Prevented running queries in transactions that will be rolled back.
This avoids a counter-intuitive behavior in an edge case on databases
with non-atomic transaction semantics.
It prevents using savepoint_rollback() inside an atomic block without
calling set_rollback(False) first, which is backwards-incompatible in
tests.
Refs #21134 .
commit 8e3db393853c7ac64a445b66e57f3620a3fde7b0
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Sun Sep 22 22:14:17 2013 +0200
Replaced manual savepoints by atomic blocks.
This ensures the rollback flag is handled consistently in internal APIs.
2013-09-30 10:14:22 +02:00
..
2013-06-05 23:08:00 +02:00
2013-02-26 14:36:57 +01:00
2013-05-19 13:18:35 +02:00
2013-09-28 00:46:37 +02:00
2013-07-21 13:13:20 -04:00
2013-03-08 10:11:45 -05:00
2013-02-26 14:36:57 +01:00
2013-09-29 22:57:04 -03:00
2013-07-26 14:47:58 -04:00
2013-05-19 12:42:52 +02:00
2013-09-10 21:29:31 +02:00
2013-08-13 22:24:14 +02:00
2013-02-26 14:36:57 +01:00
2013-09-25 20:50:48 +03:00
2013-02-26 14:36:57 +01:00
2013-09-05 20:16:14 -04:00
2013-09-03 07:34:45 -05:00
2013-02-26 14:36:57 +01:00
2013-09-03 07:34:45 -05:00
2013-05-09 16:44:36 +01:00
2013-02-26 14:36:57 +01:00
2013-03-20 18:46:26 -04:00
2013-02-26 14:36:57 +01:00
2013-06-14 17:05:54 +03:00
2013-08-15 20:33:02 -04:00
2013-02-26 14:36:57 +01:00
2013-05-29 15:50:26 +02:00
2013-08-15 20:33:02 -04:00
2013-04-02 19:00:55 -06:00
2013-03-14 20:30:23 +01:00
2013-02-26 14:36:57 +01:00
2013-02-26 14:36:57 +01:00
2013-05-18 16:17:46 +02:00
2013-03-19 15:58:54 -07:00
2013-02-26 14:36:57 +01:00
2013-08-15 20:33:02 -04:00
2013-03-08 10:11:45 -05:00
2013-02-26 14:36:57 +01:00
2013-09-30 10:14:22 +02:00
2013-05-21 10:42:15 +01:00
2013-02-26 14:36:57 +01:00
2013-02-26 14:36:57 +01:00
2013-02-26 14:36:57 +01:00
2013-05-21 10:42:15 +01:00
2013-09-03 07:34:45 -05:00
2013-02-26 14:36:57 +01:00
2013-08-22 17:55:01 -04:00
2013-02-26 14:36:57 +01:00
2013-06-10 11:30:01 +02:00
2013-03-08 10:11:45 -05:00
2013-08-20 04:08:41 -04:00
2013-02-26 14:36:57 +01:00
2013-02-26 14:36:57 +01:00
2013-09-30 10:14:22 +02:00
2013-02-26 14:36:57 +01:00
2013-02-26 14:36:57 +01:00
2013-05-21 10:42:15 +01:00
2013-05-21 10:42:15 +01:00
2013-09-10 21:29:31 +02:00
2013-02-26 14:36:57 +01:00
2013-09-06 19:44:25 -05:00
2013-06-30 14:20:29 +02:00
2013-07-09 21:42:11 +02:00
2013-08-20 21:28:14 +02:00
2013-09-30 10:14:22 +02:00
2013-08-06 10:34:42 +03:00
2013-08-05 10:13:48 -04:00
2013-08-02 10:45:58 -04:00
2013-08-15 20:33:02 -04:00
2013-06-06 01:54:46 +03:00
2013-09-06 17:39:16 -05:00
2013-05-21 18:52:28 +03:00
2013-03-08 10:11:45 -05:00
2013-06-10 11:30:01 +02:00
2013-02-26 14:36:57 +01:00
2013-09-07 12:06:38 -05:00
2013-05-21 13:18:53 +02:00
2013-09-03 07:34:45 -05:00
2013-09-03 07:34:45 -05:00
2013-02-26 14:36:57 +01:00
2013-03-26 23:19:32 +01:00
2013-05-09 16:44:36 +01:00
2013-08-15 20:33:02 -04:00
2013-03-02 10:29:03 +01:00
2013-05-28 15:12:47 -04:00
2013-02-26 14:36:57 +01:00
2013-05-25 16:27:34 -07:00
2013-06-26 21:30:58 +07:00
2013-02-26 14:36:57 +01:00
2013-02-26 14:36:57 +01:00
2013-02-26 14:36:57 +01:00
2013-02-26 14:36:57 +01:00
2013-02-26 14:36:57 +01:00
2013-02-26 14:36:57 +01:00
2013-02-26 14:36:57 +01:00
2013-06-10 11:30:01 +02:00
2013-02-26 14:36:57 +01:00
2013-05-21 10:42:15 +01:00
2013-03-08 10:11:45 -05:00
2013-04-05 15:09:53 -04:00
2013-02-26 14:36:57 +01:00
2013-02-26 14:36:57 +01:00
2013-05-09 06:55:25 -07:00
2013-02-26 14:36:57 +01:00
2013-06-10 11:30:01 +02:00
2013-02-26 14:36:57 +01:00
2013-08-30 17:45:14 -06:00
2013-09-05 06:32:26 -04:00
2013-06-14 15:37:39 +01:00
2013-08-15 20:33:02 -04:00
2013-05-21 10:42:15 +01:00
2013-08-15 20:33:02 -04:00
2013-08-15 20:33:02 -04:00
2013-02-26 14:36:57 +01:00
2013-08-15 20:33:02 -04:00
2013-02-26 14:36:57 +01:00
2013-02-26 14:36:57 +01:00
2013-05-08 23:12:46 +02:00
2013-05-18 18:06:31 +02:00
2013-08-15 20:33:02 -04:00
2013-06-14 23:16:15 +02:00
2013-09-18 20:27:07 -04:00
2013-02-26 14:36:57 +01:00
2013-02-26 14:36:57 +01:00
2013-02-26 14:36:57 +01:00
2013-02-26 14:36:57 +01:00
2013-09-30 10:14:22 +02:00
2013-08-15 20:33:02 -04:00
2013-02-26 14:36:57 +01:00
2013-02-26 14:36:57 +01:00
2013-02-26 14:36:57 +01:00
2013-05-25 16:27:26 +02:00
2013-05-28 13:37:44 -04:00
2013-02-26 14:36:57 +01:00
2013-06-10 11:30:01 +02:00
2013-08-16 07:59:16 -04:00
2013-09-29 17:37:45 +03:00
2013-09-14 10:36:48 +03:00
2013-08-15 20:33:02 -04:00
2013-09-10 21:29:31 +02:00
2013-07-10 09:37:15 -04:00
2013-02-26 14:36:57 +01:00
2013-02-26 14:36:57 +01:00
2013-05-19 13:14:54 +02:00
2013-02-26 14:36:57 +01:00
2013-08-15 20:33:02 -04:00
2013-02-26 14:36:57 +01:00
2013-08-06 10:58:32 -04:00
2013-05-30 11:06:05 -04:00
2013-02-26 14:36:57 +01:00
2013-02-26 14:36:57 +01:00
2013-09-07 13:15:13 -05:00
2013-09-06 19:01:24 -05:00
2013-09-22 22:04:50 +02:00
2013-06-21 16:57:47 +02:00
2013-02-26 14:36:57 +01:00
2013-06-10 12:34:47 +02:00
2013-02-26 14:36:57 +01:00
2013-09-03 07:34:45 -05:00
2013-02-26 14:36:57 +01:00
2013-04-28 16:45:05 +02:00
2013-02-26 14:36:57 +01:00
2013-05-19 13:28:09 +02:00
2013-06-14 23:16:15 +02:00
2013-06-14 23:16:15 +02:00
2013-02-26 14:36:57 +01:00
2013-02-26 14:36:57 +01:00
2013-09-10 21:03:51 -04:00
2013-02-26 14:36:57 +01:00
2013-09-10 21:29:31 +02:00
2013-06-04 12:39:09 -04:00
2013-05-10 23:08:45 -04:00
2013-05-10 23:08:45 -04:00
2013-09-05 20:16:14 -04:00
2013-05-10 23:08:45 -04:00
2013-05-10 23:08:45 -04:00
2013-06-14 15:37:39 +01:00
2013-09-03 07:34:45 -05:00
2013-04-10 13:05:29 +02:00
2013-09-21 23:11:04 +02:00
2013-09-30 10:14:22 +02:00
2013-09-22 23:05:16 +02:00
2013-05-21 10:42:15 +01:00
2013-02-26 14:36:57 +01:00
2013-02-26 14:36:57 +01:00
2013-06-14 10:26:30 +01:00
2013-03-10 17:31:11 -03:00
2013-09-27 18:06:28 +02:00
2013-06-13 13:31:57 -04:00
2013-07-21 21:12:50 +02:00
2013-02-26 14:36:57 +01:00
2013-09-18 09:56:01 -04:00
2013-02-28 15:28:13 +01:00
2013-02-26 14:36:57 +01:00
2013-07-10 09:37:15 -04:00
2013-02-26 10:00:14 +01:00
2013-02-26 14:36:57 +01:00