stick to single convention of binding parameters
This commit is contained in:
parent
0cc2b67753
commit
a8e1c33b54
1 changed files with 7 additions and 12 deletions
|
@ -548,8 +548,6 @@ class Database extends AbstractData
|
|||
private static function _exec($sql, array $params)
|
||||
{
|
||||
$statement = self::$_db->prepare($sql);
|
||||
if (self::$_type === 'oci') {
|
||||
// It is not possible to execute in the normal way if strlen($param) >= 4000
|
||||
foreach ($params as $key => $parameter) {
|
||||
$position = $key + 1;
|
||||
if (is_int($parameter)) {
|
||||
|
@ -559,9 +557,6 @@ class Database extends AbstractData
|
|||
}
|
||||
}
|
||||
$result = $statement->execute();
|
||||
} else {
|
||||
$result = $statement->execute($params);
|
||||
}
|
||||
$statement->closeCursor();
|
||||
return $result;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue