My Project
Public Member Functions | Public Attributes
Intvar_log_event Class Reference

#include <log_event.h>

Inheritance diagram for Intvar_log_event:
Log_event

List of all members.

Public Member Functions

void print (FILE *file, PRINT_EVENT_INFO *print_event_info)
 Intvar_log_event (const char *buf, const Format_description_log_event *description_event)
Log_event_type get_type_code ()
const char * get_var_type_name ()
int get_data_size ()
bool is_valid () const

Public Attributes

ulonglong val
uchar type

Detailed Description

An Intvar_log_event will be created just before a Query_log_event, if the query uses one of the variables LAST_INSERT_ID or INSERT_ID. Each Intvar_log_event holds the value of one of these variables.

Binary Format

The Post-Header for this event type is empty. The Body has two components:

Body for Intvar_log_event
Name Format

Description

type 1 byte enumeration

One byte identifying the type of variable stored. Currently, two identifiers are supported: LAST_INSERT_ID_EVENT==1 and INSERT_ID_EVENT==2.

value 8 byte unsigned integer

The value of the variable.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines