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:
Sean Harvey 2009-06-11 07:54:42 +00:00
parent 26606fd01d
commit 46c135c1d8

View File

@ -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) {