mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
data0type.ic, rem0cmp.c:
Allow foreign keys refer between fixed and var length strings innobase/rem/rem0cmp.c: Allow foreign keys refer between fixed and var length strings innobase/include/data0type.ic: Allow foreign keys refer between fixed and var length strings
This commit is contained in:
@ -107,14 +107,17 @@ dtype_get_pad_char(
|
||||
ULINT_UNDEFINED if no padding specified */
|
||||
dtype_t* type) /* in: type */
|
||||
{
|
||||
if (type->mtype == DATA_CHAR) {
|
||||
/* space is the padding character for all char strings */
|
||||
if (type->mtype == DATA_CHAR
|
||||
|| type->mtype == DATA_VARCHAR
|
||||
|| type->mtype == DATA_BINARY
|
||||
|| type->mtype == DATA_FIXBINARY) {
|
||||
|
||||
/* Space is the padding character for all char and binary
|
||||
strings */
|
||||
|
||||
return((ulint)' ');
|
||||
}
|
||||
|
||||
ut_ad((type->mtype == DATA_BINARY) || (type->mtype == DATA_VARCHAR));
|
||||
|
||||
/* No padding specified */
|
||||
|
||||
return(ULINT_UNDEFINED);
|
||||
|
Reference in New Issue
Block a user