• Davi Arnaut's avatar
    Bug#41348: INSERT INTO tbl SELECT * FROM temp_tbl overwrites · dc5a0f44
    Davi Arnaut authored
               locking type of temp table
    
    The problem is that INSERT INTO .. SELECT FROM .. and CREATE
    TABLE .. SELECT FROM a temporary table could inadvertently
    overwrite the locking type of the temporary table. The lock
    type of temporary tables should be a write lock by default.
    
    The solution is to reset the lock type of temporary tables
    back to its default value after they are used in a statement.
    dc5a0f44
sql_base.cc 288 KB