• sunny's avatar
    branches/5.1: Fix Bug#38187 Error 153 when creating savepoints · 5c4c09a2
    sunny authored
    InnoDB previously treated savepoints as a stack e.g.,
      SAVEPOINT a;
      SAVEPOINT b;
      SAVEPOINT c;
      SAVEPOINT b; <- This would delete b and c.
    
    This fix changes the behavior to:
      SAVEPOINT a;
      SAVEPOINT b;
      SAVEPOINT c;
      SAVEPOINT b; <- Does not delete savepoint c
    5c4c09a2
trx0trx.c 48.7 KB