Skip to content

Expanding bindparam not running bind processors #4198

Closed
@sqlalchemy-bot

Description

@sqlalchemy-bot

Migrated issue, originally created by Robert Ditthardt

I'm assuming there are just missing features here because experimental. That said...

Attached is a test file that demonstrates the observed behavior.

I think that it should be unnecessary to need to get the "name" attribute of an enumeration for "in_" queries that require bound parameters that are enumerations. It should be sufficient to just pass in the enumeration as it is when the Table is properly configured.

I should also note that the mysql driver has slightly different behavior. It doesn't throw an exception, but instead just silently generates a bad query, where each enum in the raw sql ends up as "TestEnum.FOO" instead of "FOO".


Attachments: test-sqlalchemy.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions