MDEV-34392 Inplace algorithm violates the foreign key constraint
- Fixing the compilation issue for the compiler lesser than gcc-6 Reviewed-by : Marko Mäkelä <marko.makela@mariadb.com>
This commit is contained in:
parent
4281e0068b
commit
23820f1d79
@ -1925,12 +1925,12 @@ public:
|
||||
DBUG_ASSERT(fields_nullable);
|
||||
DBUG_ASSERT(field < n_fields);
|
||||
size_t bit= size_t{field} + referenced * n_fields;
|
||||
#if defined __GNUC__ && __GNUC__ == 5
|
||||
#if defined __GNUC__ && !defined __clang__ && __GNUC__ < 6
|
||||
# pragma GCC diagnostic push
|
||||
# pragma GCC diagnostic ignored "-Wconversion"
|
||||
#endif
|
||||
fields_nullable[bit / 8]|= static_cast<unsigned char>(1 << (bit % 8));
|
||||
#if defined __GNUC__ && __GNUC__ == 5
|
||||
#if defined __GNUC__ && !defined __clang__ && __GNUC__ < 6
|
||||
# pragma GCC diagnostic pop
|
||||
#endif
|
||||
}
|
||||
|
@ -12518,7 +12518,7 @@ create_table_info_t::create_foreign_keys()
|
||||
}
|
||||
}
|
||||
}
|
||||
#if defined __GNUC__ && __GNUC__ == 5
|
||||
#if defined __GNUC__ && !defined __clang__ && __GNUC__ < 6
|
||||
# pragma GCC diagnostic push
|
||||
# pragma GCC diagnostic ignored "-Wconversion"
|
||||
#endif
|
||||
@ -12563,7 +12563,7 @@ create_table_info_t::create_foreign_keys()
|
||||
ut_ad(0);
|
||||
break;
|
||||
}
|
||||
#if defined __GNUC__ && __GNUC__ == 5
|
||||
#if defined __GNUC__ && !defined __clang__ && __GNUC__ < 6
|
||||
# pragma GCC diagnostic pop
|
||||
#endif
|
||||
}
|
||||
|
@ -2807,7 +2807,7 @@ innobase_set_foreign_key_option(
|
||||
break;
|
||||
}
|
||||
|
||||
#if defined __GNUC__ && __GNUC__ == 5
|
||||
#if defined __GNUC__ && !defined __clang__ && __GNUC__ < 6
|
||||
# pragma GCC diagnostic push
|
||||
# pragma GCC diagnostic ignored "-Wconversion"
|
||||
#endif
|
||||
@ -2827,7 +2827,7 @@ innobase_set_foreign_key_option(
|
||||
break;
|
||||
}
|
||||
|
||||
#if defined __GNUC__ && __GNUC__ == 5
|
||||
#if defined __GNUC__ && !defined __clang__ && __GNUC__ < 6
|
||||
# pragma GCC diagnostic pop
|
||||
#endif
|
||||
return(innobase_check_fk_option(foreign));
|
||||
|
Loading…
x
Reference in New Issue
Block a user