Skip to content

Commit

Permalink
optimise logic
Browse files Browse the repository at this point in the history
  • Loading branch information
kanha-gupta committed Nov 11, 2023
1 parent af085b9 commit 6455d91
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static Optional<SqlNode> convert(final SimpleTableSegment segment) {
addOwnerNames(names, segment.getOwner().get());
}
names.add(tableName.getIdentifier().getValue());
if (segment.getDbLink().isPresent()) {
if (segment.getDbLink().isPresent() && segment.getAt().isPresent()) {
names.add(segment.getAt().get().getValue());
names.add(segment.getDbLink().get().getValue());
}
Expand Down

0 comments on commit 6455d91

Please sign in to comment.