• unknown's avatar
    Fix for "innodb_mysql" and "events" failures: we can disable transactionality · ca12435f
    unknown authored
    in CREATE SELECT only if the table is not temporary (because
    re-enabling causes a commit). In the future we should disable
    again for temporary tables; that will probably require changing
    ha_enable_transaction().
    
    
    sql/sql_insert.cc:
      When we disable transactionality in CREATE SELECT, we re-enable it
      at the end and this causes a commit (inside ha_enable_transaction());
      but this is undesired if the created table is temporary (we don't
      want CREATE TEMPORARY TABLE SELECT to commit all previous statements).
      So we disable logging only if the table is not temporary.
      Ideally in the future we would want to lift this restriction which
      sounds stupid, but for Maria it does not matter now (temporary
      tables are not transactional yet).
    ca12435f
sql_insert.cc 119 KB