summaryrefslogtreecommitdiff
path: root/sql/datadict.h
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2020-06-15 14:06:08 +0200
committerSergei Golubchik <serg@mariadb.org>2020-07-04 01:44:46 +0200
commit35f566db8d847c707d0ba7f3de239bfeee9ca845 (patch)
treeb3089bb0b9185ac60c00a3a2b1eb8ba2e02f3721 /sql/datadict.h
parent2bb5981c202f85c8399485d6a57a69d8c6f627af (diff)
downloadmariadb-git-35f566db8d847c707d0ba7f3de239bfeee9ca845.tar.gz
cleanup: make dd_frm_type to work as documented
remove redundant argument, return all possible enum values
Diffstat (limited to 'sql/datadict.h')
-rw-r--r--sql/datadict.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/sql/datadict.h b/sql/datadict.h
index cbdf788deb6..f4af592247a 100644
--- a/sql/datadict.h
+++ b/sql/datadict.h
@@ -38,13 +38,11 @@ enum Table_type
To check whether it's an frm of a view, use dd_frm_is_view().
*/
-enum Table_type dd_frm_type(THD *thd, char *path, LEX_CSTRING *engine_name,
- bool *is_sequence);
+enum Table_type dd_frm_type(THD *thd, char *path, LEX_CSTRING *engine_name);
static inline bool dd_frm_is_view(THD *thd, char *path)
{
- bool not_used2;
- return dd_frm_type(thd, path, NULL, &not_used2) == TABLE_TYPE_VIEW;
+ return dd_frm_type(thd, path, NULL) == TABLE_TYPE_VIEW;
}
bool dd_recreate_table(THD *thd, const char *db, const char *table_name);