Skip to content

beta.row_binary_for_simple_insert fails on Uint64 values larger than long type passed as string #2619

@troyjcurt

Description

@troyjcurt

Describe your feedback

when you pass a very large number (larger than max long, but smaller than max UInt64) as a string in a simple insert, the client attempts to convert this value into a long using Long.parseLong, which will fail, as the string value is higher than the long boundary. something like BigInteger.longValue would be required for this translation.

Code example

preparedStatement.setString(1, bignumber);
preparedStatement.addBatch();

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions