summaryrefslogtreecommitdiff
path: root/sql/partition_info.cc
diff options
context:
space:
mode:
authorMikael Ronstrom <mikael@mysql.com>2009-10-21 17:28:10 +0200
committerMikael Ronstrom <mikael@mysql.com>2009-10-21 17:28:10 +0200
commit93fca66f85475508b82ff86614c3262d74baae8b (patch)
tree09922a60d9758307ca172455353a859845cb7caf /sql/partition_info.cc
parent10210bfef2e16f9a2033bf6444bb18a121f989a1 (diff)
downloadmariadb-git-93fca66f85475508b82ff86614c3262d74baae8b.tar.gz
Removed unnecessary call to fix_parser_data
Diffstat (limited to 'sql/partition_info.cc')
-rw-r--r--sql/partition_info.cc3
1 files changed, 2 insertions, 1 deletions
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() &&