Commit b95c056b by Carsten Brandt

fixed problem with not closed transaction in deleteAll()

parent b42f4b4e
......@@ -155,6 +155,7 @@ class ActiveRecord extends \yii\db\ActiveRecord
$attributeKeys[] = static::tableName() . ':a:' . $pk;
}
if (empty($attributeKeys)) {
$db->executeCommand('EXEC');
return 0;
}
$db->executeCommand('DEL', $attributeKeys);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment