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
cf0a8c97
Commit
cf0a8c97
authored
Apr 02, 2010
by
beberlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[2.0] DDC-491 - Fix OCI8 Driver being broken
parent
5b10b709
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
OCI8Connection.php
lib/Doctrine/DBAL/Driver/OCI8/OCI8Connection.php
+1
-1
OCI8Statement.php
lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php
+9
-7
No files found.
lib/Doctrine/DBAL/Driver/OCI8/OCI8Connection.php
View file @
cf0a8c97
...
@@ -53,7 +53,7 @@ class OCI8Connection implements \Doctrine\DBAL\Driver\Connection
...
@@ -53,7 +53,7 @@ class OCI8Connection implements \Doctrine\DBAL\Driver\Connection
return
$stmt
;
return
$stmt
;
}
}
public
function
quote
(
$input
)
public
function
quote
(
$input
,
$type
=
\PDO
::
PARAM_STR
)
{
{
return
is_numeric
(
$input
)
?
$input
:
"'
$input
'"
;
return
is_numeric
(
$input
)
?
$input
:
"'
$input
'"
;
}
}
...
...
lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php
View file @
cf0a8c97
...
@@ -132,14 +132,16 @@ class OCI8Statement implements \Doctrine\DBAL\Driver\Statement
...
@@ -132,14 +132,16 @@ class OCI8Statement implements \Doctrine\DBAL\Driver\Statement
/**
/**
* {@inheritdoc}
* {@inheritdoc}
*/
*/
public
function
execute
(
$params
=
array
()
)
public
function
execute
(
$params
=
null
)
{
{
$hasZeroIndex
=
isset
(
$params
[
0
]);
if
(
$params
)
{
foreach
(
$params
as
$key
=>
$val
)
{
$hasZeroIndex
=
isset
(
$params
[
0
]);
if
(
$hasZeroIndex
&&
is_numeric
(
$key
))
{
foreach
(
$params
as
$key
=>
$val
)
{
$this
->
bindValue
(
$key
+
1
,
$val
);
if
(
$hasZeroIndex
&&
is_numeric
(
$key
))
{
}
else
{
$this
->
bindValue
(
$key
+
1
,
$val
);
$this
->
bindValue
(
$key
,
$val
);
}
else
{
$this
->
bindValue
(
$key
,
$val
);
}
}
}
}
}
...
...
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