Thomas1703
Thomas1703

Reputation: 1172

cordova.exec in phonegap app (sqlite)

I upgraded my phonegap application to version 3.0 by updating the sqlite plugin to the newest version (https://github.com/j3k0/PhoneGap-SQLitePlugin-iOS)

By running i.e. this script (which run without problems before)

function onDeviceReady() {    
    var db = window.sqlitePlugin.openDatabase(shortName, version, displayName,maxSize);
}

I get this log in my console:

The old format of this exec call has been removed (deprecated since 2.1). Change to: cordova.exec(null, null, "SQLitePlugin",...

There is no error, no warning, etc. just this information for every SQL statement. How can I fix that problem?

Upvotes: 0

Views: 972

Answers (1)

Dawson Loudon
Dawson Loudon

Reputation: 6029

Looks like you need to update line 26 in SQLitePlugin.js

change from:

cordova.exec(success, error, "SQLitePlugin", method, [options]);

to:

cordova.exec(null, null, "SQLitePlugin", method, [options]);

Upvotes: 3

Related Questions