Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
be0d79c4
Commit
be0d79c4
authored
Nov 14, 2006
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated transaction drivers
parent
2459f8f5
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
42 additions
and
7 deletions
+42
-7
Firebird.php
lib/Doctrine/Transaction/Firebird.php
+1
-1
Mssql.php
lib/Doctrine/Transaction/Mssql.php
+36
-1
Mysql.php
lib/Doctrine/Transaction/Mysql.php
+2
-2
Oracle.php
lib/Doctrine/Transaction/Oracle.php
+1
-1
Pgsql.php
lib/Doctrine/Transaction/Pgsql.php
+1
-1
Sqlite.php
lib/Doctrine/Transaction/Sqlite.php
+1
-1
No files found.
lib/Doctrine/Transaction/Firebird.php
View file @
be0d79c4
...
...
@@ -84,7 +84,7 @@ class Doctrine_Transaction_Firebird extends Doctrine_Transaction {
* @throws Doctrine_Transaction_Exception if using unknown isolation level or unknown wait option
* @return void
*/
public
function
set
Transaction
Isolation
(
$isolation
,
$options
=
array
())
{
public
function
setIsolation
(
$isolation
,
$options
=
array
())
{
switch
(
$isolation
)
{
case
'READ UNCOMMITTED'
:
$nativeIsolation
=
'READ COMMITTED RECORD_VERSION'
;
...
...
lib/Doctrine/Transaction/Mssql.php
View file @
be0d79c4
...
...
@@ -30,4 +30,39 @@ Doctrine::autoload('Doctrine_Transaction');
* @since 1.0
* @version $Revision$
*/
class
Doctrine_Transaction_Mssql
extends
Doctrine_Transaction
{
}
class
Doctrine_Transaction_Mssql
extends
Doctrine_Transaction
{
/**
* Set the transacton isolation level.
*
* @param string standard isolation level (SQL-92)
* portable modes:
* READ UNCOMMITTED (allows dirty reads)
* READ COMMITTED (prevents dirty reads)
* REPEATABLE READ (prevents nonrepeatable reads)
* SERIALIZABLE (prevents phantom reads)
* mssql specific modes:
* SNAPSHOT
*
* @link http://msdn2.microsoft.com/en-us/library/ms173763.aspx
* @throws PDOException if something fails at the PDO level
* @throws Doctrine_Transaction_Exception if using unknown isolation level or unknown wait option
* @return void
*/
public
function
setIsolation
(
$isolation
,
$options
=
array
())
{
switch
(
$isolation
)
{
case
'READ UNCOMMITTED'
:
case
'READ COMMITTED'
:
case
'REPEATABLE READ'
:
case
'SERIALIZABLE'
:
case
'SNAPSHOT'
:
break
;
default
:
throw
new
Doctrine_Transaction_Exception
(
'isolation level is not supported: '
.
$isolation
);
}
$query
=
'SET TRANSACTION ISOLATION LEVEL '
.
$isolation
;
$this
->
conn
->
getDbh
()
->
query
(
$query
);
}
}
lib/Doctrine/Transaction/Mysql.php
View file @
be0d79c4
...
...
@@ -80,7 +80,7 @@ class Doctrine_Transaction_Mysql extends Doctrine_Transaction {
* @throws PDOException if something fails at the PDO level
* @return void
*/
public
function
set
Transaction
Isolation
(
$isolation
)
{
public
function
setIsolation
(
$isolation
)
{
switch
(
$isolation
)
{
case
'READ UNCOMMITTED'
:
case
'READ COMMITTED'
:
...
...
lib/Doctrine/Transaction/Oracle.php
View file @
be0d79c4
...
...
@@ -78,7 +78,7 @@ class Doctrine_Transaction_Oracle extends Doctrine_Transaction {
* @throws Doctrine_Transaction_Exception if using unknown isolation level
* @return void
*/
public
function
set
Transaction
Isolation
(
$isolation
)
{
public
function
setIsolation
(
$isolation
)
{
switch
(
$isolation
)
{
case
'READ UNCOMMITTED'
:
$isolation
=
'READ COMMITTED'
;
...
...
lib/Doctrine/Transaction/Pgsql.php
View file @
be0d79c4
...
...
@@ -80,7 +80,7 @@ class Doctrine_Transaction_Pgsql extends Doctrine_Transaction {
* @throws Doctrine_Transaction_Exception if using unknown isolation level or unknown wait option
* @return void
*/
public
function
set
Transaction
Isolation
(
$isolation
)
{
public
function
setIsolation
(
$isolation
)
{
switch
(
$isolation
)
{
case
'READ UNCOMMITTED'
:
case
'READ COMMITTED'
:
...
...
lib/Doctrine/Transaction/Sqlite.php
View file @
be0d79c4
...
...
@@ -43,7 +43,7 @@ class Doctrine_Transaction_Sqlite extends Doctrine_Transaction {
* @throws Doctrine_Transaction_Exception if using unknown isolation level
* @return void
*/
public
function
set
Transaction
Isolation
(
$isolation
)
{
public
function
setIsolation
(
$isolation
)
{
switch
(
$isolation
)
{
case
'READ UNCOMMITTED'
:
$isolation
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment