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:
nate 2008-09-09 06:00:54 +00:00
parent 10bb597fd6
commit 5d746a938d

View file

@ -278,7 +278,7 @@ class DboMssql extends DboSource {
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 . "'";