![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
# This is a BitKeeper generated diff -Nru style patch. # # ChangeSet # 2006/05/04 13:18:55-04:00 mikael (AT) c-870ae253 (DOT) 1238-1-...andsbolaget.se # BUG 19062: CREATE TABLE ... PARTITION BY ... AS SELECT don't create partitioned table # # sql/sql_parse.cc # 2006/05/04 13:18:50-04:00 mikael (AT) c-870ae253 (DOT) 1238-1-...andsbolaget.se +11 -9 # Moved code to clone the partition info object such that also # CREATE TABLE ... AS SELECT benefits from it # diff -Nru a/sql/sql_parse.cc b/sql/sql_parse.cc --- a/sql/sql_parse.cc 2006-05-04 13:23:56 -04:00 +++ b/sql/sql_parse.cc 2006-05-04 13:23:56 -04:00 @@ -2855,6 +2855,17 @@ res= 1; goto end_with_restore_list; } +#ifdef WITH_PARTITION_STORAGE_ENGINE + { + partition_info *part_info= thd->lex->part_info; + if (part_info && !(part_info= thd->lex->part_info->get_clone())) + { + res= -1; + goto end_with_restore_list; + } + thd->work_part_info= part_info; + } +#endif if (select_lex->item_list.elements) // With select { select_result *result; @@ -2924,15 +2935,6 @@ lex->like_name); else { -#ifdef WITH_PARTITION_STORAGE_ENGINE - partition_info *part_info= thd->lex->part_info; - if (part_info && !(part_info= thd->lex->part_info->get_clone())) - { - res= -1; - goto end_with_restore_list; - } - thd->work_part_info= part_info; -#endif res= mysql_create_table(thd, create_table->db, create_table->table_name, &lex->create_info, lex->create_list, This change "feels" ok but it would really help me if I had more to read |
![]() |
| Thread Tools | |
| Display Modes | |
| |