mirror of
https://github.com/moparisthebest/PhoneGap-SQLitePlugin-Android
synced 2024-11-24 17:42:17 -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.trans_id = get_unique_id();
|
||||||
this.__completed = false;
|
this.__completed = false;
|
||||||
this.__submitted = 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);
|
console.log("root.SQLitePluginTransaction - this.trans_id:"+this.trans_id);
|
||||||
transaction_queue[this.trans_id] = [];
|
transaction_queue[this.trans_id] = [];
|
||||||
transaction_callback_queue[this.trans_id] = new Object();
|
transaction_callback_queue[this.trans_id] = new Object();
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* Copyright (c) 2005-2010, Nitobi Software Inc.
|
* Copyright (c) 2005-2010, Nitobi Software Inc.
|
||||||
* Copyright (c) 2010, IBM Corporation
|
* Copyright (c) 2010, IBM Corporation
|
||||||
*/
|
*/
|
||||||
package com.phonegap.plugins.sqlitePlugin;
|
package com.phonegap.plugin.sqlitePlugin;
|
||||||
|
|
||||||
import org.json.JSONArray;
|
import org.json.JSONArray;
|
||||||
import org.json.JSONException;
|
import org.json.JSONException;
|
||||||
@ -228,6 +228,7 @@ public class SQLitePlugin extends Plugin {
|
|||||||
try {
|
try {
|
||||||
for (int i = 0; i < colCount; ++i) {
|
for (int i = 0; i < colCount; ++i) {
|
||||||
key = cur.getColumnName(i);
|
key = cur.getColumnName(i);
|
||||||
|
// for old Android SDK remove lines from HERE:
|
||||||
if(android.os.Build.VERSION.SDK_INT >= 11)
|
if(android.os.Build.VERSION.SDK_INT >= 11)
|
||||||
{
|
{
|
||||||
switch(cur.getType (i))
|
switch(cur.getType (i))
|
||||||
@ -249,7 +250,7 @@ public class SQLitePlugin extends Plugin {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else // to HERE.
|
||||||
{
|
{
|
||||||
row.put(key, cur.getString(i));
|
row.put(key, cur.getString(i));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user