Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Error opening sqlite database

$
0
0

@Joachim wrote:

I get an error when I try to open an existing sqlite database. The problem is that the ionic implementation usese a double as version number whereas the documentation of sqlite requests a integer.

If I change the Version Number from "1.0" to "1" everything works fine. The code is here:

ionic-framework/platform/storage/sql.js:

this._db = window.openDatabase(dbOptions.name, '1.0', 'database', 5 * 1024 * 1024);
change to:
this._db = window.openDatabase(dbOptions.name, '1', 'database', 5 * 1024 * 1024);`

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>