- attached composite_comparator.patch
CompositeProperty Comparator -> ClauseList' object has no attribute '_select_iterable
The attached patch add a test_comparator for CompositeTypeTest. The error occur if you run the test
Comments (6)
-
Account Deleted -
Account Deleted ====================================================================== ERROR: test_comparator (__main__.CompositeTypesTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sagblmi/projects/sqlalchemy/trunk/test/testlib/testing.py", line 548, in resolved return rebound(*args, **kwargs) File "test/orm/mapper.py", line 1719, in test_comparator result= sess.execute(statement) File "/home/sagblmi/projects/sqlalchemy/trunk/lib/sqlalchemy/orm/session.py", line 753, in execute clause, params or {}) File "/home/sagblmi/projects/sqlalchemy/trunk/lib/sqlalchemy/engine/base.py", line 1274, in execute return proxy.execute(self, super(ProxyConnection, self).execute, object, *multiparams, **params) File "/home/sagblmi/projects/sqlalchemy/trunk/test/testlib/assertsql.py", line 260, in execute result = execute(clauseelement, *multiparams, **params) File "/home/sagblmi/projects/sqlalchemy/trunk/lib/sqlalchemy/engine/base.py", line 821, in execute return Connection.executors[c](c)(self, object, multiparams, params) File "/home/sagblmi/projects/sqlalchemy/trunk/lib/sqlalchemy/engine/base.py", line 868, in _execute_clauseelement compiled=elem.compile(dialect=self.dialect, column_keys=keys, inline=len(params) > 1), File "/home/sagblmi/projects/sqlalchemy/trunk/lib/sqlalchemy/sql/expression.py", line 1192, in compile compiler.compile() File "/home/sagblmi/projects/sqlalchemy/trunk/lib/sqlalchemy/sql/compiler.py", line 196, in compile self.string = self.process(self.statement) File "/home/sagblmi/projects/sqlalchemy/trunk/lib/sqlalchemy/sql/compiler.py", line 199, in process return obj._compiler_dispatch(self, **kwargs) File "/home/sagblmi/projects/sqlalchemy/trunk/lib/sqlalchemy/sql/visitors.py", line 50, in _compiler_dispatch return getter(visitor)(self, **kw) File "/home/sagblmi/projects/sqlalchemy/trunk/lib/sqlalchemy/sql/compiler.py", line 498, in visit_select for co in select.inner_columns File "/home/sagblmi/projects/sqlalchemy/trunk/lib/sqlalchemy/sql/expression.py", line 3229, in inner_columns return itertools.chain(*[for c in self._raw_columns](c._select_iterable)) AttributeError: 'ClauseList' object has no attribute '_select_iterable'
-
repo owner - changed milestone to 0.5.0
thanks for the good test case that will make this easy.
-
repo owner - changed status to resolved
Ok your test wasn't quite right since you were trying to use "Edge" columns on a "Graph" query, and the issue reported was really more of an SQL expression issue. But we have added the ability to place composites within Query such as
Query(Edge.start)
. b3337893365a720646e073806b9a379ad839a970. -
Account Deleted Replying to zzzeek:
Ok your test wasn't quite right since you were trying to use "Edge" columns on a "Graph" query, and the issue reported was really more of an SQL expression issue. But we have added the ability to place composites within Query such as
Query(Edge.start)
. b3337893365a720646e073806b9a379ad839a970. Thank you very much!!!! -
repo owner - removed milestone
Removing milestone: 0.5.0 (automated comment)
- Log in to comment
test_comparator