• Mattias Jonsson's avatar
    Bug#47902: partition_recover_myisam fails with --ps-protocol · 38c5e2ca
    Mattias Jonsson authored
    The problem was that the warnings was never written out
    when running with --ps-protocol. This was because the
    warnings only appeared during the prepare phase, not
    the execute phase.
    
    Solved by not clearing the warnings from the prepare phase
    if there was no other warnings.
    
    If there are warnings from the execute phase, it is very
    likely to be the same as from the prepare phase. My tests
    show that if not clearing the warnings from the prepare
    phase when there are warnings from the execute phase, there
    will be duplicated warnings in the result.
    
    client/mysqltest.cc:
      Only reset the prepare warnings if there are warnings from
      the execute phase. Otherwise these warnings will never be
      returned.
    38c5e2ca
mysqltest.cc 258 KB