From b89523f0b75e8d39bcbd8a5c07015e9df4ef5e2f Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 26 Sep 2014 16:25:26 -0400 Subject: - Fixed bug where a "branched" connection, that is the kind you get when you call :meth:`.Connection.connect`, would not share transaction status with the parent. The architecture of branching has been tweaked a bit so that the branched connection defers to the parent for all transactional status and operations. fixes #3190 --- test/engine/test_execute.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/engine/test_execute.py') diff --git a/test/engine/test_execute.py b/test/engine/test_execute.py index e14a4fd2a..219a145c6 100644 --- a/test/engine/test_execute.py +++ b/test/engine/test_execute.py @@ -982,6 +982,17 @@ class ExecutionOptionsTest(fixtures.TestBase): eq_(c1._execution_options, {"foo": "bar"}) eq_(c2._execution_options, {"foo": "bar", "bat": "hoho"}) + def test_branched_connection_execution_options(self): + engine = testing_engine("sqlite://") + + conn = engine.connect() + c2 = conn.execution_options(foo="bar") + c2_branch = c2.connect() + eq_( + c2_branch._execution_options, + {"foo": "bar"} + ) + class AlternateResultProxyTest(fixtures.TestBase): __requires__ = ('sqlite', ) -- cgit v1.2.1