USER_VAR_EVENT

You are viewing an old version of this article. View the current version here.

A USER_VAR_EVENT is written every time a statement uses a user defined variable.

  • Event Type is 14 (0x0e)

Fields

Variable type

0x00STRING_RESULT
0x01REAL_RESULT
0x02INT_RESULT
0x03ROW_RESULT
0x04DECIMAL_RESULT

Flag

0x01unsigned

Example From mysqlbinlog Utility, CRC32

# at 511
#180610 10:26:43 server id 1  end_log_pos 554 CRC32 0x7dd93d6b 	User_var
SET @`foo`:=_utf8 X'626172' COLLATE `utf8_general_ci`/*!*/;

Example Event As It's Written In The Binlog File

               c3 e0 1c 5b 0e 01 00 00 00 2b 00       ...[.....+.
00 00 2a 02 00 00 00 00 03 00 00 00 66 6f 6f 00  ..*.........foo.
00 21 00 00 00 03 00 00 00 62 61 72 6b 3d d9 7d  .!.......bark=.}                                          ....

Comments

Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.