Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
snuyanzin committed Aug 14, 2024
1 parent 0aec982 commit 75ee82d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public ShowViewsOperation(String likePattern, boolean useLike, boolean notLike)
this.catalogName = null;
this.databaseName = null;
this.useLike = useLike;
this.notLike = false;
this.notLike = notLike;
this.likePattern =
useLike ? checkNotNull(likePattern, "Like pattern must not be null.") : null;
this.preposition = null;
Expand All @@ -70,7 +70,8 @@ public ShowViewsOperation(
this.databaseName = checkNotNull(databaseName, "Database name must not be null");
this.useLike = useLike;
this.notLike = notLike;
this.likePattern = checkNotNull(likePattern, "Like pattern must not be null");
this.likePattern =
useLike ? checkNotNull(likePattern, "Like pattern must not be null.") : null;
this.preposition = checkNotNull(preposition, "Preposition must not be null");
}

Expand Down

0 comments on commit 75ee82d

Please sign in to comment.