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:
nate 2008-08-03 14:12:08 +00:00
parent d9de0c6cd5
commit c917c611dc

View file

@ -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;
}
/**