Skip to content

Commit

Permalink
This is an automated cherry-pick of #57011
Browse files Browse the repository at this point in the history
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
  • Loading branch information
mjonss authored and ti-chi-bot committed Feb 7, 2025
1 parent 18f58f0 commit 1e2379d
Show file tree
Hide file tree
Showing 3 changed files with 969 additions and 4 deletions.
8 changes: 4 additions & 4 deletions planner/core/point_get_plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -808,8 +808,8 @@ func newBatchPointGetPlan(
if dval == nil {
return nil
}
values[permIndex] = innerX.Datum
pairs = append(pairs, nameValuePair{colName: whereColNames[index], value: innerX.Datum})
values[permIndex] = *dval
pairs = append(pairs, nameValuePair{colName: whereColNames[index], value: *dval})
case *driver.ParamMarkerExpr:
con, err := expression.ParamMarkerExpression(ctx, innerX, true)
if err != nil {
Expand All @@ -823,12 +823,12 @@ func newBatchPointGetPlan(
if dval == nil {
return nil
}
values[permIndex] = innerX.Datum
values[permIndex] = *dval
valuesParams[permIndex] = con
if initTypes {
indexTypes[permIndex] = &colInfos[index].FieldType
}
pairs = append(pairs, nameValuePair{colName: whereColNames[index], value: innerX.Datum})
pairs = append(pairs, nameValuePair{colName: whereColNames[index], value: *dval})
default:
return nil
}
Expand Down
Loading

0 comments on commit 1e2379d

Please sign in to comment.