mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
InnoDB: Remove ut_str_contains() and replace it with strchr()
innobase/dict/dict0dict.c: Replace ut_str_contains() with strchr() innobase/include/ut0mem.h: Remove ut_str_contains(), a reinvented strchr() innobase/row/row0mysql.c: Replace ut_str_contains() with strchr() innobase/ut/ut0mem.c: Remove ut_str_contains(), a reinvented strchr()
This commit is contained in:
@ -2362,7 +2362,7 @@ row_rename_table_for_mysql(
|
||||
db_name, constraints_to_drop[i],
|
||||
db_name, constraints_to_drop[i]);
|
||||
|
||||
if (!ut_str_contains(constraints_to_drop[i], '/')) {
|
||||
if (!strchr(constraints_to_drop[i], '/')) {
|
||||
/* If this happens to be an old format
|
||||
constraint, let us delete it. Since all new
|
||||
format constraints contain '/', it does no
|
||||
|
Reference in New Issue
Block a user