MySQL 9.1.0
Source Code Documentation
Field_value Struct Reference

#include <sql_resultset.h>

Public Member Functions

 Field_value ()
 
 Field_value (const Field_value &other)
 
 Field_value (const longlong &num, bool unsign=false)
 
 Field_value (const decimal_t &decimal)
 
 Field_value (const double num)
 
 Field_value (const MYSQL_TIME &time)
 
 Field_value (const char *str, size_t length)
 
Field_valueoperator= (const Field_value &other)
 
 ~Field_value ()
 

Public Attributes

union {
   longlong   v_long
 
   double   v_double
 
   decimal_t   v_decimal
 
   MYSQL_TIME   v_time
 
   char *   v_string
 
value
 
size_t v_string_length
 
bool is_unsigned
 
bool has_ptr
 

Private Member Functions

void copy_string (const char *str, size_t length)
 

Constructor & Destructor Documentation

◆ Field_value() [1/7]

Field_value::Field_value ( )

◆ Field_value() [2/7]

Field_value::Field_value ( const Field_value other)

◆ Field_value() [3/7]

Field_value::Field_value ( const longlong num,
bool  unsign = false 
)

◆ Field_value() [4/7]

Field_value::Field_value ( const decimal_t decimal)

◆ Field_value() [5/7]

Field_value::Field_value ( const double  num)

◆ Field_value() [6/7]

Field_value::Field_value ( const MYSQL_TIME time)

◆ Field_value() [7/7]

Field_value::Field_value ( const char *  str,
size_t  length 
)

◆ ~Field_value()

Field_value::~Field_value ( )

Member Function Documentation

◆ copy_string()

void Field_value::copy_string ( const char *  str,
size_t  length 
)
private

◆ operator=()

Field_value & Field_value::operator= ( const Field_value other)

Member Data Documentation

◆ has_ptr

bool Field_value::has_ptr

◆ is_unsigned

bool Field_value::is_unsigned

◆ v_decimal

decimal_t Field_value::v_decimal

◆ v_double

double Field_value::v_double

◆ v_long

longlong Field_value::v_long

◆ v_string

char* Field_value::v_string

◆ v_string_length

size_t Field_value::v_string_length

◆ v_time

MYSQL_TIME Field_value::v_time

◆ 

union { ... } Field_value::value

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