package com.alibaba.druid.sql.dialect.mysql.ast.statement;

import com.alibaba.druid.sql.ast.SQLLimit;
import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;

public class MySqlShowErrorsStatement extends MySqlStatementImpl implements MySqlShowStatement {
   private boolean count = false;
   private SQLLimit limit;

   public boolean isCount() {
      return this.count;
   }

   public void setCount(boolean count) {
      this.count = count;
   }

   public SQLLimit getLimit() {
      return this.limit;
   }

   public void setLimit(SQLLimit limit) {
      this.limit = limit;
   }

   public void accept0(MySqlASTVisitor visitor) {
      if (visitor.visit(this)) {
         this.acceptChild(visitor, this.limit);
      }

      visitor.endVisit(this);
   }
}
