From 3ea0b81358afb3faf71c5b699e0356562492b291 Mon Sep 17 00:00:00 2001 From: Harshit Gangal Date: Wed, 24 Jan 2024 14:43:15 +0530 Subject: [PATCH] use snakecase for constant Signed-off-by: Harshit Gangal --- go/vt/vtgate/engine/delete_with_input.go | 4 ++-- go/vt/vtgate/planbuilder/operators/query_planning.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go/vt/vtgate/engine/delete_with_input.go b/go/vt/vtgate/engine/delete_with_input.go index 35d85a0e7a0..9a0168b946b 100644 --- a/go/vt/vtgate/engine/delete_with_input.go +++ b/go/vt/vtgate/engine/delete_with_input.go @@ -28,7 +28,7 @@ import ( var _ Primitive = (*DeleteWithInput)(nil) -const DM_VALS = "dm_vals" +const DmVals = "dm_vals" // DeleteWithInput represents the instructions to perform a delete operation based on the input result. type DeleteWithInput struct { @@ -70,7 +70,7 @@ func (del *DeleteWithInput) TryExecute(ctx context.Context, vcursor VCursor, bin bv = getBVMulti(inputRes, del.OutputCols) } - bindVars[DM_VALS] = bv + bindVars[DmVals] = bv return vcursor.ExecutePrimitive(ctx, del.Delete, bindVars, false) } diff --git a/go/vt/vtgate/planbuilder/operators/query_planning.go b/go/vt/vtgate/planbuilder/operators/query_planning.go index b561c9028c6..135126a15bd 100644 --- a/go/vt/vtgate/planbuilder/operators/query_planning.go +++ b/go/vt/vtgate/planbuilder/operators/query_planning.go @@ -164,7 +164,7 @@ func createDeleteWithInput(ctx *plancontext.PlanningContext, in *Delete, src Ope if len(leftComp) == 1 { lhs = leftComp[0] } - compExpr := sqlparser.NewComparisonExpr(sqlparser.InOp, lhs, sqlparser.ListArg(engine.DM_VALS), nil) + compExpr := sqlparser.NewComparisonExpr(sqlparser.InOp, lhs, sqlparser.ListArg(engine.DmVals), nil) targetQT := targetTable.QTable qt := &QueryTable{ ID: targetQT.ID,