mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Adding Spanish-language error message detection to DboMssql, fixes #5195
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7426 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
d9de0c6cd5
commit
c917c611dc
1 changed files with 1 additions and 2 deletions
|
@ -387,7 +387,7 @@ class DboMssql extends DboSource {
|
|||
$error = mssql_get_last_message($this->connection);
|
||||
|
||||
if ($error) {
|
||||
if (!preg_match('/contesto di database|changed database/i', $error)) {
|
||||
if (!preg_match('/contexto de la base de datos a|contesto di database|changed database/i', $error)) {
|
||||
return $error;
|
||||
}
|
||||
}
|
||||
|
@ -613,7 +613,6 @@ class DboMssql extends DboSource {
|
|||
function read(&$model, $queryData = array(), $recursive = null) {
|
||||
$results = parent::read($model, $queryData, $recursive);
|
||||
$this->__fieldMappings = array();
|
||||
$this->__fieldMapBase = null;
|
||||
return $results;
|
||||
}
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue