• Alexey Botchkov's avatar
    MDEV-5138 Numerous test failures in "mtr --ps --embedded". · 708ba733
    Alexey Botchkov authored
         If a prepared statement calls an stored procedure,
         the thd->server_status out of the SP goes up
         to the PS and then to the client. So that the
         client gets the SERVER_STATUS_CURSOR_EXISTS status
         if the SP uses a cursor. Which makes the embedded
         server fail.
         Fixed by saving/restoring the upper-level server_status
         in sp_head::execute().
    708ba733
sp_head.cc 116 KB