mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Removing quotes when saving binary data in DboMssql, fixes #5242
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7582 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
10bb597fd6
commit
5d746a938d
1 changed files with 1 additions and 1 deletions
|
@ -278,7 +278,7 @@ class DboMssql extends DboSource {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (in_array($column, array('integer', 'float')) && is_numeric($data)) {
|
if (in_array($column, array('integer', 'float', 'binary')) && is_numeric($data)) {
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
return "'" . $data . "'";
|
return "'" . $data . "'";
|
||||||
|
|
Loading…
Reference in a new issue