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 75ee82d commit 7066a8f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,8 @@ public void unparse(SqlWriter writer, int leftPrec, int rightPrec) {
databaseName.unparse(writer, leftPrec, rightPrec);
}
if (isWithLike()) {
if (isWithLike()) {
final String prefix = isNotLike() ? "NOT " : "";
writer.keyword(String.format("%sLIKE '%s'", prefix, getLikeSqlPattern()));
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,7 @@ private Operation convertDropView(SqlDropView sqlDropView) {
/** Convert SHOW VIEWS statement. */
private Operation convertShowViews(SqlShowViews sqlShowViews) {
if (sqlShowViews.getPreposition() == null) {
return new ShowTablesOperation(
return new ShowViewsOperation(
sqlShowViews.getLikeSqlPattern(),
sqlShowViews.isWithLike(),
sqlShowViews.isNotLike());
Expand Down

0 comments on commit 7066a8f

Please sign in to comment.