orbitaloop/WebSqlSync

Update applies 'null' string to null column values

Closed this issue · 3 comments

I've detected a bug which saves the 'null' string to null values coming from the service,

The bug is on the _buildUpdateSQL function, which generates the update string by doing "FIELD" = "VALUE", where it should be "FIELD" = VALUE

feel free to create a pull request with your fix.

The fix is as simple as i've posted (remove quotes). I've no time right now for a pull request.

Thanks.
I don't have time to test your fix, but I added a comment, so next people having this problem and testing the change can make a pull request