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
98c1f66b
Commit
98c1f66b
authored
Nov 23, 2006
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small fixes for transaction drivers
parent
4a748756
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Firebird.php
lib/Doctrine/Transaction/Firebird.php
+3
-3
Oracle.php
lib/Doctrine/Transaction/Oracle.php
+1
-1
No files found.
lib/Doctrine/Transaction/Firebird.php
View file @
98c1f66b
...
...
@@ -106,7 +106,7 @@ class Doctrine_Transaction_Firebird extends Doctrine_Transaction {
switch
(
$options
[
'wait'
])
{
case
'WAIT'
:
case
'NO WAIT'
:
$wait
=
$options
[
'wait'
];
$wait
=
' '
.
$options
[
'wait'
];
break
;
default
:
throw
new
Doctrine_Transaction_Exception
(
'wait option is not supported: '
.
$options
[
'wait'
]);
...
...
@@ -117,14 +117,14 @@ class Doctrine_Transaction_Firebird extends Doctrine_Transaction {
switch
(
$options
[
'rw'
])
{
case
'READ ONLY'
:
case
'READ WRITE'
:
$rw
=
$options
[
'wait'
];
$rw
=
' '
.
$options
[
'wait'
];
break
;
default
:
throw
new
Doctrine_Transaction_Exception
(
'wait option is not supported: '
.
$options
[
'rw'
]);
}
}
$query
=
'SET TRANSACTION
'
.
$rw
.
' '
.
$wait
.
' ISOLATION LEVEL '
.
$nativeIsolation
;
$query
=
'SET TRANSACTION
'
.
$rw
.
$wait
.
' ISOLATION LEVEL '
.
$nativeIsolation
;
$this
->
conn
->
getDbh
()
->
query
(
$query
);
}
...
...
lib/Doctrine/Transaction/Oracle.php
View file @
98c1f66b
...
...
@@ -93,6 +93,6 @@ class Doctrine_Transaction_Oracle extends Doctrine_Transaction {
}
$query
=
'ALTER SESSION ISOLATION LEVEL '
.
$isolation
;
return
$this
->
dbh
->
query
(
$query
);
return
$this
->
conn
->
getDbh
()
->
query
(
$query
);
}
}
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