Skip to content

Commit

Permalink
conflict fix (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
denis256 authored Dec 21, 2023
1 parent 1042c86 commit 6983793
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public BasicPolyList insert(String dataset, InsertOptions insertOptions, Collect
connection.setAutoCommit(false);
PreparedStatement preparedStatement = connection
.prepareStatement(
"INSERT INTO data(_id_n, _id, data, polydata_index, create_date, update_date) VALUES(?, ?, ?, ?, ?, ?)");
"INSERT INTO data(_id_n, _id, data, polydata_index, create_date, update_date) VALUES(?, ?, ?, ?, ?, ?) ON CONFLICT (_id_n) DO NOTHING;");

for (InsertRequest request : toInsert) {
String id = request.getData()._id();
Expand Down

0 comments on commit 6983793

Please sign in to comment.