• unknown's avatar
    Fix bug#13535 Incorrect result from SELECT statement after SHOW TABLE STATUS · 26e376be
    unknown authored
    After SHOW TABLE STATUS last_insert_id wasn't cleaned, and next select
    erroneously rewrites WHERE condition and returs a row;
    5.0 isn't affected because of different SHOW TABLE STATUS handling.
    
    last_insert_id cleanup added to mysqld_extend_show_tables().
    
    
    sql/sql_show.cc:
      Fix bug #13535 Incorrect result from SELECT statement after SHOW TABLE STATUS
      Added last_insert_id cleanup after SHOW TABLE STATUS command.
    mysql-test/t/select.test:
      Test case for bug #13535 Incorrect result from SELECT statement after SHOW TABLE STATUS
    mysql-test/r/select.result:
      Test case for bug #13535 Incorrect result from SELECT statement after SHOW TABLE STATUS
    26e376be
sql_show.cc 66.7 KB