API CHANGE: raw2sql now uses DB-specific method

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@72923 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Geoff Munn 2009-03-11 21:50:26 +00:00
parent 807736490f
commit 53d551d2e6

View File

@ -114,7 +114,7 @@ abstract class DBField extends ViewableData {
if($value === null || $value === "" || $value === false) { if($value === null || $value === "" || $value === false) {
return "null"; return "null";
} else { } else {
return "'" . addslashes($value) . "'"; return "'" . Convert::raw2sql($value) . "'";
} }
} }