mirror of
https://github.com/moparisthebest/PhoneGap-SQLitePlugin-Android
synced 2024-11-21 08:25:01 -05:00
Updates for Android version to match working @chbrody test environment
This commit is contained in:
parent
410dd0d35f
commit
645d1f37f3
@ -75,7 +75,7 @@
|
||||
this.trans_id = get_unique_id();
|
||||
this.__completed = false;
|
||||
this.__submitted = false;
|
||||
this.optimization_no_nested_callbacks = true;//if set to true large batches of queries within a transaction will be much faster but you lose the ability to do muiti level nesting of executeSQL callbacks
|
||||
this.optimization_no_nested_callbacks = true;//if set to true large batches of queries within a transaction will be much faster but you _MAY_ lose the ability to do deep multi level nesting of executeSQL callbacks
|
||||
console.log("root.SQLitePluginTransaction - this.trans_id:"+this.trans_id);
|
||||
transaction_queue[this.trans_id] = [];
|
||||
transaction_callback_queue[this.trans_id] = new Object();
|
||||
@ -256,4 +256,4 @@
|
||||
return new SQLitePlugin(dbPath, creationCallback, errorCallback);
|
||||
}
|
||||
};
|
||||
}).call(this);
|
||||
}).call(this);
|
||||
|
@ -5,7 +5,7 @@
|
||||
* Copyright (c) 2005-2010, Nitobi Software Inc.
|
||||
* Copyright (c) 2010, IBM Corporation
|
||||
*/
|
||||
package com.phonegap.plugins.sqlitePlugin;
|
||||
package com.phonegap.plugin.sqlitePlugin;
|
||||
|
||||
import org.json.JSONArray;
|
||||
import org.json.JSONException;
|
||||
@ -228,6 +228,7 @@ public class SQLitePlugin extends Plugin {
|
||||
try {
|
||||
for (int i = 0; i < colCount; ++i) {
|
||||
key = cur.getColumnName(i);
|
||||
// for old Android SDK remove lines from HERE:
|
||||
if(android.os.Build.VERSION.SDK_INT >= 11)
|
||||
{
|
||||
switch(cur.getType (i))
|
||||
@ -249,7 +250,7 @@ public class SQLitePlugin extends Plugin {
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
else // to HERE.
|
||||
{
|
||||
row.put(key, cur.getString(i));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user