code.onehippo.org is currently readonly. We are migrating to code.bloomreach.com, please continue working there on Monday 14/12. See: https://docs.bloomreach.com/display/engineering/GitLab

Commit 1ab2df65 authored by Ard Schrijvers's avatar Ard Schrijvers

REPO-1942 [Backport 4.2.7] bump the index in the next loop

(note this was at this moment not a real bug because uniqueIndexes always
contained just 1 value)

(cherry picked from commit bff17130)
parent 7bd32488
......@@ -149,6 +149,7 @@ public class DbLockManager extends AbstractLockManager {
int index = 1;
for (String uniqueIndex : uniqueIndexes) {
statement.addBatch("CREATE UNIQUE INDEX " + tableName + "_idx_"+index+" on " + tableName + "("+uniqueIndex+")");
index++;
}
statement.setQueryTimeout(10);
statement.executeBatch();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment