• Michael Widenius's avatar
    MDEV 22785 Crash with prepared statements and NEXTVAL() · b378ddb3
    Michael Widenius authored
    The problem was that a PREARE followed by a non prepared statement
    using DEFAULT NEXT_VALUE() could change table->next_local to point to
    a not persitent memory aria. The next EXECUTE would then try to use
    the wrong pointer, which could cause a crash.
    Fixed by reseting the pointer to it's old value when doing EXECUTE.
    b378ddb3
default.result 4.43 KB