Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Cordova SQLite adapter not able to query select or delete by parameter array #94
Describe the bug
Code that does not work on SQLite, but works with IndexDb Adapter:
Workaround that works on SQLite, but performance might not be as good?
It looks like there's an issue with integer primary keys being selected. I suspect it has something to do with SQLite messing with the primary key column as it gets inserted.
I'm going to need to modify all the SQLite plugins (Cordova/WebSQL/SQLite3) to treat the integer primary keys differently.
In the meantime if you switch to UUIDs the queries should work again as expected.
This should be resolved as of NanoSQL v1.8.0 and Cordova/SQLite3 adapters v1.6.0. You may need to export your databases and reimport them if you were using a numerical primary key, the issue was due to a type conflict with the primary key of the SQLite database.
Good morning @ClickSimply, I also have the same bug. As I use a string id, please let me know when version v1.8.0 might come out so I can see what path without return to take to solve this problem (I can not replace my id fields with a uuid because they are necessary for me)