lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
public function getDecimalTypeDeclarationSQL(array $columnDef)
    {
        $columnDef['precision'] = ! isset($columnDef['precision']) || empty($columnDef['precision'])
            ? 10 : $columnDef['precision'];
        $columnDef['scale']     = ! isset($columnDef['scale']) || empty($columnDef['scale'])
            ? 0 : $columnDef['scale'];

        return 'NUMERIC(' . $columnDef['precision'] . ', ' . $columnDef['scale'] . ')';
    }
public function getDecimalTypeDeclarationSQL(array $columnDef)
    {
        $columnDef['precision'] = ! isset($columnDef['precision']) || empty($columnDef['precision'])
            ? 10 : $columnDef['precision'];
        $columnDef['scale']     = ! isset($columnDef['scale']) || empty($columnDef['scale'])
            ? 0 : $columnDef['scale'];

        return 'NUMERIC(' . $columnDef['precision'] . ', ' . $columnDef['scale'] . ')';
    }
public function getDecimalTypeDeclarationSQL ( array $ columnDef ) { $ columnDef [ 'precision' ] = ! isset ( $ columnDef [ 'precision' ] ) || empty ( $ columnDef [ 'precision' ] ) ? 10 : $ columnDef [ 'precision' ] ; $ columnDef [ 'scale' ] = ! isset ( $ columnDef [ 'scale' ] ) || empty ( $ columnDef [ 'scale' ] ) ? 0 : $ columnDef [ 'scale' ] ; return 'NUMERIC(' . $ columnDef [ 'precision' ] . ', ' . $ columnDef [ 'scale' ] . ')' ; }
Returns the SQL snippet that declares a floating point column of arbitrary precision.

@param mixed[] $columnDef

@return string
Returns the SQL snippet that declares a floating point column of arbitrary precision .