mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-07 03:52:41 +00:00
Bringing the SQlserver datasource up to date, fixing a doc block
This commit is contained in:
parent
90d86678fa
commit
df2ef0e4f1
2 changed files with 7 additions and 4 deletions
|
@ -767,9 +767,12 @@ class Sqlserver extends DboSource {
|
|||
}
|
||||
return true;
|
||||
} catch (PDOException $e) {
|
||||
$this->_results = null;
|
||||
$this->error = $e->getMessage();
|
||||
return false;
|
||||
if (isset($query->queryString)) {
|
||||
$e->queryString = $query->queryString;
|
||||
} else {
|
||||
$e->queryString = $sql;
|
||||
}
|
||||
throw $e;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -417,7 +417,7 @@ class DboSource extends DataSource {
|
|||
* @param string $sql SQL statement
|
||||
* @param array $params list of params to be bound to query
|
||||
* @param array $prepareOptions Options to be used in the prepare statement
|
||||
* @return mixed PDOStatement if query executes with no problem, true as the result of a succesfull, false on error
|
||||
* @return mixed PDOStatement if query executes with no problem, true as the result of a successful, false on error
|
||||
* query returning no rows, suchs as a CREATE statement, false otherwise
|
||||
*/
|
||||
protected function _execute($sql, $params = array(), $prepareOptions = array()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue