Skip to content

Decimal type support is missing #408

@kotofos

Description

@kotofos

Support for decimal type is missing from ParamEscaper.escape_item

Reproduce:

engine = create_engine(url)
q = text('select * from test where a = :param')
q = q.bindparams(bindparam('param', Decimal('1.0')))
# Raises exc.ProgrammingError "Unsupported object 1.0"
engine.execute(q)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions