From b95c056b02cdedaa9052552302cb0609b73c3b68 Mon Sep 17 00:00:00 2001 From: Carsten Brandt <mail@cebe.cc> Date: Wed, 25 Sep 2013 16:58:23 +0200 Subject: [PATCH] fixed problem with not closed transaction in deleteAll() --- framework/yii/redis/ActiveRecord.php | 1 + 1 file changed, 1 insertion(+) diff --git a/framework/yii/redis/ActiveRecord.php b/framework/yii/redis/ActiveRecord.php index fb26818..2e4c1ad 100644 --- a/framework/yii/redis/ActiveRecord.php +++ b/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); -- libgit2 0.27.1