本文整理汇总了PHP中AbstractPlatform::_getTransactionIsolationLevelSql方法的典型用法代码示例。如果您正苦于以下问题:PHP AbstractPlatform::_getTransactionIsolationLevelSql方法的具体用法?PHP AbstractPlatform::_getTransactionIsolationLevelSql怎么用?PHP AbstractPlatform::_getTransactionIsolationLevelSql使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AbstractPlatform
的用法示例。
在下文中一共展示了AbstractPlatform::_getTransactionIsolationLevelSql方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _getTransactionIsolationLevelSql
/**
* Enter description here...
*
* @param unknown_type $level
* @override
*/
protected function _getTransactionIsolationLevelSql($level)
{
switch ($level) {
case Doctrine_DBAL_Connection::TRANSACTION_READ_UNCOMMITTED:
return 'READ COMMITTED RECORD_VERSION';
case Doctrine_DBAL_Connection::TRANSACTION_READ_COMMITTED:
return 'READ COMMITTED NO RECORD_VERSION';
case Doctrine_DBAL_Connection::TRANSACTION_REPEATABLE_READ:
return 'SNAPSHOT';
case Doctrine_DBAL_Connection::TRANSACTION_SERIALIZABLE:
return 'SNAPSHOT TABLE STABILITY';
default:
return parent::_getTransactionIsolationLevelSql($level);
}
}
示例2: _getTransactionIsolationLevelSql
/**
* Enter description here...
*
* @param integer $level
* @override
*/
protected function _getTransactionIsolationLevelSql($level)
{
switch ($level) {
case Doctrine_DBAL_Connection::TRANSACTION_READ_UNCOMMITTED:
case Doctrine_DBAL_Connection::TRANSACTION_READ_COMMITTED:
return 'READ COMMITTED';
case Doctrine_DBAL_Connection::TRANSACTION_REPEATABLE_READ:
case Doctrine_DBAL_Connection::TRANSACTION_SERIALIZABLE:
return 'SERIALIZABLE';
default:
return parent::_getTransactionIsolationLevelSql($level);
}
}
示例3: _getTransactionIsolationLevelSql
protected function _getTransactionIsolationLevelSql($level)
{
switch ($level) {
// case \Doctrine\DBAL\Connection::TRANSACTION_READ_UNCOMMITTED:
// return 0;
// case \Doctrine\DBAL\Connection::TRANSACTION_READ_COMMITTED:
// case \Doctrine\DBAL\Connection::TRANSACTION_REPEATABLE_READ:
// case \Doctrine\DBAL\Connection::TRANSACTION_SERIALIZABLE:
// return 1;
default:
return parent::_getTransactionIsolationLevelSql($level);
}
}