[2.0] DDC-491 - Fix OCI8 Driver being broken
This commit is contained in:
parent
5b10b7098f
commit
cf0a8c9727
@ -53,7 +53,7 @@ class OCI8Connection implements \Doctrine\DBAL\Driver\Connection
|
||||
return $stmt;
|
||||
}
|
||||
|
||||
public function quote($input)
|
||||
public function quote($input, $type=\PDO::PARAM_STR)
|
||||
{
|
||||
return is_numeric($input) ? $input : "'$input'";
|
||||
}
|
||||
|
@ -132,14 +132,16 @@ class OCI8Statement implements \Doctrine\DBAL\Driver\Statement
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function execute($params = array())
|
||||
public function execute($params = null)
|
||||
{
|
||||
$hasZeroIndex = isset($params[0]);
|
||||
foreach ($params as $key => $val) {
|
||||
if ($hasZeroIndex && is_numeric($key)) {
|
||||
$this->bindValue($key + 1, $val);
|
||||
} else {
|
||||
$this->bindValue($key, $val);
|
||||
if ($params) {
|
||||
$hasZeroIndex = isset($params[0]);
|
||||
foreach ($params as $key => $val) {
|
||||
if ($hasZeroIndex && is_numeric($key)) {
|
||||
$this->bindValue($key + 1, $val);
|
||||
} else {
|
||||
$this->bindValue($key, $val);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user