Comment out change for issue 18 until SQLiteStatement parameter binding is fixed

This commit is contained in:
Chris Brody 2012-08-05 18:53:00 +02:00
parent a0254c0596
commit f1cf60ea2d
1 changed files with 2 additions and 1 deletions

View File

@ -158,6 +158,7 @@ public class SQLitePlugin extends Plugin {
query = queryarr[i];
params = paramsarr[i];
query_id = queryIDs[i];
/** issue #18: fix needed to bind the parameters to the SQLiteStatement
if (query.toLowerCase().startsWith("insert")) {
SQLiteStatement myStatement = this.myDb.compileStatement(query);
long insertId = myStatement.executeInsert();
@ -165,7 +166,7 @@ public class SQLitePlugin extends Plugin {
//String result = "[{'insertId':'" + insertId + "'}]";
String result = "{'insertId':'" + insertId + "'}";
this.sendJavascript("SQLitePluginTransaction.queryCompleteCallback('" + tx_id + "','" + query_id + "', " + result + ");");
} else {
} else **/ {
Cursor myCursor = this.myDb.rawQuery(query, params);
this.processResults(myCursor, query_id, tx_id);