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
c3626225
Commit
c3626225
authored
May 05, 2012
by
Benjamin Eberlei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'DBAL-214' into 2.2
parents
5b284995
ba894a4d
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
25 additions
and
12 deletions
+25
-12
ArrayStatement.php
lib/Doctrine/DBAL/Cache/ArrayStatement.php
+6
-2
ResultCacheStatement.php
lib/Doctrine/DBAL/Cache/ResultCacheStatement.php
+1
-1
OCI8Statement.php
lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php
+1
-1
PDOStatement.php
lib/Doctrine/DBAL/Driver/PDOStatement.php
+11
-3
ResultStatement.php
lib/Doctrine/DBAL/Driver/ResultStatement.php
+1
-1
Statement.php
lib/Doctrine/DBAL/Portability/Statement.php
+2
-1
Statement.php
lib/Doctrine/DBAL/Statement.php
+3
-3
No files found.
lib/Doctrine/DBAL/Cache/ArrayStatement.php
View file @
c3626225
...
...
@@ -47,8 +47,12 @@ class ArrayStatement implements \IteratorAggregate, ResultStatement
return
$this
->
columnCount
;
}
public
function
setFetchMode
(
$fetchStyle
)
public
function
setFetchMode
(
$fetchStyle
,
$arg2
=
null
,
$arg3
=
null
)
{
if
(
$arg2
!==
null
||
$arg3
!==
null
)
{
throw
new
\InvalidArgumentException
(
"Caching layer does not support 2nd/3rd argument to setFetchMode()"
);
}
$this
->
defaultFetchStyle
=
$fetchStyle
;
}
...
...
lib/Doctrine/DBAL/Cache/ResultCacheStatement.php
View file @
c3626225
...
...
@@ -132,7 +132,7 @@ class ResultCacheStatement implements \IteratorAggregate, ResultStatement
return
$this
->
statement
->
columnCount
();
}
public
function
setFetchMode
(
$fetchStyle
)
public
function
setFetchMode
(
$fetchStyle
,
$arg2
=
null
,
$arg3
=
null
)
{
$this
->
defaultFetchStyle
=
$fetchStyle
;
}
...
...
lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php
View file @
c3626225
...
...
@@ -189,7 +189,7 @@ class OCI8Statement implements \IteratorAggregate, Statement
/**
* {@inheritdoc}
*/
public
function
setFetchMode
(
$fetchStyle
=
PDO
::
FETCH_BOTH
)
public
function
setFetchMode
(
$fetchStyle
=
PDO
::
FETCH_BOTH
,
$arg2
=
null
,
$arg3
=
null
)
{
$this
->
_defaultFetchStyle
=
$fetchStyle
;
}
...
...
lib/Doctrine/DBAL/Driver/PDOStatement.php
View file @
c3626225
...
...
@@ -31,12 +31,20 @@ class PDOStatement extends \PDOStatement implements Statement
{
private
function
__construct
()
{}
public
function
setFetchMode
(
$fetchStyle
,
$
params
=
NULL
)
public
function
setFetchMode
(
$fetchStyle
,
$
arg2
=
null
,
$arg3
=
null
)
{
// This thin wrapper is necessary to shield against the weird signature
// of PDOStatement::setFetchMode(): even if the second and third
// parameters are optional, PHP will not let us remove it from this
// declaration.
if
(
$arg2
===
null
||
$arg3
===
null
)
{
return
parent
::
setFetchMode
(
$fetchStyle
);
}
if
(
$arg3
===
null
)
{
return
parent
::
setFetchMode
(
$fetchStyle
,
$arg2
);
}
return
parent
::
setFetchMode
(
$fetchStyle
,
$arg2
,
$arg3
);
}
}
lib/Doctrine/DBAL/Driver/ResultStatement.php
View file @
c3626225
...
...
@@ -52,7 +52,7 @@ interface ResultStatement extends \Traversable
*
* @param integer $fetchStyle
*/
public
function
setFetchMode
(
$fetchStyle
);
function
setFetchMode
(
$fetchStyle
,
$arg2
=
null
,
$arg3
=
null
);
/**
* fetch
...
...
lib/Doctrine/DBAL/Portability/Statement.php
View file @
c3626225
...
...
@@ -101,9 +101,10 @@ class Statement implements \IteratorAggregate, \Doctrine\DBAL\Driver\Statement
return
$this
->
stmt
->
execute
(
$params
);
}
public
function
setFetchMode
(
$fetchStyle
)
public
function
setFetchMode
(
$fetchStyle
,
$arg1
=
null
,
$arg2
=
null
)
{
$this
->
defaultFetchStyle
=
$fetchStyle
;
$this
->
stmt
->
setFetchMode
(
$fetchStyle
,
$arg1
,
$arg2
);
}
public
function
getIterator
()
...
...
lib/Doctrine/DBAL/Statement.php
View file @
c3626225
...
...
@@ -177,9 +177,9 @@ class Statement implements \IteratorAggregate, DriverStatement
return
$this
->
stmt
->
errorInfo
();
}
public
function
setFetchMode
(
$fetchStyle
)
public
function
setFetchMode
(
$fetchStyle
,
$arg2
=
null
,
$arg3
=
null
)
{
return
$this
->
stmt
->
setFetchMode
(
$fetchStyle
);
return
$this
->
stmt
->
setFetchMode
(
$fetchStyle
,
$arg2
,
$arg3
);
}
public
function
getIterator
()
...
...
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