MySQL 8.0.40
Source Code Documentation
|
This file contains basic method for field types. More...
#include "field_types.h"
Go to the source code of this file.
Functions | |
bool | is_integer_type (enum_field_types type) |
Tests if field type is an integer. More... | |
bool | is_numeric_type (enum_field_types type) |
Tests if field type is a numeric type. More... | |
bool | is_string_type (enum_field_types type) |
Tests if field type is a string type. More... | |
bool | is_temporal_type (enum_field_types type) |
Tests if field type is temporal, i.e. More... | |
bool | is_temporal_type_with_time (enum_field_types type) |
Tests if field type is temporal and has time part, i.e. More... | |
bool | is_temporal_type_with_date (enum_field_types type) |
Tests if field type is temporal and has date part, i.e. More... | |
bool | is_temporal_type_with_date_and_time (enum_field_types type) |
Tests if field type is temporal and has date and time parts, i.e. More... | |
bool | is_timestamp_type (enum_field_types type) |
Recognizer for concrete data type (called real_type for some reason), returning true if it is one of the TIMESTAMP types. More... | |
bool | has_signedess_information_type (enum_field_types type) |
Test if the field type contains information on being signed/unsigned. More... | |
This file contains basic method for field types.
|
inline |
Test if the field type contains information on being signed/unsigned.
This includes numeric but also YEAR that still contains sign modifiers even if ignored.
type | Field type, as returned by field->type() |
|
inline |
Tests if field type is an integer.
type | Field type, as returned by field->type() |
|
inline |
Tests if field type is a numeric type.
type | Field type, as returned by field->type() |
|
inline |
Tests if field type is a string type.
type | Field type, as returned by field->type() |
|
inline |
Tests if field type is temporal, i.e.
represents DATE, TIME, DATETIME, TIMESTAMP or YEAR types in SQL.
type | Field type, as returned by field->type(). |
true | If field type is temporal |
false | If field type is not temporal |
|
inline |
Tests if field type is temporal and has date part, i.e.
represents DATE, DATETIME or TIMESTAMP types in SQL.
type | Field type, as returned by field->type(). |
true | If field type is temporal type with date part. |
false | If field type is not temporal type with date part. |
|
inline |
Tests if field type is temporal and has date and time parts, i.e.
represents DATETIME or TIMESTAMP types in SQL.
type | Field type, as returned by field->type(). |
true | If field type is temporal type with date and time parts. |
false | If field type is not temporal type with date and time parts. |
|
inline |
Tests if field type is temporal and has time part, i.e.
represents TIME, DATETIME or TIMESTAMP types in SQL.
type | Field type, as returned by field->type(). |
true | If field type is temporal type with time part. |
false | If field type is not temporal type with time part. |
|
inline |
Recognizer for concrete data type (called real_type for some reason), returning true if it is one of the TIMESTAMP types.