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
7ab6bbe0
Commit
7ab6bbe0
authored
Jul 07, 2012
by
ivan
Committed by
Benjamin Eberlei
Jul 29, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bindParam function so it implements interface
parent
1bdd5640
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
DB2Statement.php
lib/Doctrine/DBAL/Driver/IBMDB2/DB2Statement.php
+1
-1
MysqliStatement.php
lib/Doctrine/DBAL/Driver/Mysqli/MysqliStatement.php
+1
-1
OCI8Statement.php
lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php
+2
-2
SQLSrvStatement.php
lib/Doctrine/DBAL/Driver/SQLSrv/SQLSrvStatement.php
+2
-2
Statement.php
lib/Doctrine/DBAL/Portability/Statement.php
+1
-1
No files found.
lib/Doctrine/DBAL/Driver/IBMDB2/DB2Statement.php
View file @
7ab6bbe0
...
...
@@ -56,7 +56,7 @@ class DB2Statement implements \IteratorAggregate, Statement
/**
* {@inheritdoc}
*/
public
function
bindParam
(
$column
,
&
$variable
,
$type
=
null
)
public
function
bindParam
(
$column
,
&
$variable
,
$type
=
null
,
$length
=
null
)
{
$this
->
_bindParam
[
$column
]
=&
$variable
;
...
...
lib/Doctrine/DBAL/Driver/Mysqli/MysqliStatement.php
View file @
7ab6bbe0
...
...
@@ -86,7 +86,7 @@ class MysqliStatement implements \IteratorAggregate, Statement
/**
* {@inheritdoc}
*/
public
function
bindParam
(
$column
,
&
$variable
,
$type
=
null
)
public
function
bindParam
(
$column
,
&
$variable
,
$type
=
null
,
$length
=
null
)
{
if
(
null
===
$type
)
{
$type
=
's'
;
...
...
lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php
View file @
7ab6bbe0
...
...
@@ -106,13 +106,13 @@ class OCI8Statement implements \IteratorAggregate, Statement
*/
public
function
bindValue
(
$param
,
$value
,
$type
=
null
)
{
return
$this
->
bindParam
(
$param
,
$value
,
$type
);
return
$this
->
bindParam
(
$param
,
$value
,
$type
,
null
);
}
/**
* {@inheritdoc}
*/
public
function
bindParam
(
$column
,
&
$variable
,
$type
=
null
)
public
function
bindParam
(
$column
,
&
$variable
,
$type
=
null
,
$length
=
null
)
{
$column
=
isset
(
$this
->
_paramMap
[
$column
])
?
$this
->
_paramMap
[
$column
]
:
$column
;
...
...
lib/Doctrine/DBAL/Driver/SQLSrv/SQLSrvStatement.php
View file @
7ab6bbe0
...
...
@@ -102,13 +102,13 @@ class SQLSrvStatement implements IteratorAggregate, Statement
public
function
bindValue
(
$param
,
$value
,
$type
=
null
)
{
return
$this
->
bindParam
(
$param
,
$value
,
$type
);
return
$this
->
bindParam
(
$param
,
$value
,
$type
,
null
);
}
/**
* {@inheritdoc}
*/
public
function
bindParam
(
$column
,
&
$variable
,
$type
=
null
)
public
function
bindParam
(
$column
,
&
$variable
,
$type
=
null
,
$length
=
null
)
{
if
(
!
is_numeric
(
$column
))
{
throw
new
SQLSrvException
(
"sqlsrv does not support named parameters to queries, use question mark (?) placeholders instead."
);
...
...
lib/Doctrine/DBAL/Portability/Statement.php
View file @
7ab6bbe0
...
...
@@ -66,7 +66,7 @@ class Statement implements \IteratorAggregate, \Doctrine\DBAL\Driver\Statement
$this
->
case
=
$conn
->
getFetchCase
();
}
public
function
bindParam
(
$column
,
&
$variable
,
$type
=
null
)
public
function
bindParam
(
$column
,
&
$variable
,
$type
=
null
,
$length
=
null
)
{
return
$this
->
stmt
->
bindParam
(
$column
,
$variable
,
$type
);
}
...
...
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