Updates for Android version to match working @chbrody test environment

This commit is contained in:
Chris Brody 2012-04-11 20:41:00 +02:00
parent 410dd0d35f
commit 645d1f37f3
2 changed files with 5 additions and 4 deletions

View File

@ -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();

View File

@ -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));
}