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

Function getCommonLength

dumpling/export/sql.go:1139–1146  ·  view source on GitHub ↗

getCommonLength returns the common length of low and up

(low []string, up []string)

Source from the content-addressed store, hash-verified

1137
1138// getCommonLength returns the common length of low and up
1139func getCommonLength(low []string, up []string) int {
1140 for i := range low {
1141 if low[i] != up[i] {
1142 return i
1143 }
1144 }
1145 return len(low)
1146}
1147
1148// buildBetweenClause build clause in a specified table range.
1149// the result where clause will be low <= quotaCols < up. In other words, [low, up)

Callers 1

buildBetweenClauseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected