coresmart / persistencejs

persistence.js is an asynchronous Javascript database mapper library. You can use it in the browser, as well on the server (and you can share data models between them).
http://persistencejs.org
1.73k stars 240 forks source link

Fixing a bug where persistence.transaction would call websql instead of sqliteplugin #179

Closed hammady closed 4 years ago

hammady commented 8 years ago

This is very weird. Such bug existed for so long with no one discovering it, although it would cause a disaster. When calling persistence.transaction when the native sqliteplugin is active, it would delegate to websql driver rather than sqliteplugin. With this fix, I have been testing persistence.transaction to issue raw queries for long on a device with sqliteplugin loaded. Please tell me if i am missing something.