getCommonLength returns the common length of low and up
(low []string, up []string)
| 1137 | |
| 1138 | // getCommonLength returns the common length of low and up |
| 1139 | func 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) |
no outgoing calls
no test coverage detected