Browse Source

fixed problem with not closed transaction in deleteAll()

tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
b95c056b02
  1. 1
      framework/yii/redis/ActiveRecord.php

1
framework/yii/redis/ActiveRecord.php

@ -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);

Loading…
Cancel
Save