protected function canUpdateWithOrderBy(Doctrine_Connection $conn) { // If transaction level is greater than 1, // query will throw exceptions when using this function return $conn->getTransactionLevel() < 2 && $conn->getDriverName() != 'Pgsql' && $conn->getDriverName() != 'Sqlite' && $conn->getDriverName() != 'Mssql'; }
protected function canUpdateWithOrderBy(Doctrine_Connection $conn) { // If transaction level is greater than 1, // query will throw exceptions when using this function return $conn->getTransactionLevel() < 2 && // some drivers do not support UPDATE with ORDER BY query syntax $conn->getDriverName() != 'Pgsql' && $conn->getDriverName() != 'Sqlite'; }