summaryrefslogtreecommitdiff
path: root/sql/sql_alter.h
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2021-11-09 09:11:50 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2021-11-09 09:11:50 +0200
commit25ac047bafefa582ff082d1ad1783e5ff3865c20 (patch)
tree7ce818faf8d0cf7b9c84602626ed6b10ef84c314 /sql/sql_alter.h
parent96f853260669bb67ab7a336e67d29f7221377cd3 (diff)
parent9c18b9660302a76a6ff9bd505888048a13586a4c (diff)
downloadmariadb-git-25ac047bafefa582ff082d1ad1783e5ff3865c20.tar.gz
Merge 10.5 into 10.6
Diffstat (limited to 'sql/sql_alter.h')
-rw-r--r--sql/sql_alter.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/sql/sql_alter.h b/sql/sql_alter.h
index a0f89c28d2a..d91984d4b26 100644
--- a/sql/sql_alter.h
+++ b/sql/sql_alter.h
@@ -1,5 +1,5 @@
/* Copyright (c) 2010, 2014, Oracle and/or its affiliates.
- Copyright (c) 2013, 2020, MariaDB Corporation.
+ Copyright (c) 2013, 2021, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -313,9 +313,9 @@ public:
void report_implicit_default_value_error(THD *thd, const TABLE_SHARE *) const;
public:
- Create_field *implicit_default_value_error_field;
- bool error_if_not_empty;
- uint tables_opened;
+ Create_field *implicit_default_value_error_field= nullptr;
+ bool error_if_not_empty= false;
+ uint tables_opened= 0;
LEX_CSTRING db;
LEX_CSTRING table_name;
LEX_CSTRING storage_engine_name;
@@ -337,13 +337,14 @@ public:
of table to the new version ER_FK_CANNOT_DELETE_PARENT error should be
emitted.
*/
- bool fk_error_if_delete_row;
+ bool fk_error_if_delete_row= false;
/** Name of foreign key for the above error. */
- const char *fk_error_id;
+ const char *fk_error_id= nullptr;
/** Name of table for the above error. */
- const char *fk_error_table;
+ const char *fk_error_table= nullptr;
+ bool modified_primary_key= false;
/** Indicates that we are altering temporary table */
- bool tmp_table;
+ bool tmp_table= false;
private:
char new_filename[FN_REFLEN + 1];