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
eb1a96b0
Commit
eb1a96b0
authored
Dec 30, 2006
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed the PDO::query calls to Doctrine_Connection::execute calls for portable errors
parent
d9d4e877
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
18 deletions
+18
-18
Firebird.php
lib/Doctrine/Transaction/Firebird.php
+4
-4
Mssql.php
lib/Doctrine/Transaction/Mssql.php
+1
-1
Mysql.php
lib/Doctrine/Transaction/Mysql.php
+5
-5
Oracle.php
lib/Doctrine/Transaction/Oracle.php
+3
-3
Pgsql.php
lib/Doctrine/Transaction/Pgsql.php
+4
-4
Sqlite.php
lib/Doctrine/Transaction/Sqlite.php
+1
-1
No files found.
lib/Doctrine/Transaction/Firebird.php
View file @
eb1a96b0
...
...
@@ -43,7 +43,7 @@ class Doctrine_Transaction_Firebird extends Doctrine_Transaction
{
$query
=
'SAVEPOINT '
.
$savepoint
;
return
$this
->
conn
->
getDbh
()
->
query
(
$query
);
return
$this
->
conn
->
execute
(
$query
);
}
/**
* releaseSavePoint
...
...
@@ -56,7 +56,7 @@ class Doctrine_Transaction_Firebird extends Doctrine_Transaction
{
$query
=
'RELEASE SAVEPOINT '
.
$savepoint
;
return
$this
->
conn
->
getDbh
()
->
query
(
$query
);
return
$this
->
conn
->
execute
(
$query
);
}
/**
* rollbackSavePoint
...
...
@@ -69,7 +69,7 @@ class Doctrine_Transaction_Firebird extends Doctrine_Transaction
{
$query
=
'ROLLBACK TO SAVEPOINT '
.
$savepoint
;
return
$this
->
conn
->
getDbh
()
->
query
(
$query
);
return
$this
->
conn
->
execute
(
$query
);
}
/**
* Set the transacton isolation level.
...
...
@@ -132,6 +132,6 @@ class Doctrine_Transaction_Firebird extends Doctrine_Transaction
$query
=
'SET TRANSACTION'
.
$rw
.
$wait
.
' ISOLATION LEVEL '
.
$nativeIsolation
;
$this
->
conn
->
getDbh
()
->
query
(
$query
);
$this
->
conn
->
execute
(
$query
);
}
}
lib/Doctrine/Transaction/Mssql.php
View file @
eb1a96b0
...
...
@@ -63,6 +63,6 @@ class Doctrine_Transaction_Mssql extends Doctrine_Transaction
$query
=
'SET TRANSACTION ISOLATION LEVEL '
.
$isolation
;
$this
->
conn
->
getDbh
()
->
query
(
$query
);
$this
->
conn
->
execute
(
$query
);
}
}
lib/Doctrine/Transaction/Mysql.php
View file @
eb1a96b0
...
...
@@ -43,7 +43,7 @@ class Doctrine_Transaction_Mysql extends Doctrine_Transaction
{
$query
=
'SAVEPOINT '
.
$savepoint
;
return
$this
->
conn
->
getDbh
()
->
query
(
$query
);
return
$this
->
conn
->
execute
(
$query
);
}
/**
* releaseSavePoint
...
...
@@ -56,7 +56,7 @@ class Doctrine_Transaction_Mysql extends Doctrine_Transaction
{
$query
=
'RELEASE SAVEPOINT '
.
$savepoint
;
return
$this
->
conn
->
getDbh
()
->
query
(
$query
);
return
$this
->
conn
->
execute
(
$query
);
}
/**
* rollbackSavePoint
...
...
@@ -69,7 +69,7 @@ class Doctrine_Transaction_Mysql extends Doctrine_Transaction
{
$query
=
'ROLLBACK TO SAVEPOINT '
.
$savepoint
;
return
$this
->
conn
->
getDbh
()
->
query
(
$query
);
return
$this
->
conn
->
execute
(
$query
);
}
/**
* Set the transacton isolation level.
...
...
@@ -98,7 +98,7 @@ class Doctrine_Transaction_Mysql extends Doctrine_Transaction
$query
=
'SET SESSION TRANSACTION ISOLATION LEVEL '
.
$isolation
;
return
$this
->
conn
->
getDbh
()
->
query
(
$query
);
return
$this
->
conn
->
execute
(
$query
);
}
/**
* getTransactionIsolation
...
...
@@ -107,7 +107,7 @@ class Doctrine_Transaction_Mysql extends Doctrine_Transaction
*/
public
function
getIsolation
()
{
$ret
=
$this
->
conn
->
getDbh
()
->
query
(
'SELECT @@tx_isolation'
)
->
fetch
(
PDO
::
FETCH_NUM
);
$ret
=
$this
->
conn
->
execute
(
'SELECT @@tx_isolation'
)
->
fetch
(
PDO
::
FETCH_NUM
);
return
current
(
$ret
);
}
}
lib/Doctrine/Transaction/Oracle.php
View file @
eb1a96b0
...
...
@@ -43,7 +43,7 @@ class Doctrine_Transaction_Oracle extends Doctrine_Transaction
{
$query
=
'SAVEPOINT '
.
$savepoint
;
return
$this
->
conn
->
getDbh
()
->
query
(
$query
);
return
$this
->
conn
->
execute
(
$query
);
}
/**
* releaseSavePoint
...
...
@@ -68,7 +68,7 @@ class Doctrine_Transaction_Oracle extends Doctrine_Transaction
{
$query
=
'ROLLBACK TO SAVEPOINT '
.
$savepoint
;
return
$this
->
conn
->
getDbh
()
->
query
(
$query
);
return
$this
->
conn
->
execute
(
$query
);
}
/**
* Set the transacton isolation level.
...
...
@@ -98,6 +98,6 @@ class Doctrine_Transaction_Oracle extends Doctrine_Transaction
}
$query
=
'ALTER SESSION ISOLATION LEVEL '
.
$isolation
;
return
$this
->
conn
->
getDbh
()
->
query
(
$query
);
return
$this
->
conn
->
execute
(
$query
);
}
}
lib/Doctrine/Transaction/Pgsql.php
View file @
eb1a96b0
...
...
@@ -44,7 +44,7 @@ class Doctrine_Transaction_Pgsql extends Doctrine_Transaction
{
$query
=
'SAVEPOINT '
.
$savepoint
;
return
$this
->
conn
->
getDbh
()
->
query
(
$query
);
return
$this
->
conn
->
execute
(
$query
);
}
/**
* releaseSavePoint
...
...
@@ -57,7 +57,7 @@ class Doctrine_Transaction_Pgsql extends Doctrine_Transaction
{
$query
=
'RELEASE SAVEPOINT '
.
$savepoint
;
return
$this
->
conn
->
getDbh
()
->
query
(
$query
);
return
$this
->
conn
->
execute
(
$query
);
}
/**
* rollbackSavePoint
...
...
@@ -70,7 +70,7 @@ class Doctrine_Transaction_Pgsql extends Doctrine_Transaction
{
$query
=
'ROLLBACK TO SAVEPOINT '
.
$savepoint
;
return
$this
->
conn
->
getDbh
()
->
query
(
$query
);
return
$this
->
conn
->
execute
(
$query
);
}
/**
* Set the transacton isolation level.
...
...
@@ -97,6 +97,6 @@ class Doctrine_Transaction_Pgsql extends Doctrine_Transaction
}
$query
=
'SET SESSION CHARACTERISTICS AS TRANSACTION ISOLATION LEVEL '
.
$isolation
;
return
$this
->
conn
->
getDbh
()
->
query
(
$query
);
return
$this
->
conn
->
execute
(
$query
);
}
}
lib/Doctrine/Transaction/Sqlite.php
View file @
eb1a96b0
...
...
@@ -61,6 +61,6 @@ class Doctrine_Transaction_Sqlite extends Doctrine_Transaction
$query
=
'PRAGMA read_uncommitted = '
.
$isolation
;
return
$this
->
conn
->
getDbh
()
->
query
(
$query
);
return
$this
->
conn
->
execute
(
$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