Skip to content

BigIntegers turnt to Integers after model save #631

@sevastos

Description

@sevastos

Thus resulting in loss of precision (e.x: 9223372036854775807 => 9223372036854776000).

I have only been working with Postgres, so I don't know if this happens for MySQL etc. as well.
This may very well be an issue with the node-postgres module, so I will look into it further.

The issue wasn't "visible" on the tests due to the use of toEqual that effectively does

9223372036854776000 == '9223372036854775807' //true

I made a PR with the updated test #632

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions