mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MYSQL_TIME handling - client
Remove get_binary_length Enable the clients to work wih date,time and ts directly with binary protocol
This commit is contained in:
@ -470,6 +470,24 @@ int STDCALL mysql_manager_fetch_line(MYSQL_MANAGER* con,
|
||||
/* statement state */
|
||||
enum PREP_STMT_STATE { MY_ST_UNKNOWN, MY_ST_PREPARE, MY_ST_EXECUTE };
|
||||
|
||||
/*
|
||||
client TIME structure to handle TIME, DATE and TIMESTAMP directly in
|
||||
binary protocol
|
||||
*/
|
||||
enum mysql_st_timestamp_type { MYSQL_TIMESTAMP_NONE, MYSQL_TIMESTAMP_DATE,
|
||||
MYSQL_TIMESTAMP_FULL, MYSQL_TIMESTAMP_TIME };
|
||||
|
||||
typedef struct mysql_st_time
|
||||
{
|
||||
unsigned int year,month,day,hour,minute,second;
|
||||
unsigned long second_part;
|
||||
my_bool neg;
|
||||
|
||||
enum mysql_st_timestamp_type time_type;
|
||||
|
||||
} MYSQL_TIME;
|
||||
|
||||
|
||||
/* bind structure */
|
||||
typedef struct st_mysql_bind
|
||||
{
|
||||
|
Reference in New Issue
Block a user