Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
e8a3a141
Commit
e8a3a141
authored
Dec 22, 2001
by
heikki@donna.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
data0type.ic, rem0cmp.c:
Allow foreign keys refer between fixed and var length strings
parent
0b393196
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
innobase/include/data0type.ic
innobase/include/data0type.ic
+7
-4
innobase/rem/rem0cmp.c
innobase/rem/rem0cmp.c
+9
-1
No files found.
innobase/include/data0type.ic
View file @
e8a3a141
...
...
@@ -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);
...
...
innobase/rem/rem0cmp.c
View file @
e8a3a141
...
...
@@ -100,6 +100,14 @@ cmp_types_are_equal(
dtype_t
*
type1
,
/* in: type 1 */
dtype_t
*
type2
)
/* in: type 2 */
{
if
((
type1
->
mtype
==
DATA_VARCHAR
&&
type2
->
mtype
==
DATA_CHAR
)
||
(
type1
->
mtype
==
DATA_CHAR
&&
type2
->
mtype
==
DATA_VARCHAR
)
||
(
type1
->
mtype
==
DATA_FIXBINARY
&&
type2
->
mtype
==
DATA_BINARY
)
||
(
type1
->
mtype
==
DATA_BINARY
&&
type2
->
mtype
==
DATA_FIXBINARY
))
{
return
(
TRUE
);
}
if
(
type1
->
mtype
!=
type2
->
mtype
)
{
return
(
FALSE
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment