mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
UCS2 support in ENUM and SET, which also fixes:
Bug #5174 SHOW CREATE TABLE hangs up if the table contains half-with katakana enum values UCS2 values are stored in HEX encoding in FRM file
This commit is contained in:
@ -1200,6 +1200,23 @@ inline void setup_table_map(TABLE *table, TABLE_LIST *table_list, uint tablenr)
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
SYNOPSYS
|
||||
hexchar_to_int()
|
||||
convert a hex digit into number
|
||||
*/
|
||||
|
||||
inline int hexchar_to_int(char c)
|
||||
{
|
||||
if (c <= '9' && c >= '0')
|
||||
return c-'0';
|
||||
c|=32;
|
||||
if (c <= 'f' && c >= 'a')
|
||||
return c-'a'+10;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Some functions that are different in the embedded library and the normal
|
||||
server
|
||||
|
Reference in New Issue
Block a user