From e541ab3b53717a8e73c48302a9083f9966e39b12 Mon Sep 17 00:00:00 2001 From: Mikael Ronstrom Date: Wed, 21 Oct 2009 17:28:10 +0200 Subject: [PATCH] Removed unnecessary call to fix_parser_data --- sql/partition_info.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sql/partition_info.cc b/sql/partition_info.cc index bdcac00dae9..dca026bd2d7 100644 --- a/sql/partition_info.cc +++ b/sql/partition_info.cc @@ -1047,7 +1047,8 @@ bool partition_info::check_partition_info(THD *thd, handlerton **eng_type, my_error(ER_PARTITION_FUNCTION_IS_NOT_ALLOWED, MYF(0)); goto end; } - if (fix_parser_data(thd)) + if (thd->lex->sql_command == SQLCOM_CREATE_TABLE && + fix_parser_data(thd)) goto end; } if (unlikely(!is_sub_partitioned() &&