Skip to content

OverflowError: Python int too large to convert to C long #143

@sozercanye

Description

@sozercanye
  File "asyncmy/cursors.pyx", line 177, in execute
  File "asyncmy/cursors.pyx", line 155, in asyncmy.cursors.Cursor.mogrify
    query = query % self._escape_args(args, conn)
  File "asyncmy/cursors.pyx", line 128, in genexpr
    return tuple(conn.literal(arg) for arg in args)
  File "asyncmy/cursors.pyx", line 128, in genexpr
    return tuple(conn.literal(arg) for arg in args)
  File "asyncmy/connection.pyx", line 471, in asyncmy.connection.Connection.literal
  File "asyncmy/connection.pyx", line 464, in asyncmy.connection.Connection.escape
    return converters.escape_item(obj, self._charset, mapping=mapping)
  File "asyncmy/converters.pyx", line 11, in asyncmy.converters.escape_item
  File "asyncmy/converters.pyx", line 26, in asyncmy.converters.escape_item
    val = encoder(val, mapping)
  File "asyncmy/converters.pyx", line 49, in asyncmy.converters.escape_int
    cpdef str escape_int(long long value, mapping: dict = None):
OverflowError: Python int too large to convert to C long

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions