MySQL 8.3.0
Source Code Documentation
MYSQL_TIME_STATUS Struct Reference

Structure to return status from str_to_datetime(), str_to_time(), number_to_datetime(), number_to_time() More...

#include <my_time.h>

Classes

struct  DEPRECATION
 

Public Member Functions

void set_deprecation (DEPRECATION::DEPR_KIND kind, const char *arg, const char *end, const char *delim, bool colon=false)
 
 MYSQL_TIME_STATUS ()=default
 
 MYSQL_TIME_STATUS (const MYSQL_TIME_STATUS &)=default
 
MYSQL_TIME_STATUSoperator= (const MYSQL_TIME_STATUS &b)
 Assignment: don't clobber an existing deprecation, first one wins. More...
 
void squelch_deprecation ()
 

Public Attributes

int warnings {0}
 
unsigned int fractional_digits {0}
 
unsigned int nanoseconds {0}
 
struct MYSQL_TIME_STATUS::DEPRECATION m_deprecation
 Register wrong delimiter if it's the first we see for this value. More...
 

Detailed Description

Structure to return status from str_to_datetime(), str_to_time(), number_to_datetime(), number_to_time()

Note
Implicit default constructor initializes all members to 0.

Constructor & Destructor Documentation

◆ MYSQL_TIME_STATUS() [1/2]

MYSQL_TIME_STATUS::MYSQL_TIME_STATUS ( )
default

◆ MYSQL_TIME_STATUS() [2/2]

MYSQL_TIME_STATUS::MYSQL_TIME_STATUS ( const MYSQL_TIME_STATUS )
default

Member Function Documentation

◆ operator=()

MYSQL_TIME_STATUS & MYSQL_TIME_STATUS::operator= ( const MYSQL_TIME_STATUS b)
inline

Assignment: don't clobber an existing deprecation, first one wins.

◆ set_deprecation()

void MYSQL_TIME_STATUS::set_deprecation ( DEPRECATION::DEPR_KIND  kind,
const char *  arg,
const char *  end,
const char *  delim,
bool  colon = false 
)
inline

◆ squelch_deprecation()

void MYSQL_TIME_STATUS::squelch_deprecation ( )
inline

Member Data Documentation

◆ fractional_digits

unsigned int MYSQL_TIME_STATUS::fractional_digits {0}

◆ m_deprecation

struct MYSQL_TIME_STATUS::DEPRECATION MYSQL_TIME_STATUS::m_deprecation

Register wrong delimiter if it's the first we see for this value.

Parameters
kindwhat kind of deprecation did we see
argthe string we try to interpret as a datetime value
endpoints to the character after arg, usually a '\0'
delimwhat delimiter was used
colonused if kind==DP_WRONG_KIND. true: expect ':' else expect'-'

◆ nanoseconds

unsigned int MYSQL_TIME_STATUS::nanoseconds {0}

◆ warnings

int MYSQL_TIME_STATUS::warnings {0}

The documentation for this struct was generated from the following file: