mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
807736490f
commit
53d551d2e6
@ -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) . "'";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user