mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 18:41:56 +01:00
MDEV-26439 Typo in Foreign Key error message
foreign_push_index_error(): Fix a typo of 'match' that was introduced
in commit 5130f5206c
(MDEV-20480).
Thanks to Oli Sennhauser for reporting this.
This commit is contained in:
parent
06079a4c2c
commit
17980e35fa
2 changed files with 2 additions and 2 deletions
|
@ -129,7 +129,7 @@ create table t2(a char(20), key(a), foreign key(a) references t1(f1)) engine=inn
|
||||||
ERROR HY000: Can't create table `test`.`t2` (errno: 150 "Foreign key constraint is incorrectly formed")
|
ERROR HY000: Can't create table `test`.`t2` (errno: 150 "Foreign key constraint is incorrectly formed")
|
||||||
show warnings;
|
show warnings;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Warning 150 Create table `test`.`t2` with foreign key (a) constraint failed. Field type or character set for column 'a' does not mach referenced column 'f1'.
|
Warning 150 Create table `test`.`t2` with foreign key (a) constraint failed. Field type or character set for column 'a' does not match referenced column 'f1'.
|
||||||
Error 1005 Can't create table `test`.`t2` (errno: 150 "Foreign key constraint is incorrectly formed")
|
Error 1005 Can't create table `test`.`t2` (errno: 150 "Foreign key constraint is incorrectly formed")
|
||||||
Warning 1215 Cannot add foreign key constraint for `t2`
|
Warning 1215 Cannot add foreign key constraint for `t2`
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
|
|
@ -11939,7 +11939,7 @@ foreign_push_index_error(trx_t* trx, const char* operation,
|
||||||
trx, DB_CANNOT_ADD_CONSTRAINT, create_name,
|
trx, DB_CANNOT_ADD_CONSTRAINT, create_name,
|
||||||
"%s table %s with foreign key %s constraint"
|
"%s table %s with foreign key %s constraint"
|
||||||
" failed. Field type or character set for column '%s' "
|
" failed. Field type or character set for column '%s' "
|
||||||
"does not mach referenced column '%s'.",
|
"does not match referenced column '%s'.",
|
||||||
operation, create_name, fk_text, columns[err_col],
|
operation, create_name, fk_text, columns[err_col],
|
||||||
col_name);
|
col_name);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue