yii\db\oci\Schema::extractColumnSize PHP Method

extractColumnSize() protected method

Extracts size, precision and scale information from column's DB type.
protected extractColumnSize ( ColumnSchema $column, string $dbType, string $precision, string $scale, string $length )
$column yii\db\ColumnSchema
$dbType string the column's DB type
$precision string total number of digits. This parameter is available since version 2.0.4.
$scale string number of digits on the right of the decimal separator. This parameter is available since version 2.0.4.
$length string length for character types. This parameter is available since version 2.0.4.
    protected function extractColumnSize($column, $dbType, $precision, $scale, $length)
    {
        $column->size = trim($length) === '' ? null : (int) $length;
        $column->precision = trim($precision) === '' ? null : (int) $precision;
        $column->scale = trim($scale) === '' ? null : (int) $scale;
    }