summaryrefslogtreecommitdiff
path: root/sql/sql_partition.cc
diff options
context:
space:
mode:
authorunknown <mikael@c-870ae253.1238-1-64736c10.cust.bredbandsbolaget.se>2006-05-08 21:41:10 -0400
committerunknown <mikael@c-870ae253.1238-1-64736c10.cust.bredbandsbolaget.se>2006-05-08 21:41:10 -0400
commit0edd2ec4a74f9df87e972e8d85095394966f05c4 (patch)
tree16363b4743693a800f6e7d3512f0c8ff915164e3 /sql/sql_partition.cc
parent3065eeb3f8cff732e1a462b58996105881c7ca88 (diff)
downloadmariadb-git-0edd2ec4a74f9df87e972e8d85095394966f05c4.tar.gz
BUG#19140: Create index caused crash
mysql-test/r/ndb_partition_key.result: New test case to ensure path in code is tested mysql-test/r/partition.result: New test case for bug mysql-test/t/ndb_partition_key.test: New test case to ensure path in code is tested mysql-test/t/partition.test: New test case for bug sql/sql_partition.cc: Use stack variable, not variable on lex object, caused havoc when doing a create index. sql/sql_table.cc: Editorial changes + added a comment to a path in code I didn't remember myself what it was good for.
Diffstat (limited to 'sql/sql_partition.cc')
-rw-r--r--sql/sql_partition.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_partition.cc b/sql/sql_partition.cc
index 0442ad724d2..a327d49c641 100644
--- a/sql/sql_partition.cc
+++ b/sql/sql_partition.cc
@@ -4509,7 +4509,7 @@ the generated partition syntax in a correct manner.
if (alter_info->flags & ALTER_REMOVE_PARTITIONING)
{
DBUG_PRINT("info", ("Remove partitioning"));
- if (!(thd->lex->create_info.used_fields & HA_CREATE_USED_ENGINE))
+ if (!(create_info->used_fields & HA_CREATE_USED_ENGINE))
{
DBUG_PRINT("info", ("No explicit engine used"));
create_info->db_type= table->part_info->default_engine_type;
@@ -4526,7 +4526,7 @@ the generated partition syntax in a correct manner.
beneath.
*/
thd->work_part_info= table->part_info;
- if (thd->lex->create_info.used_fields & HA_CREATE_USED_ENGINE &&
+ if (create_info->used_fields & HA_CREATE_USED_ENGINE &&
create_info->db_type != table->part_info->default_engine_type)
{
/*