2112
2112
LOG_EVENT_HEADER_LEN), except FORMAT_DESCRIPTION_EVENT and ROTATE_EVENT
2113
2113
(those have a header of size LOG_EVENT_MINIMAL_HEADER_LEN).
2115
uint8 common_header_len;
2116
uint8 number_of_event_types;
2115
uint8_t common_header_len;
2116
uint8_t number_of_event_types;
2117
2117
/* The list of post-headers' lengthes */
2118
uint8 *post_header_len;
2118
uint8_t *post_header_len;
2119
2119
uchar server_version_split[3];
2120
const uint8 *event_type_permutation;
2120
const uint8_t *event_type_permutation;
2122
Format_description_log_event(uint8 binlog_ver, const char* server_ver=0);
2122
Format_description_log_event(uint8_t binlog_ver, const char* server_ver=0);
2123
2123
Format_description_log_event(const char* buf, uint event_len,
2124
2124
const Format_description_log_event
2125
2125
*description_event);
3000
<td>MYSQL_TYPE_TINY</td><td>1</td>
3002
<td>No column metadata.</td>
3006
<td>MYSQL_TYPE_SHORT</td><td>2</td>
3008
<td>No column metadata.</td>
3012
<td>MYSQL_TYPE_LONG</td><td>3</td>
3014
<td>No column metadata.</td>
3018
<td>MYSQL_TYPE_DOUBLE</td><td>5</td>
3000
<td>DRIZZLE_TYPE_TINY</td><td>1</td>
3002
<td>No column metadata.</td>
3006
<td>DRIZZLE_TYPE_SHORT</td><td>2</td>
3008
<td>No column metadata.</td>
3012
<td>DRIZZLE_TYPE_LONG</td><td>3</td>
3014
<td>No column metadata.</td>
3018
<td>DRIZZLE_TYPE_DOUBLE</td><td>5</td>
3019
3019
<td>1 byte</td>
3020
3020
<td>1 byte unsigned integer, representing the "pack_length", which
3021
3021
is equal to sizeof(double) on the server from which the event
3026
<td>MYSQL_TYPE_NULL</td><td>6</td>
3028
<td>No column metadata.</td>
3032
<td>MYSQL_TYPE_TIMESTAMP</td><td>7</td>
3034
<td>No column metadata.</td>
3038
<td>MYSQL_TYPE_LONGLONG</td><td>8</td>
3040
<td>No column metadata.</td>
3044
<td>MYSQL_TYPE_DATE</td><td>10</td>
3046
<td>No column metadata.</td>
3050
<td>MYSQL_TYPE_TIME</td><td>11</td>
3052
<td>No column metadata.</td>
3056
<td>MYSQL_TYPE_DATETIME</td><td>12</td>
3058
<td>No column metadata.</td>
3062
<td>MYSQL_TYPE_YEAR</td><td>13</td>
3064
<td>No column metadata.</td>
3068
<td><i>MYSQL_TYPE_NEWDATE</i></td><td><i>14</i></td>
3026
<td>DRIZZLE_TYPE_NULL</td><td>6</td>
3028
<td>No column metadata.</td>
3032
<td>DRIZZLE_TYPE_TIMESTAMP</td><td>7</td>
3034
<td>No column metadata.</td>
3038
<td>DRIZZLE_TYPE_LONGLONG</td><td>8</td>
3040
<td>No column metadata.</td>
3044
<td>DRIZZLE_TYPE_DATE</td><td>10</td>
3046
<td>No column metadata.</td>
3050
<td>DRIZZLE_TYPE_TIME</td><td>11</td>
3052
<td>No column metadata.</td>
3056
<td>DRIZZLE_TYPE_DATETIME</td><td>12</td>
3058
<td>No column metadata.</td>
3062
<td>DRIZZLE_TYPE_YEAR</td><td>13</td>
3064
<td>No column metadata.</td>
3068
<td><i>DRIZZLE_TYPE_NEWDATE</i></td><td><i>14</i></td>
3069
3069
<td>–</td>
3070
3070
<td><i>This enumeration value is only used internally and cannot
3071
3071
exist in a binlog.</i></td>
3075
<td>MYSQL_TYPE_VARCHAR</td><td>15</td>
3075
<td>DRIZZLE_TYPE_VARCHAR</td><td>15</td>
3076
3076
<td>2 bytes</td>
3077
3077
<td>2 byte unsigned integer representing the maximum length of
3078
3078
the string.</td>
3082
<td>MYSQL_TYPE_NEWDECIMAL</td><td>246</td>
3082
<td>DRIZZLE_TYPE_NEWDECIMAL</td><td>246</td>
3083
3083
<td>2 bytes</td>
3084
3084
<td>A 1 byte unsigned int representing the precision, followed
3085
3085
by a 1 byte unsigned int representing the number of decimals.</td>
3089
<td><i>MYSQL_TYPE_ENUM</i></td><td><i>247</i></td>
3091
<td><i>This enumeration value is only used internally and cannot
3092
exist in a binlog.</i></td>
3096
<td><i>MYSQL_TYPE_SET</i></td><td><i>248</i></td>
3098
<td><i>This enumeration value is only used internally and cannot
3099
exist in a binlog.</i></td>
3103
<td>MYSQL_TYPE_BLOB</td><td>252</td>
3089
<td><i>DRIZZLE_TYPE_ENUM</i></td><td><i>247</i></td>
3091
<td><i>This enumeration value is only used internally and cannot
3092
exist in a binlog.</i></td>
3096
<td><i>DRIZZLE_TYPE_SET</i></td><td><i>248</i></td>
3098
<td><i>This enumeration value is only used internally and cannot
3099
exist in a binlog.</i></td>
3103
<td>DRIZZLE_TYPE_BLOB</td><td>252</td>
3104
3104
<td>1 byte</td>
3105
3105
<td>The pack length, i.e., the number of bytes needed to represent
3106
3106
the length of the blob: 1, 2, 3, or 4.</td>
3110
<td>MYSQL_TYPE_STRING</td><td>254</td>
3110
<td>DRIZZLE_TYPE_STRING</td><td>254</td>
3111
3111
<td>2 bytes</td>
3112
<td>The first byte is always MYSQL_TYPE_VAR_STRING (i.e., 253).
3112
<td>The first byte is always DRIZZLE_TYPE_VAR_STRING (i.e., 253).
3113
3113
The second byte is the field size, i.e., the number of bytes in
3114
3114
the representation of size of the string: 3 or 4.</td>