diff --git a/influxql/ast.go b/influxql/ast.go index 2874f5a4b7..abc089f47a 100644 --- a/influxql/ast.go +++ b/influxql/ast.go @@ -1717,7 +1717,7 @@ func (s *DeleteStatement) String() string { _, _ = buf.WriteString(" WHERE ") _, _ = buf.WriteString(s.Condition.String()) } - return s.String() + return buf.String() } // RequiredPrivileges returns the privilege required to execute a DeleteStatement.