You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Samuel,
It's just to inform you that my 2 way sync is working perfectly with MySQL. I use 2 indexes (one for the client DB and one for the server DB). I modifyed webSqlSync.js to handle inserted records directly into MySQL that have a null client id value. When I insert a record in webSQL (with the client), I use -1 in the "server" ID to inform the server adapter that's a record newly created with the app. -1 mean to do an INSERT INTO MySQL.
You'll find my code on my GitHub webSqlApp. I think, it will answer a lot of questions from the community.
Ciao!
Alain from Montréal.
Hello,
I just noticed that all my values from the server are now a string "null" after I send updates from server to the client.
On INSERT it works fine, because you use placeholder '?' in the INSERT statement.
But in the UPDATE statement you write the following in line 473 (_buildUpdateSQL):
Here the values are enclosed by quotes and now it is a string "null". :-(
Could you please use also placeholders in UPDATE?
Best regards,
Mario
The text was updated successfully, but these errors were encountered: