|
My Project
|
Public Member Functions | |
| Field_longstr (uchar *ptr_arg, uint32 len_arg, uchar *null_ptr_arg, uchar null_bit_arg, utype unireg_check_arg, const char *field_name_arg, const CHARSET_INFO *charset_arg) | |
| type_conversion_status | store_decimal (const my_decimal *d) |
| uint32 | max_data_length () const |
Protected Member Functions | |
| type_conversion_status | report_if_important_data (const char *ptr, const char *end, bool count_spaces) const |
| type_conversion_status | check_string_copy_error (const char *well_formed_error_pos, const char *cannot_convert_error_pos, const char *from_end_pos, const char *end, bool count_spaces, const CHARSET_INFO *cs) const |
| type_conversion_status Field_longstr::check_string_copy_error | ( | const char * | well_formed_error_pos, |
| const char * | cannot_convert_error_pos, | ||
| const char * | from_end_pos, | ||
| const char * | end, | ||
| bool | count_spaces, | ||
| const CHARSET_INFO * | cs | ||
| ) | const [protected] |
Report "not well formed" or "cannot convert" error after storing a character string info a field.
As of version 5.0 both cases return the same error:
"Invalid string value: 'xxx' for column 't' at row 1"
Future versions will possibly introduce a new error message:
"Cannot convert character string: 'xxx' for column 't' at row 1"
| well_formed_error_pos | position of the first non-wellformed character in the source string |
| cannot_convert_error_pos | position of the first non-convertable character in the source string |
| from_end_pos | position where conversion stopped in the source string |
| end | end of the source string |
| count_spaces | treat trailing spaces as important data |
| cs | character set of the string |
| uint32 Field_longstr::max_data_length | ( | ) | const [virtual] |
Get the maximum size of the data in packed format.
Reimplemented from Field.
Reimplemented in Field_blob.
| type_conversion_status Field_longstr::store_decimal | ( | const my_decimal * | d | ) | [virtual] |
Decimal representation of Field_str.
| d | value for storing |
| 0 | OK |
| !=0 | error |
Reimplemented from Field_str.
1.7.6.1