(b []byte, val types.Datum, comparable1 bool)
| 213 | } |
| 214 | |
| 215 | func encodeString(b []byte, val types.Datum, comparable1 bool) []byte { |
| 216 | if collate.NewCollationEnabled() && comparable1 { |
| 217 | return encodeBytes(b, collate.GetCollator(val.Collation()).Key(val.GetString()), true) |
| 218 | } |
| 219 | return encodeBytes(b, val.GetBytes(), comparable1) |
| 220 | } |
| 221 | |
| 222 | func encodeBytes(b []byte, v []byte, comparable1 bool) []byte { |
| 223 | if comparable1 { |
no test coverage detected