• Sergey Glukhov's avatar
    Bug#43385 Cannot ALTER DATABASE ... UPGRADE DATA DIRECTORY NAME when Views exist(addon) · 19854c6d
    Sergey Glukhov authored
    mysql_rename_view can not rename view if database is not the same.
    The fix is to add new argument 'new_db' to mysql_rename_view() and
    allow rename with different databases
    (only for ALTER DATABASE ... UPGRADE DATA DIRECTORY NAME).
    
    
    mysql-test/t/upgrade.test:
      test fix
    sql/parse_file.cc:
      mysql_rename_view can not rename view if database is not the same.
      The fix is to add new argument 'new_db' to mysql_rename_view() and
      allow rename with different databases
      (only for ALTER DATABASE ... UPGRADE DATA DIRECTORY NAME).
    sql/parse_file.h:
      mysql_rename_view can not rename view if database is not the same.
      The fix is to add new argument 'new_db' to mysql_rename_view() and
      allow rename with different databases
      (only for ALTER DATABASE ... UPGRADE DATA DIRECTORY NAME).
    sql/sql_rename.cc:
      mysql_rename_view can not rename view if database is not the same.
      The fix is to add new argument 'new_db' to mysql_rename_view() and
      allow rename with different databases
      (only for ALTER DATABASE ... UPGRADE DATA DIRECTORY NAME).
    sql/sql_view.cc:
      mysql_rename_view can not rename view if database is not the same.
      The fix is to add new argument 'new_db' to mysql_rename_view() and
      allow rename with different databases
      (only for ALTER DATABASE ... UPGRADE DATA DIRECTORY NAME).
    sql/sql_view.h:
      mysql_rename_view can not rename view if database is not the same.
      The fix is to add new argument 'new_db' to mysql_rename_view() and
      allow rename with different databases
      (only for ALTER DATABASE ... UPGRADE DATA DIRECTORY NAME).
    19854c6d
parse_file.h 3.63 KB