• unknown's avatar
    BUG#19188: incorrect temporary table name of DROP query in replication · c212cb25
    unknown authored
      A pattern to generate binlog for DROPped temp table in close_temporary_tables
      was buggy: could not deal with a grave-accent-in-name table.
    
      The fix exploits `append_identifier()' for quoting and duplicating accents.
    
    
    mysql-test/r/rpl_temporary.result:
      results changed
    mysql-test/t/rpl_temporary.test:
      more correct internal table emulation; typo of @@session in bug#17263.
    sql/mysql_priv.h:
      bool is_user_table(TABLE * table) 
      is added to answer wheather temporary table was created explicitly.
    sql/sql_base.cc:
      Utilizing `append_identifier' to quote. `close_temporary_tables' once again recoded
      I hope to become much simplier than previously. No-binlog branch is separated completely the
      rest that adopts String's methods.
    c212cb25
rpl_temporary.test 4.59 KB