Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
b3f988d2
Commit
b3f988d2
authored
May 28, 2023
by
Nikita Malyavin
Committed by
Sergei Golubchik
Aug 15, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add const to get_foreign_key_list/get_parent_foreign_key_list
parent
500787c7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
19 deletions
+19
-19
sql/handler.h
sql/handler.h
+2
-2
storage/innobase/handler/ha_innodb.cc
storage/innobase/handler/ha_innodb.cc
+3
-3
storage/innobase/handler/ha_innodb.h
storage/innobase/handler/ha_innodb.h
+2
-2
storage/mroonga/ha_mroonga.cpp
storage/mroonga/ha_mroonga.cpp
+6
-6
storage/mroonga/ha_mroonga.hpp
storage/mroonga/ha_mroonga.hpp
+6
-6
No files found.
sql/handler.h
View file @
b3f988d2
...
...
@@ -4431,7 +4431,7 @@ class handler :public Sql_alloc
@return The handler error code or zero for success.
*/
virtual
int
get_foreign_key_list
(
THD
*
thd
,
List
<
FOREIGN_KEY_INFO
>
*
f_key_list
)
get_foreign_key_list
(
const
THD
*
thd
,
List
<
FOREIGN_KEY_INFO
>
*
f_key_list
)
{
return
0
;
}
/**
Get the list of foreign keys referencing this table.
...
...
@@ -4445,7 +4445,7 @@ class handler :public Sql_alloc
@return The handler error code or zero for success.
*/
virtual
int
get_parent_foreign_key_list
(
THD
*
thd
,
List
<
FOREIGN_KEY_INFO
>
*
f_key_list
)
get_parent_foreign_key_list
(
const
THD
*
thd
,
List
<
FOREIGN_KEY_INFO
>
*
f_key_list
)
{
return
0
;
}
virtual
uint
referenced_by_foreign_key
()
{
return
0
;}
virtual
void
init_table_handle_for_HANDLER
()
...
...
storage/innobase/handler/ha_innodb.cc
View file @
b3f988d2
...
...
@@ -15365,7 +15365,7 @@ static
FOREIGN_KEY_INFO
*
get_foreign_key_info
(
/*=================*/
THD
*
thd
,
/*!< in: user thread handle */
const
THD
*
thd
,
/*!< in: user thread handle */
dict_foreign_t
*
foreign
)
/*!< in: foreign key constraint */
{
FOREIGN_KEY_INFO
f_key_info
;
...
...
@@ -15501,7 +15501,7 @@ Gets the list of foreign keys in this table.
int
ha_innobase
::
get_foreign_key_list
(
/*==============================*/
THD
*
thd
,
/*!< in: user thread handle */
const
THD
*
thd
,
/*!< in: user thread handle */
List
<
FOREIGN_KEY_INFO
>*
f_key_list
)
/*!< out: foreign key list */
{
update_thd
(
ha_thd
());
...
...
@@ -15539,7 +15539,7 @@ Gets the set of foreign keys where this table is the referenced table.
int
ha_innobase
::
get_parent_foreign_key_list
(
/*=====================================*/
THD
*
thd
,
/*!< in: user thread handle */
const
THD
*
thd
,
/*!< in: user thread handle */
List
<
FOREIGN_KEY_INFO
>*
f_key_list
)
/*!< out: foreign key list */
{
update_thd
(
ha_thd
());
...
...
storage/innobase/handler/ha_innodb.h
View file @
b3f988d2
...
...
@@ -213,11 +213,11 @@ class ha_innobase final : public handler
char
*
get_foreign_key_create_info
()
override
;
int
get_foreign_key_list
(
THD
*
thd
,
int
get_foreign_key_list
(
const
THD
*
thd
,
List
<
FOREIGN_KEY_INFO
>
*
f_key_list
)
override
;
int
get_parent_foreign_key_list
(
THD
*
thd
,
const
THD
*
thd
,
List
<
FOREIGN_KEY_INFO
>*
f_key_list
)
override
;
bool
can_switch_engines
()
override
;
...
...
storage/mroonga/ha_mroonga.cpp
View file @
b3f988d2
...
...
@@ -16676,7 +16676,7 @@ bool ha_mroonga::can_switch_engines()
DBUG_RETURN
(
res
);
}
int
ha_mroonga
::
wrapper_get_foreign_key_list
(
THD
*
thd
,
int
ha_mroonga
::
wrapper_get_foreign_key_list
(
const
THD
*
thd
,
List
<
FOREIGN_KEY_INFO
>
*
f_key_list
)
{
MRN_DBUG_ENTER_METHOD
();
...
...
@@ -16690,7 +16690,7 @@ int ha_mroonga::wrapper_get_foreign_key_list(THD *thd,
}
#ifdef MRN_SUPPORT_FOREIGN_KEYS
int
ha_mroonga
::
storage_get_foreign_key_list
(
THD
*
thd
,
int
ha_mroonga
::
storage_get_foreign_key_list
(
const
THD
*
thd
,
List
<
FOREIGN_KEY_INFO
>
*
f_key_list
)
{
int
error
;
...
...
@@ -16800,7 +16800,7 @@ int ha_mroonga::storage_get_foreign_key_list(THD *thd,
}
#endif
int
ha_mroonga
::
get_foreign_key_list
(
THD
*
thd
,
int
ha_mroonga
::
get_foreign_key_list
(
const
THD
*
thd
,
List
<
FOREIGN_KEY_INFO
>
*
f_key_list
)
{
MRN_DBUG_ENTER_METHOD
();
...
...
@@ -16814,7 +16814,7 @@ int ha_mroonga::get_foreign_key_list(THD *thd,
DBUG_RETURN
(
res
);
}
int
ha_mroonga
::
wrapper_get_parent_foreign_key_list
(
THD
*
thd
,
int
ha_mroonga
::
wrapper_get_parent_foreign_key_list
(
const
THD
*
thd
,
List
<
FOREIGN_KEY_INFO
>
*
f_key_list
)
{
MRN_DBUG_ENTER_METHOD
();
...
...
@@ -16827,7 +16827,7 @@ int ha_mroonga::wrapper_get_parent_foreign_key_list(THD *thd,
DBUG_RETURN
(
res
);
}
int
ha_mroonga
::
storage_get_parent_foreign_key_list
(
THD
*
thd
,
int
ha_mroonga
::
storage_get_parent_foreign_key_list
(
const
THD
*
thd
,
List
<
FOREIGN_KEY_INFO
>
*
f_key_list
)
{
MRN_DBUG_ENTER_METHOD
();
...
...
@@ -16835,7 +16835,7 @@ int ha_mroonga::storage_get_parent_foreign_key_list(THD *thd,
DBUG_RETURN
(
res
);
}
int
ha_mroonga
::
get_parent_foreign_key_list
(
THD
*
thd
,
int
ha_mroonga
::
get_parent_foreign_key_list
(
const
THD
*
thd
,
List
<
FOREIGN_KEY_INFO
>
*
f_key_list
)
{
MRN_DBUG_ENTER_METHOD
();
...
...
storage/mroonga/ha_mroonga.hpp
View file @
b3f988d2
...
...
@@ -621,8 +621,8 @@ protected:
char
*
get_tablespace_name
(
THD
*
thd
,
char
*
name
,
uint
name_len
);
#endif
bool
can_switch_engines
()
mrn_override
;
int
get_foreign_key_list
(
THD
*
thd
,
List
<
FOREIGN_KEY_INFO
>
*
f_key_list
)
mrn_override
;
int
get_parent_foreign_key_list
(
THD
*
thd
,
List
<
FOREIGN_KEY_INFO
>
*
f_key_list
)
mrn_override
;
int
get_foreign_key_list
(
const
THD
*
thd
,
List
<
FOREIGN_KEY_INFO
>
*
f_key_list
)
mrn_override
;
int
get_parent_foreign_key_list
(
const
THD
*
thd
,
List
<
FOREIGN_KEY_INFO
>
*
f_key_list
)
mrn_override
;
uint
referenced_by_foreign_key
()
mrn_override
;
void
init_table_handle_for_HANDLER
()
mrn_override
;
void
free_foreign_key_create_info
(
char
*
str
)
mrn_override
;
...
...
@@ -1273,10 +1273,10 @@ private:
#endif
bool
wrapper_can_switch_engines
();
bool
storage_can_switch_engines
();
int
wrapper_get_foreign_key_list
(
THD
*
thd
,
List
<
FOREIGN_KEY_INFO
>
*
f_key_list
);
int
storage_get_foreign_key_list
(
THD
*
thd
,
List
<
FOREIGN_KEY_INFO
>
*
f_key_list
);
int
wrapper_get_parent_foreign_key_list
(
THD
*
thd
,
List
<
FOREIGN_KEY_INFO
>
*
f_key_list
);
int
storage_get_parent_foreign_key_list
(
THD
*
thd
,
List
<
FOREIGN_KEY_INFO
>
*
f_key_list
);
int
wrapper_get_foreign_key_list
(
const
THD
*
thd
,
List
<
FOREIGN_KEY_INFO
>
*
f_key_list
);
int
storage_get_foreign_key_list
(
const
THD
*
thd
,
List
<
FOREIGN_KEY_INFO
>
*
f_key_list
);
int
wrapper_get_parent_foreign_key_list
(
const
THD
*
thd
,
List
<
FOREIGN_KEY_INFO
>
*
f_key_list
);
int
storage_get_parent_foreign_key_list
(
const
THD
*
thd
,
List
<
FOREIGN_KEY_INFO
>
*
f_key_list
);
uint
wrapper_referenced_by_foreign_key
();
uint
storage_referenced_by_foreign_key
();
void
wrapper_init_table_handle_for_HANDLER
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment