MySQL 9.1.0
Source Code Documentation
s_mysql_mysql_stmt_get_time Struct Reference

A service that provides the API for get time value from a row. More...

#include <mysql_statement_service.h>

Public Attributes

mysql_service_status_t(* get )(my_h_row row, uint32_t column_index, mle_time *time, bool *is_null)
 Get time at column_index from a row. More...
 

Detailed Description

A service that provides the API for get time value from a row.

auto result = Time_t{}; auto is_null = false;

if (SERVICE_PLACEHOLDER(mysql_stmt_get_time) ->get(row, column_index, &result.hour, &result.minute, &result.second, &result.microseconds, &result.negative, &is_null) == MYSQL_FAILURE) return {};

Member Data Documentation

◆ get

mysql_service_status_t(* s_mysql_mysql_stmt_get_time::get) (my_h_row row, uint32_t column_index, mle_time *time, bool *is_null)

Get time at column_index from a row.

Parameters
[in]rowThe row handle
[in]column_index0-based index at which the data is extracted
[out]timestructure representing temporal type
[out]is_nullFlag to indicate if value is null
Returns
Status of the performed operation
Return values
falsesuccess
truefailure

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