Skip to content

Unable to sync updated null value in DB row #179

Open
@spendora-app

Description

I have followed the supabase and powersync implementation in the supabase-simple-chat demo.

I have a column that has nullable string values. After I update the value to null in the local database via an INSERT OR REPLACE SQL statement. I can see the value in the sqlite database become null. However after a few seconds it seems to re-update its value back to the previous non null value.

I suspect the null update is not being pushed to supabase, but instead it is resetting my local to be in sync with supabase instead.

To strangely when i use an UPDATE instead of an INSERT OR REPLACE, it seems to work fine.

Hoping someone could advise on how to manage this?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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