Comment out change in xtra-DroidGap-test from accidental commit

This commit is contained in:
Chris Brody 2012-07-23 16:10:13 +02:00
parent 199eb6a15e
commit a651e8758c
1 changed files with 2 additions and 0 deletions

View File

@ -174,10 +174,12 @@ public class SQLitePlugin extends Plugin {
long insertId = myStatement.executeInsert();
this.sendJavascript("dddb.completeQuery('" + tx_id + "', [{'insertId':'" + insertId +
"', 'rowsAffected':'1'}]);");
/* Test fix for #22, requires API 11+: **
} else if (cmd.startsWith("update") || cmd.startsWith("delete")) {
SQLiteStatement myStatement = this.myDb.compileStatement(query);
int rowsAffected = myStatement.executeUpdateDelete();
this.sendJavascript("dddb.completeQuery('" + tx_id + "', [{'rowsAffected':'" + rowsAffected + "'}]);");
* END of Test fix for #22, requires API 11+ */
} else if (isDDL(query)) {
this.myDb.execSQL(query);
this.sendJavascript("dddb.completeQuery('" + tx_id + "', '');");