Install Transaction

  • Thread starter Thread starter ragtek
  • Start date Start date
R

ragtek

Guest
Doesn't this transaction include own queries from the install callback??
XenForo_Model_AddOn:
PHP:
    $db = $this->_getDb();
        XenForo_Db::beginTransaction($db);

        if ($addOnData['install_callback_class'] && $addOnData['install_callback_method'])
        {
            call_user_func(
                array($addOnData['install_callback_class'], $addOnData['install_callback_method']),
                $existingAddOn,
                $addOnData
            );
        }

        $addOnDw = XenForo_DataWriter::create('XenForo_DataWriter_AddOn');

i'm creating some tables in the callback class and even the install goes wrong, they are created.
 
DDLs aren't part of a transaction. Only DMLs. Just a limitation/design of MySQL/InnoDB.
 
Top Bottom