• Sergei Golubchik's avatar
    revert · 87a9d60e
    Sergei Golubchik authored
    "
      revision-id: sanja@askmonty.org-20110511110948-4kdevwzomvk56y1w
      committer: sanja@askmonty.org
      branch nick: work-maria-5.1-CREATE-merge
      timestamp: Wed 2011-05-11 14:09:48 +0300
        Bugfix: New table creation/renaming block added if old encoded table present
    "
    the old behavior was less inconsistent than the new one.
    In the new one the error message was sometimes different (under LOCK TABLES e.g.),
    and there were race conditions (if this CREATE happened when a concurrent ALTER
    has renamed the old table away but haven't put the new table in place)
    
    The old one was like "(when using old table names) for DML #mysql50# prefix
    is optional, for DDL it's required".
    87a9d60e
sql_rename.cc 11 KB