• Dmitry Lenev's avatar
    Patch that addresses bug #53976 "ALTER TABLE RENAME · 1fbdf160
    Dmitry Lenev authored
    is allowed on views (not documented, broken)".
    
    Remove support of ALTER TABLE RENAME for views as:
    a) this feature was not documented,
    c) does not add any compatibility with other databases,
    b) its implementation doesn't follow metadata locking
       protocol by accessing .FRM without holding any
       metadata lock,
    c) its implementation complicates ALTER TABLE's code
       by introducing  yet another separate branch to it.
    
    After this patch one can rename a view by using the
    documented way - RENAME TABLE statement.
    1fbdf160
view.result 119 KB