Fixed IBM DB2 Platform to support locking
This commit is contained in:
parent
b8402c9563
commit
c3303881a9
@ -513,4 +513,9 @@ class DB2Platform extends AbstractPlatform
|
||||
{
|
||||
return strtoupper($column);
|
||||
}
|
||||
|
||||
public function getForUpdateSQL()
|
||||
{
|
||||
return ' WITH RR USE AND KEEP UPDATE LOCKS';
|
||||
}
|
||||
}
|
@ -101,6 +101,7 @@ class LockAgentWorker
|
||||
$cache = new \Doctrine\Common\Cache\ArrayCache();
|
||||
$config->setMetadataCacheImpl($cache);
|
||||
$config->setQueryCacheImpl($cache);
|
||||
$config->setSQLLogger(new \Doctrine\DBAL\Logging\EchoSQLLogger());
|
||||
|
||||
$em = \Doctrine\ORM\EntityManager::create($conn, $config);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user