mirror of
https://github.com/moparisthebest/PhoneGap-SQLitePlugin-Android
synced 2024-11-24 09:32:18 -05:00
Comment out change for issue 18 until SQLiteStatement parameter binding is fixed
This commit is contained in:
parent
a0254c0596
commit
f1cf60ea2d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user