summaryrefslogtreecommitdiff
path: root/test/engine/test_execute.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-01-22 14:04:20 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2012-01-22 14:04:20 -0500
commit09a503e49724b61a8119f0b7855a990a29fc1521 (patch)
treedc2c87cc9291f31b99c2248beb42f26e0f70786d /test/engine/test_execute.py
parentc9a1e570ad68028e0de0551155caeae313c9c7fd (diff)
downloadsqlalchemy-09a503e49724b61a8119f0b7855a990a29fc1521.tar.gz
- [bug] Fixed bug whereby a table-bound Column
object named "<a>_<b>" which matched a column labeled as "<tablename>_<colname>" could match inappropriately when targeting in a result set row. [ticket:2377] - requires that we change the tuple format in RowProxy. Makes an improvement to the cases tested against an unpickled RowProxy as well though doesn't solve the problem there entirely.
Diffstat (limited to 'test/engine/test_execute.py')
-rw-r--r--test/engine/test_execute.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/engine/test_execute.py b/test/engine/test_execute.py
index d7293c136..a2b68e955 100644
--- a/test/engine/test_execute.py
+++ b/test/engine/test_execute.py
@@ -587,7 +587,7 @@ class ResultProxyTest(fixtures.TestBase):
return list.__getitem__(self.l, i)
proxy = RowProxy(object(), MyList(['value']), [None], {'key'
- : (None, 0), 0: (None, 0)})
+ : (None, None, 0), 0: (None, None, 0)})
eq_(list(proxy), ['value'])
eq_(proxy[0], 'value')
eq_(proxy['key'], 'value')
@@ -640,7 +640,7 @@ class ResultProxyTest(fixtures.TestBase):
from sqlalchemy.engine import RowProxy
row = RowProxy(object(), ['value'], [None], {'key'
- : (None, 0), 0: (None, 0)})
+ : (None, None, 0), 0: (None, None, 0)})
assert isinstance(row, collections.Sequence)
@testing.requires.cextensions