Skip to content

Big values for timestamptz are convert to null #447

@BierDav

Description

@BierDav

In my database I used +infinity as a value in my postgres database:

Image

But on powersync-js and powersync-kotlin (on KMP) the value received is not a big date as expected, but null

Error in streamingSync: Error code: 1299, message: powersync_control: replacing into review_day, id = 2, data = {"id":2,"ordinal":2147483647,"parent_id":2,"period_end_exclusive":null,"period_start_inclusive":"2029-01-02T23:00:00.000000Z","type":1}: internal SQLite call returned CONSTRAINT_NOTNULL: NOT NULL constraint failed: review_day.period_end_exclusive

After some testing it seems like 9999-01-01 00:00:00.000000 +00:00 is the maximum value that persist their value to the client db.

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