Skip to content

Support NaN insertion #799

Open
Open
@tzachshabtay

Description

@tzachshabtay

Looking at the current decimal implementation it doesn't support NaN insertion:
https://github.com/volatiletech/sqlboiler/blob/fad098aa2ba38220c0727620b7ea665983aec26e/types/decimal.go#L29

And trying to insert it anyway results in an error:
refusing to allow NaN into database

However postgres does support NaN:
https://www.postgresqltutorial.com/postgresql-numeric/

Can we change decimal to support NaN insertion?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions