Skip to content

int63 values are bound as int64, making them unsigned #31

@cyberhuman

Description

@cyberhuman

Since integers are 63-bit in ocaml, the following code does not work properly when trying to bind negative integers:

https://github.com/andrenth/ocaml-mariadb/blob/master/lib/bind.ml#L123

The effect is when trying to bind -1 to an integer placeholder, it takes the value 2147483647.

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