Skip to content

Commit

Permalink
Merge pull request #126 from iefnaf/fix/binlogx_output_visitor
Browse files Browse the repository at this point in the history
fix output visitor for binlog statements
  • Loading branch information
Oldbread3 authored Mar 23, 2023
2 parents d71a81c + 09ca484 commit f2e4a4b
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3352,12 +3352,20 @@ public void endVisit(MySqlShowBinaryLogsStatement x) {
@Override
public boolean visit(MySqlShowBinaryLogsStatement x) {
print0(ucase ? "SHOW BINARY LOGS" : "show binary logs");
if (x.getWith() != null) {
print0(ucase ? " WITH " : " with ");
x.getWith().accept(this);
}
return false;
}

@Override
public boolean visit(MySqlShowMasterLogsStatement x) {
print0(ucase ? "SHOW MASTER LOGS" : "show master logs");
if (x.getWith() != null) {
print0(ucase ? " WITH " : " with ");
x.getWith().accept(this);
}
return false;
}

Expand Down Expand Up @@ -3388,6 +3396,10 @@ public void endVisit(MySqlShowCollationStatement x) {
@Override
public boolean visit(MySqlShowBinLogEventsStatement x) {
print0(ucase ? "SHOW BINLOG EVENTS" : "show binlog events");
if (x.getWith() != null) {
print0(ucase ? " WITH " : " with ");
x.getWith().accept(this);
}
if (x.getIn() != null) {
print0(ucase ? " IN " : " in ");
x.getIn().accept(this);
Expand Down

0 comments on commit f2e4a4b

Please sign in to comment.