• svoj@april.(none)'s avatar
    Fix for bug#14945 "Truncate table doesn't reset the auto_increment · 209682e0
    svoj@april.(none) authored
    counter".
    
    When TRUNCATE TABLE was called within an stored procedure the
    auto_increment counter was not reset to 0 even if straight
    TRUNCATE for this table did this.
    
    This fix makes TRUNCATE in stored procedures to be handled exactly
    in the same way as straight TRUNCATE. We achieve this by rolling
    back the fix for bug 8850, which is no longer needed since stored
    procedures don't require prelocked mode anymore (and TRUNCATE is
    not allowed in stored functions or triggers).
    209682e0
sp.test 119 KB