This is used in stored procedures to avoid memory leaks and does a deep copy of its argument. */
| 2134 | does a deep copy of its argument. |
| 2135 | */ |
| 2136 | void set_str_with_copy(const char *str_arg, uint length_arg) |
| 2137 | { |
| 2138 | str_value.copy(str_arg, length_arg, collation.collation); |
| 2139 | max_length= str_value.numchars() * collation.collation->mbmaxlen; |
| 2140 | } |
| 2141 | void set_repertoire_from_value() |
| 2142 | { |
| 2143 | collation.repertoire= my_string_repertoire(str_value.charset(), |