protected function releaseLock($name)
{
$releaseStatus = null;
$this->db->createCommand('DECLARE
handle VARCHAR2(128);
BEGIN
DBMS_LOCK.ALLOCATE_UNIQUE(:name, handle);
:result := DBMS_LOCK.RELEASE(handle);
END;', [':name' => $name])->bindParam(':result', $releaseStatus, PDO::PARAM_INT, 1)->execute();
return $releaseStatus === 0 || $releaseStatus === '0';
}