Closed
Description
Migrated issue, originally created by Anonymous
collate(Item.value, 'BINARY') works fine, but Item.value.collate('BINARY') raises exception:
Traceback (most recent call last):
File "sa_collate.py", line 34, in <module>
for item in session.query(Item).order_by(Item.value.collate('BINARY')):
File "/Users/ods/work/StackOverflow/sqlalchemy/sql/expression.py", line 1395, in collate
return self.operate(operators.collate, collation)
File "/Users/ods/work/StackOverflow/sqlalchemy/orm/attributes.py", line 120, in operate
return op(self.comparator, *other, **kwargs)
TypeError: collate() takes no arguments (2 given)
Metadata
Metadata
Assignees
Labels
Type
Projects
Relationships
Development
No branches or pull requests
Activity
sqlalchemy-bot commentedon Apr 20, 2010
Changes by Michael Bayer (@zzzeek):
sqlalchemy-bot commentedon Oct 23, 2011
Changes by Michael Bayer (@zzzeek):
sqlalchemy-bot commentedon Oct 23, 2011
Michael Bayer (@zzzeek) wrote:
830125d
408c189
sqlalchemy-bot commentedon Oct 23, 2011
Changes by Michael Bayer (@zzzeek):