From f3ee39d8683c325256abb2a70a56f0cc22d6a9bb Mon Sep 17 00:00:00 2001 From: Andres Taylor Date: Thu, 28 Nov 2024 17:53:38 +0100 Subject: [PATCH] refactor: removed unneccessary code Signed-off-by: Andres Taylor --- go/vt/vtgate/semantics/analyzer.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/go/vt/vtgate/semantics/analyzer.go b/go/vt/vtgate/semantics/analyzer.go index b01cc3fa836..988932f4414 100644 --- a/go/vt/vtgate/semantics/analyzer.go +++ b/go/vt/vtgate/semantics/analyzer.go @@ -467,10 +467,6 @@ func (a *analyzer) noteQuerySignature(node sqlparser.SQLNode) { a.sig.Aggregation = true case *sqlparser.Delete, *sqlparser.Update, *sqlparser.Insert: a.sig.DML = true - case *sqlparser.FuncExpr: - if len(node.Exprs) == 1 && node.Name.EqualString("last_insert_id") { - a.sig.LastInsertIDArg = true - } } }