mirror of
https://github.com/standardebooks/web.git
synced 2025-07-07 23:30:35 -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 [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->QueryCount++;
|
|
||||||
$result = [];
|
$result = [];
|
||||||
$preparedSql = $sql;
|
|
||||||
|
|
||||||
try{
|
try{
|
||||||
$handle = $this->_link->prepare($preparedSql);
|
$handle = $this->_link->prepare($sql);
|
||||||
}
|
}
|
||||||
catch(\PDOException $ex){
|
catch(\PDOException $ex){
|
||||||
throw $this->CreateDetailedException($ex, $preparedSql, $params);
|
throw $this->CreateDetailedException($ex, $sql, $params);
|
||||||
}
|
}
|
||||||
|
|
||||||
$name = 0;
|
$name = 0;
|
||||||
|
@ -121,11 +119,13 @@ class DbConnection{
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$done = true;
|
$done = true;
|
||||||
throw $this->CreateDetailedException($ex, $preparedSql, $params);
|
throw $this->CreateDetailedException($ex, $sql, $params);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->QueryCount++;
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue