diff options
author | unknown <heikki@donna.mysql.fi> | 2001-12-11 22:45:32 +0200 |
---|---|---|
committer | unknown <heikki@donna.mysql.fi> | 2001-12-11 22:45:32 +0200 |
commit | a2675d291612f64f47bbccd72f8366065def2c00 (patch) | |
tree | 225aadb08bc235e5b4b323c3a87f1157fa5a09e0 /innobase/include | |
parent | 2d1e16eb04a3e78830447400a55f7cd2291e566c (diff) | |
download | mariadb-git-a2675d291612f64f47bbccd72f8366065def2c00.tar.gz |
ut0byte.h, ut0byte.c, dict0dict.c:
Make column names non-case-sensitive in referential constraints and put table and database names there in lower case in Windows
innobase/dict/dict0dict.c:
Make column names non-case-sensitive in referential constraints and put table and database names there in lower case in Windows
innobase/ut/ut0byte.c:
Make column names non-case-sensitive in referential constraints and put table and database names there in lower case in Windows
innobase/include/ut0byte.h:
Make column names non-case-sensitive in referential constraints and put table and database names there in lower case in Windows
Diffstat (limited to 'innobase/include')
-rw-r--r-- | innobase/include/ut0byte.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/innobase/include/ut0byte.h b/innobase/include/ut0byte.h index 77795ee0708..b45f2160392 100644 --- a/innobase/include/ut0byte.h +++ b/innobase/include/ut0byte.h @@ -220,6 +220,26 @@ ut_bit_set_nth( ulint a, /* in: ulint */ ulint n, /* in: nth bit requested */ ibool val); /* in: value for the bit to set */ +/**************************************************************** +Copies a string to a memory location, setting characters to lower case. */ + +void +ut_cpy_in_lower_case( +/*=================*/ + char* dest, /* in: destination */ + char* source, /* in: source */ + ulint len); /* in: string length */ +/**************************************************************** +Compares two strings when converted to lower case. */ + +int +ut_cmp_in_lower_case( +/*=================*/ + /* out: -1, 0, 1 if str1 < str2, str1 == str2, + str1 > str2, respectively */ + char* str1, /* in: string1 */ + char* str2, /* in: string2 */ + ulint len); /* in: length of both strings */ #ifndef UNIV_NONINL |