• Nirbhay Choubey's avatar
    MDEV-5535: Cannot reopen temporary table · e2087c6e
    Nirbhay Choubey authored
    Temporary table being created by outer statement
    should not be visible to inner statement. And if
    inner statement creates a table with same name.
    The whole statement should fail with
    ER_TABLE_EXISTS_ERROR.
    
    Implemented by temporarily de-linking the TABLE_SHARE
    being created by outer statement so that it remains
    hidden to the inner statement.
    e2087c6e
reopen_temp_table.test 2.85 KB