• unknown's avatar
    Bug#23491 MySQLDump prefix function call in a view by database name · 609277f9
    unknown authored
    - mysqldump executes a SHOW CREATE VIEW statement to generate the text
    that it outputs.  When the function name is retrieved it's database 
    name is unconditionally prepended.  This change causes the function's 
    database name to be prepended only when it was used to define the 
    function.
    
    
    mysql-test/r/information_schema.result:
      Bug#23491 MySQLDump prefix function call in a view by database name
      - Updated Results.
    mysql-test/r/mysqldump.result:
      Bug#23491 MySQLDump prefix function call in a view by database name
      - Added new results.
    mysql-test/r/sp-code.result:
      Bug#23491 MySQLDump prefix function call in a view by database name
      - Updated Results.
    mysql-test/r/udf.result:
      Bug#23491 MySQLDump prefix function call in a view by database name
      - Updated Results.
    mysql-test/t/mysqldump.test:
      Bug#23491 MySQLDump prefix function call in a view by database name
      - Added new testcase.
    sql/item_func.cc:
      Bug#23491 MySQLDump prefix function call in a view by database name
      - Use new m_explicit_name member when deciding whether or not to prepend
      the db name while building the function name.
    sql/sp.cc:
      Bug#23491 MySQLDump prefix function call in a view by database name
      - Use new sp_name constructor.
    sql/sp_head.h:
      Bug#23491 MySQLDump prefix function call in a view by database name
      - Add m_explicit_name member to sp_name object.
      - Redefined sp_name constructor to include new member.
    sql/sql_yacc.yy:
      Bug#23491 MySQLDump prefix function call in a view by database name
      - Use new sp_name constructors.
    609277f9
item_func.cc 130 KB