• Kristofer Pettersson's avatar
    Bug#29507 TRUNCATE shows to many rows effected · 435b96ef
    Kristofer Pettersson authored
    TRUNCATE TABLE for InnoDB tables returned a count showing an approximation
    of the number of rows affected to gain efficiency.
    Now the statement always returns 0 rows affected for clarity.
    
    sql/sql_delete.cc:
      * Set row count to 0 if auto increment was reset which can happen
      if TRUNCATE TABLE was issued.
    435b96ef
sql_delete.cc 31.9 KB