mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-08 18:51:12 +02:00
19 lines
447 B
PHP
19 lines
447 B
PHP
<?php
|
|
/**
|
|
*
|
|
* @package framework
|
|
* @subpackage model
|
|
*/
|
|
class Double extends Float {
|
|
|
|
public function requireField() {
|
|
// HACK: MSSQL does not support double so we're using float instead
|
|
// @todo This should go into MSSQLDatabase ideally somehow
|
|
if(DB::getConn() instanceof MySQLDatabase) {
|
|
DB::requireField($this->tableName, $this->name, "double");
|
|
} else {
|
|
DB::requireField($this->tableName, $this->name, "float");
|
|
}
|
|
}
|
|
}
|