mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Updated note on MSSQLDatabase specific functionality in DataObject::__construct()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@78964 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
26606fd01d
commit
46c135c1d8
@ -256,8 +256,8 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
|
||||
}
|
||||
}
|
||||
|
||||
// Remove milliseconds from the datetime returned by MSSQL. If we don't do this, PHP will choke.
|
||||
// TODO: As per the above PostgreSQLDatabase change, implement more elegantly
|
||||
// TODO: MSSQL has a convert function that can do this on the SQL end. We just need a
|
||||
// nice way of telling the database how we want to get the value out on a per-fieldtype basis
|
||||
if(DB::getConn() instanceof MSSQLDatabase) {
|
||||
$this->class = get_class($this);
|
||||
foreach($record as $k => $v) {
|
||||
|
Loading…
Reference in New Issue
Block a user