Skip to content

ModelClass.collumn.collate('value') raises error #1776

Closed
@sqlalchemy-bot

Description

@sqlalchemy-bot
Collaborator

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)

Activity

sqlalchemy-bot

sqlalchemy-bot commented on Apr 20, 2010

@sqlalchemy-bot
CollaboratorAuthor

Changes by Michael Bayer (@zzzeek):

  • set milestone to "0.6.xx"
sqlalchemy-bot

sqlalchemy-bot commented on Oct 23, 2011

@sqlalchemy-bot
CollaboratorAuthor

Changes by Michael Bayer (@zzzeek):

  • changed milestone from "0.7.xx" to "0.6.9"
sqlalchemy-bot

sqlalchemy-bot commented on Oct 23, 2011

@sqlalchemy-bot
CollaboratorAuthor

Michael Bayer (@zzzeek) wrote:

830125d
408c189

sqlalchemy-bot

sqlalchemy-bot commented on Oct 23, 2011

@sqlalchemy-bot
CollaboratorAuthor

Changes by Michael Bayer (@zzzeek):

  • changed status to closed
added this to the 0.6.9 milestone on Nov 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingorm

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @sqlalchemy-bot

        Issue actions

          ModelClass.collumn.collate('value') raises error · Issue #1776 · sqlalchemy/sqlalchemy