Skip to content

Commit

Permalink
Reverse erroneous commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Porebski committed Jan 4, 2019
1 parent ab391dc commit 0b6bafe
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,25 +172,6 @@ else if (queryType == QueryType.insert && queryParams != null) {
}
}

// ALTER:
else if (queryType == QueryType.alter) {
FLog.d("executeSqlBatch","ALTER");
needRawQuery = false;

try {
mydb.execSQL(query);

queryResult = Arguments.createMap();
queryResult.putInt("rowsAffected", 0);
} catch (SQLiteException ex) {
// report error result with the error message
// could be constraint violation or some other error
ex.printStackTrace();
errorMessage = ex.getMessage();
FLog.v("executeSqlBatch", "SQLiteDatabase.execSQL(): Error=" + errorMessage);
}
}

else if (queryType == QueryType.begin) {
needRawQuery = false;
try {
Expand Down Expand Up @@ -386,7 +367,6 @@ static enum QueryType {
insert,
delete,
select,
alter,
begin,
commit,
rollback,
Expand Down
20 changes: 0 additions & 20 deletions src/android/src/main/java/org/pgsqlite/SQLitePlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -667,25 +667,6 @@ else if (queryType == QueryType.insert && queryParams != null) {
}
}

// ALTER:
else if (queryType == QueryType.alter) {
FLog.d("executeSqlBatch","ALTER");
needRawQuery = false;

try {
mydb.execSQL(query);

queryResult = Arguments.createMap();
queryResult.putInt("rowsAffected", 0);
} catch (SQLiteException ex) {
// report error result with the error message
// could be constraint violation or some other error
ex.printStackTrace();
errorMessage = ex.getMessage();
FLog.v("executeSqlBatch", "SQLiteDatabase.execSQL(): Error=" + errorMessage);
}
}

else if (queryType == QueryType.begin) {
needRawQuery = false;
try {
Expand Down Expand Up @@ -1047,7 +1028,6 @@ private enum QueryType {
insert,
delete,
select,
alter,
begin,
commit,
rollback,
Expand Down

0 comments on commit 0b6bafe

Please sign in to comment.