summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbar@gw.udmsearch.izhnet.ru <>2002-04-17 17:27:13 +0500
committerbar@gw.udmsearch.izhnet.ru <>2002-04-17 17:27:13 +0500
commit64943e08a1ab71eeea57bd7dbbe7757dd69fc73a (patch)
tree92e6fc45572614370bd232fe2f4004d912ac6fc8 /include
parent6b49eb2afc0f6e64ea4bd2e13bdb0fd8f929e11e (diff)
downloadmariadb-git-64943e08a1ab71eeea57bd7dbbe7757dd69fc73a.tar.gz
Fix for problem that GROUP BY and DISTINCT didn't work for UTF8
Diffstat (limited to 'include')
-rw-r--r--include/m_ctype.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/m_ctype.h b/include/m_ctype.h
index d52f86430d2..6e116b95428 100644
--- a/include/m_ctype.h
+++ b/include/m_ctype.h
@@ -94,6 +94,8 @@ typedef struct charset_info_st
/* Hash calculation */
uint (*hash_caseup)(struct charset_info_st *cs, const byte *key, uint len);
+ void (*hash_sort)(struct charset_info_st *cs, const uchar *key, uint len, ulong *nr1, ulong *nr2);
+
char max_sort_char; /* For LIKE otimization */
} CHARSET_INFO;
@@ -279,7 +281,8 @@ int my_utf8_uni (CHARSET_INFO *cs, my_wc_t *p, const uchar *s, const uchar *e);
int my_uni_utf8 (CHARSET_INFO *cs, my_wc_t wc, uchar *b, uchar *e);
uint my_hash_caseup_utf8(struct charset_info_st *cs, const byte *key, uint len);
-
+void my_hash_sort_utf8(struct charset_info_st *cs, const uchar *key, uint len, ulong *nr1, ulong *nr2);
+
#endif
#define _U 01 /* Upper case */