• unknown's avatar
    BUG#17201: Improve handling of views. · 45710b7f
    unknown authored
    
    client/mysqldump.c:
       Better view handling:
      
        Distinguish better between tables and views in the output.
        
        Add many comments about the distinctions between tables and views, and
        the tradeoffs that we make, notably that, since we don't maintain
        dependencies.
        
        get_table_structure: Clarify in the output that a view is first
        		       created as a workaround for the lack of
        		       dependencies.
        
        dump_table:  Return if we're trying to dump a view.
        
        dump_all_views_in_db: Don't call init_dumping.  It's already been done
                              in dump_all_tables_in_db.  This is the problem
                              reported in BUG#17201.
        
        Change the variable was_views to seen_views, and clarify the comment.
        The previous name was not overly "intuitive".
    mysql-test/r/mysqldump.result:
      We no longer have spurious text in the results.
      Add results for the final test (BUG#17201)
    mysql-test/t/mysqldump.test:
      Add a new test (BUG#17201)
    45710b7f
mysqldump.c 111 KB