mirror of
https://github.com/standardebooks/web.git
synced 2025-07-07 15:20:32 -04:00
More DB connection cleanup
This commit is contained in:
parent
be329ea7c6
commit
233f8eb171
1 changed files with 5 additions and 5 deletions
|
@ -62,15 +62,13 @@ class DbConnection{
|
|||
return [];
|
||||
}
|
||||
|
||||
$this->QueryCount++;
|
||||
$result = [];
|
||||
$preparedSql = $sql;
|
||||
|
||||
try{
|
||||
$handle = $this->_link->prepare($preparedSql);
|
||||
$handle = $this->_link->prepare($sql);
|
||||
}
|
||||
catch(\PDOException $ex){
|
||||
throw $this->CreateDetailedException($ex, $preparedSql, $params);
|
||||
throw $this->CreateDetailedException($ex, $sql, $params);
|
||||
}
|
||||
|
||||
$name = 0;
|
||||
|
@ -121,11 +119,13 @@ class DbConnection{
|
|||
}
|
||||
else{
|
||||
$done = true;
|
||||
throw $this->CreateDetailedException($ex, $preparedSql, $params);
|
||||
throw $this->CreateDetailedException($ex, $sql, $params);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$this->QueryCount++;
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue