diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-09-26 16:25:26 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-09-26 16:25:26 -0400 |
| commit | b89523f0b75e8d39bcbd8a5c07015e9df4ef5e2f (patch) | |
| tree | 4c76deae14319f0df3ff69624155ff99ca36d942 /test/engine/test_execute.py | |
| parent | fbddf193a684ffe660c94c28e4c26e187111b21c (diff) | |
| download | sqlalchemy-b89523f0b75e8d39bcbd8a5c07015e9df4ef5e2f.tar.gz | |
- 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
Diffstat (limited to 'test/engine/test_execute.py')
| -rw-r--r-- | test/engine/test_execute.py | 11 |
1 files changed, 11 insertions, 0 deletions
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', ) |
