-
Notifications
You must be signed in to change notification settings - Fork 713
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Database not closing on Android #150
Comments
+1 will make this fix sometime later thanks @magikozio |
Fixes: - #193: workaround for Android db locking/closing issue - #144: convert array parameters to string to match Web SQL - #199: fix double-precision REAL values in result for iOS version - #150/#153: close Android db before removing from map - Fix truncation in iOS query result in case of UNICODE NULL (\0 or \u0000) (ref: PR #170) - Some fixes for error handling to be consistent with Web SQL (ref: PR #170) Testing ONLY: - #147: testing with UNICODE line separator - #195: Reproduce issue with double-precision REAL number on WP(8) ONLY
Fixes: - #193: workaround for Android db locking/closing issue - #144: convert array parameters to string to match Web SQL - #199: fix double-precision REAL values in result for iOS version - #150/#153: close Android db before removing from map - Fix truncation in iOS query result in case of UNICODE NULL (\0 or \u0000) (ref: PR #170) - Some fixes for error handling to be consistent with Web SQL (ref: PR #170) Testing ONLY: - #147: testing with UNICODE line separator - #195: Reproduce issue with double-precision REAL number on WP(8) ONLY
The fix has been published. |
Related to the following fixes: - #193: workaround for Android db locking/closing issue - #144: convert array parameters to string to match Web SQL - #199: fix double-precision REAL values in result for iOS version - #150/#153: close Android db before removing from map - Fix truncation in iOS query result in case of UNICODE NULL (\0 or \u0000) (ref: PR #170) - Some fixes for error handling to be consistent with Web SQL (ref: PR #170)
@durgaprasadp I am very sorry but this is not enough information to help you and from the log, I can see that you are using an old version of the plugin. Also, this issue was regarding a small fix that was needed in the past. The fix has been applied and this issue is now closed. Please upgrade to use the latest version of this plugin. If you are still having problems, please do the following:
|
@durgaprasadp can you try opening the database with |
I was experiencing a problem on Android platform, when closing the database. This caused problems in my app, since in some cases I needed to reload the page, and to prevent opening the same database multiple times, before the reload I was closing the DB. Unfortunately this seemed not to work and in logcat I had:
The issue seemed to be in the run() method of DBRunner:
Here, first the mapping with the db name is removed and then the database connection closed. But the closeDatabaseNow method uses that mapping to retrieve the database object, and since it has been removed, nothing is returned and the database is not closed.
The solution was simple: I just switched those rows and the database was closed correctly.
I hope this can help someone
The text was updated successfully, but these errors were encountered: