diff options
| author | Alexander Barkov <bar@mariadb.com> | 2022-05-17 12:52:23 +0400 |
|---|---|---|
| committer | Alexander Barkov <bar@mariadb.com> | 2022-05-24 09:36:15 +0400 |
| commit | 208addf48444c0a36a2cc16cd2558ae694e905d5 (patch) | |
| tree | c2aebdda04bcae22ff6924187fcecf7c5d653336 /sql/sql_db.cc | |
| parent | 89adedcb9f0a45483b9917e93310241a4976d4c2 (diff) | |
| download | mariadb-git-208addf48444c0a36a2cc16cd2558ae694e905d5.tar.gz | |
Main patch MDEV-27896 Wrong result upon `COLLATE latin1_bin CHARACTER SET latin1` on the table or the database level
Also fixes
MDEV-27782 Wrong columns when using table level `CHARACTER SET utf8mb4 COLLATE DEFAULT`
MDEV-28644 Unexpected error on ALTER TABLE t1 CONVERT TO CHARACTER SET utf8mb3, DEFAULT CHARACTER SET utf8mb4
Diffstat (limited to 'sql/sql_db.cc')
| -rw-r--r-- | sql/sql_db.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_db.cc b/sql/sql_db.cc index c5defc1959c..9da1ac5ca77 100644 --- a/sql/sql_db.cc +++ b/sql/sql_db.cc @@ -943,6 +943,7 @@ exit: int mysql_create_db(THD *thd, const LEX_CSTRING *db, DDL_options_st options, const Schema_specification_st *create_info) { + DBUG_ASSERT(create_info->default_table_charset); /* As mysql_create_db_internal() may modify Db_create_info structure passed to it, we need to use a copy to make execution prepared statement- safe. @@ -958,6 +959,7 @@ int mysql_create_db(THD *thd, const LEX_CSTRING *db, DDL_options_st options, bool mysql_alter_db(THD *thd, const LEX_CSTRING *db, const Schema_specification_st *create_info) { + DBUG_ASSERT(create_info->default_table_charset); /* As mysql_alter_db_internal() may modify Db_create_info structure passed to it, we need to use a copy to make execution prepared statement- safe. |
