From d887e798c369a6017af0a05c47897740435f7eb8 Mon Sep 17 00:00:00 2001 From: Konstantin Shaposhnikov Date: Mon, 12 Oct 2015 21:38:50 +0800 Subject: [PATCH] Fix infinite recursion in DeleteStatement.String() Fixes #4406 --- influxql/ast.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.