Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: srlch <[email protected]>
  • Loading branch information
srlch committed Nov 13, 2024
1 parent 59415d3 commit 1c8fcb3
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,12 @@ public Void visitBackupStatement(BackupStmt backupStmt, ConnectContext context)
String fnName = entry.getKey();
List<Function> fns = entry.getValue();

boolean notExisted = fnRefs.stream()
.allMatch(fnRef -> fnRef.getFnName().getFunction().equalsIgnoreCase(fnName));

if (notExisted) {
fnRefs.add(new FunctionRef(fns));
if (fnRefs.stream().anyMatch(x -> x.getFunctions().get(0)
.getFunctionName().getFunction().equalsIgnoreCase(fnName))) {
continue;
}

fnRefs.add(new FunctionRef(fns));
}
} else {
backupStmt.getFnRefs().stream().forEach(x -> x.analyzeForBackup(database));
Expand Down

0 comments on commit 1c8fcb3

Please sign in to comment.