• unknown's avatar
    BUG#28722 (Multi-engine statements on has_own_binlogging engine): · d2d630c2
    unknown authored
    WL#3931 (Multi-table statement involving self-logging engines):
    
    Adding logic to generate error if more than one engine is involved in
    the statement and at least one engine is self-logging (i.e., has the
    HA_HAS_OWN_BINLOGGING table flags set).
    
    
    mysql-test/r/binlog_multi_engine.result:
      Result change.
    mysql-test/t/binlog_multi_engine.test:
      Errors now generated for some statements due to NDB setting the
      HA_HAS_OWN_BINLOGGING flag.
    sql/sql_base.cc:
      Computing both the intersection and union of all table flags in the
      logic to decide logging format.
      
      Calculating if there are more than one engine involved in the statement.
      For this case, we only consider engines that hold tables that data is
      written to.
      
      Adding logic to generate error if more than one engine is involved in
      the statement and at least one engine is self-logging (i.e., has the
      HA_HAS_OWN_BINLOGGING table flags set).
      ---
      Renaming variable.
    d2d630c2
sql_base.cc 238 KB