mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge commit 'bc902a2bfc46add0708896c07621e3707f66d95f' into 10.1
This commit is contained in:
@ -6274,3 +6274,22 @@ fl_create_iterator(enum handler_iterator_type type,
|
||||
}
|
||||
}
|
||||
#endif /*TRANS_LOG_MGM_EXAMPLE_CODE*/
|
||||
|
||||
|
||||
bool HA_CREATE_INFO::check_conflicting_charset_declarations(CHARSET_INFO *cs)
|
||||
{
|
||||
if ((used_fields & HA_CREATE_USED_DEFAULT_CHARSET) &&
|
||||
/* DEFAULT vs explicit, or explicit vs DEFAULT */
|
||||
(((default_table_charset == NULL) != (cs == NULL)) ||
|
||||
/* Two different explicit character sets */
|
||||
(default_table_charset && cs &&
|
||||
!my_charset_same(default_table_charset, cs))))
|
||||
{
|
||||
my_error(ER_CONFLICTING_DECLARATIONS, MYF(0),
|
||||
"CHARACTER SET ", default_table_charset ?
|
||||
default_table_charset->csname : "DEFAULT",
|
||||
"CHARACTER SET ", cs ? cs->csname : "DEFAULT");
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user