MCPcopy
hub / github.com/pingcap/tidb / dataToStrings

Function dataToStrings

pkg/executor/batch_checker.go:261–271  ·  view source on GitHub ↗
(data []types.Datum)

Source from the content-addressed store, hash-verified

259}
260
261func dataToStrings(data []types.Datum) ([]string, error) {
262 strs := make([]string, 0, len(data))
263 for _, datum := range data {
264 str, err := datum.ToString()
265 if err != nil {
266 return nil, errors.Trace(err)
267 }
268 strs = append(strs, str)
269 }
270 return strs, nil
271}
272
273// getOldRow gets the table record row from storage for batch check.
274// t could be a normal table or a partition, but it must not be a PartitionedTable.

Callers 1

getKeysNeedCheckOneRowFunction · 0.85

Calls 1

ToStringMethod · 0.65

Tested by

no test coverage detected