Skip to content

Commit

Permalink
handle id as String
Browse files Browse the repository at this point in the history
  • Loading branch information
mmouterde committed Dec 19, 2023
1 parent 2fda7ca commit 1833387
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,11 @@ private JSONObject generateInsertAndDeletedStrings(ArrayList<String> tColNames,
insertValues.append("(").append(formattedRow).append("), ");
}
} else if ((int) rowIndex.get(colIndex) == 1) {
deletedIds.append(rowIndex.get(0)).append(", ");
if (rowIndex.get(0) instanceof String) {
deletedIds.append("'").append(rowIndex.get(0)).append("', ");
} else {
deletedIds.append(rowIndex.get(0)).append(", ");
}
}
}

Expand Down

0 comments on commit 1833387

Please sign in to comment.