USER_VAR_EVENT
The USER_VAR_EVENT logs the value of a user-defined variable, ensuring that statements using variables replicate consistently.
A USER_VAR_EVENT is written every time a statement uses a user defined variable.
Header
Event Type is
14(0x0e).
Fields
uint<4> The length of the user variable name.
string The name of the user variable.
uint<1>
NULLindicator.
Variable type
Value
Type
Example
0x00
STRING_RESULT
set @a:="foo"
0x01
REAL_RESULT
set @a:= @@timestamp
0x02
INT_RESULT
set @a:= 4
0x03
ROW_RESULT
(not in use)
0x04
DECIMAL_RESULT
set @a:=1.2345
Flag
0x01
unsigned
Example for SET @foo:="bar" From mysqlbinlog Utility, CRC32
SET @foo:="bar" From mysqlbinlog Utility, CRC32Example Event as Written to the Binlog File
This page is licensed: CC BY-SA / Gnu FDL
Last updated
Was this helpful?

