• Mattias Jonsson's avatar
    Backport of bug#38719 from 6.0 to 5.1 · 571c66e3
    Mattias Jonsson authored
    handler::get_dup_key used the called handler for the
    info call, but used table->file handler for errkey.
    Fixed by using table->file->info instead.
    
    mysql-test/r/partition_error.result:
      Bug#38719: Partitioning returns a different error code for
      a duplicate key error
      
      Added test for verification
    mysql-test/t/partition_error.test:
      Bug#38719: Partitioning returns a different error code for
      a duplicate key error
      
      Added test for verification
    571c66e3
partition_error.result 19.6 KB