From 498dd2321439a0d6785f67a20fc607efbbe94024 Mon Sep 17 00:00:00 2001 From: Zach Musgrave Date: Mon, 28 Oct 2024 12:27:49 -0700 Subject: [PATCH] Fixed printing bug in AliasedExpr node (was calling wrong print method, which doesn't work with custom formatters) --- go/vt/sqlparser/ast.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/vt/sqlparser/ast.go b/go/vt/sqlparser/ast.go index a4432abf33c..b2df6602587 100644 --- a/go/vt/sqlparser/ast.go +++ b/go/vt/sqlparser/ast.go @@ -4303,7 +4303,7 @@ func (node *AliasedExpr) Format(buf *TrackedBuffer) { buf.Myprintf("%v %v", node.Expr, node.As) } else { //buf.Myprintf("%s", node.InputExpression) - node.Expr.Format(buf) + buf.Myprintf("%v", node.Expr) } } else if !node.As.IsEmpty() { buf.Myprintf("%v as %v", node.Expr, node.As)