protected isPrecisionType ( $type ) : boolean | ||
Résultat | boolean | true if column type if "numeric", "interval" or begins with "time". |
protected function isPrecisionType($type)
{
$type = strtolower(trim($type));
return $type === 'decimal' || $type === 'dec' || $type === 'float' || $type === 'double' || $type === 'double precision' || $type === 'real';
}