1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

A preparatory patch for MDEV-6566.

Adding a new virtual function MY_CHARSET_HANDLER::copy_abort().
Moving character set specific code into the correspoding implementations
(for simple, multi-byte and mbmaxlen>1 character sets).
This commit is contained in:
Alexander Barkov
2015-03-02 18:24:22 +04:00
parent 7047bef1ef
commit b1b6101af2
18 changed files with 185 additions and 89 deletions

View File

@ -43,10 +43,8 @@ inline uint32 copy_and_convert(char *to, uint32 to_length,
}
class String_copier
class String_copier: private MY_STRCOPY_STATUS
{
const char *m_source_end_pos;
const char *m_well_formed_error_pos;
const char *m_cannot_convert_error_pos;
public:
const char *source_end_pos() const