summaryrefslogtreecommitdiff
path: root/sql/mysql_priv.h
diff options
context:
space:
mode:
authorunknown <bar@mysql.com>2004-12-06 20:45:32 +0400
committerunknown <bar@mysql.com>2004-12-06 20:45:32 +0400
commit8ec6cf2cd5ed54f1336784ffe548a813cbbde172 (patch)
treea397eb25eef58a660d9d2e554e7c8f8800bdb8f4 /sql/mysql_priv.h
parent678fff408a8cd475555d3bbce3d77fd0a2c76a4a (diff)
downloadmariadb-git-8ec6cf2cd5ed54f1336784ffe548a813cbbde172.tar.gz
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
Diffstat (limited to 'sql/mysql_priv.h')
-rw-r--r--sql/mysql_priv.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/sql/mysql_priv.h b/sql/mysql_priv.h
index 3a19a903e00..cefc77cb5d4 100644
--- a/sql/mysql_priv.h
+++ b/sql/mysql_priv.h
@@ -1201,6 +1201,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
*/