summaryrefslogtreecommitdiff
path: root/sql/sql_lex.cc
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2018-02-19 11:23:20 +0200
committerMonty <monty@mariadb.org>2018-02-19 11:23:20 +0200
commit2ba0785ae6b692feefe97c81aa06427724ce197b (patch)
treec2d3203c38442f167831b5d326ea09bcc9269089 /sql/sql_lex.cc
parent778f76a2c6898a45a6c89799ddaad6650ffd0a47 (diff)
downloadmariadb-git-10.3-alter.tar.gz
Move alter partition flags to alter_info->partition_flags10.3-alter
This is done to get more free flag bits for alter_info->flags Renamed all ALTER PARTITION defines to start with ALTER_PARTITION_ Renamed ALTER_PARTITION to ALTER_PARTITION_INFO Renamed ALTER_TABLE_REORG to ALTER_PARTITION_TABLE_REORG Other things: - Shifted some ALTER_xxx defines to get empty bits at end
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r--sql/sql_lex.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc
index f3368b6698a..8cecab91ae9 100644
--- a/sql/sql_lex.cc
+++ b/sql/sql_lex.cc
@@ -5037,8 +5037,8 @@ int st_select_lex_unit::save_union_explain_part2(Explain_query *output)
bool LEX::is_partition_management() const
{
return (sql_command == SQLCOM_ALTER_TABLE &&
- (alter_info.flags == ALTER_ADD_PARTITION ||
- alter_info.flags == ALTER_REORGANIZE_PARTITION));
+ (alter_info.partition_flags == ALTER_PARTITION_ADD ||
+ alter_info.partition_flags == ALTER_PARTITION_REORGANIZE));
}