Skip to content

Commit

Permalink
Fix pattern repetitive
Browse files Browse the repository at this point in the history
  • Loading branch information
suarezgpablo committed Nov 18, 2024
1 parent de0b421 commit cb0292a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ private void executeInserts(Script script, List<ColumnValue> cvs, List<List<Colu
* Replaces and concatenates all the insertions that come from a join column operation
*/
private void replaceJoinColumnVariables(String statementInsertWithKeyspace, List<ColumnValue> cvs) {
Pattern pattern = Pattern.compile("\\$(\\d+)(\\+\\$(\\d+))*"); //Obtains all the joins that exist
Pattern pattern = Pattern.compile("\\$(\\d+)(\\+\\$(\\d+))"); //Obtains all the joins that exist
Matcher matcher = pattern.matcher(statementInsertWithKeyspace);
while (matcher.find()) {
String match = matcher.group();
Expand Down

0 comments on commit cb0292a

Please sign in to comment.