• Aleksey Midenkov's avatar
    MDEV-29841 More descriptive text for ER_PARTITION_WRONG_TYPE · 0e6f2757
    Aleksey Midenkov authored
    For commands
    
      (1) alter table t1 add partition (partition p2);
      (2) alter table t1 add partition (partition px history);
    
    It printed the same error message:
    
       Wrong partitioning type, expected type: `SYSTEM_TIME`
    
    For (1) it is not clear from the syntax that we are trying to add
    HASH partition. For (2) it is not clear that the table partitioning is
    different than SYSTEM_TIME. Now it prints what type we are trying to
    add to what type of partitioning.
    
    Fixed warning unused function rename_field_in_list() for compilation
    without partitioning.
    0e6f2757
sql_table.cc 405 KB