Skip to content

Commit 9082b6a

Browse files
committed
Bug#29948925: Change literal value for enum MYSQL_TYPE_TYPED_ARRAY
Enum MYSQL_TYPE_TYPED_ARRAY is never exposed to a client, and is generally not used in type compatibility handling. Hence it makes sense to group it with the other non-exposed fields like MYSQL_TYPE_TIME2 instead of the higher values like MYSQL_TYPE_JSON. Reviewed by: Evgeny Potemkin <[email protected]>
1 parent f4c120c commit 9082b6a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/field_types.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ enum enum_field_types
7272
MYSQL_TYPE_VARCHAR,
7373
MYSQL_TYPE_BIT,
7474
MYSQL_TYPE_TIMESTAMP2,
75-
MYSQL_TYPE_DATETIME2, /**< Internal to MySQL. Not used in protocol */
76-
MYSQL_TYPE_TIME2, /**< Internal to MySQL. Not used in protocol */
77-
MYSQL_TYPE_TYPED_ARRAY = 244, /** Used for replication only */
75+
MYSQL_TYPE_DATETIME2, /**< Internal to MySQL. Not used in protocol */
76+
MYSQL_TYPE_TIME2, /**< Internal to MySQL. Not used in protocol */
77+
MYSQL_TYPE_TYPED_ARRAY, /**< Used for replication only */
7878
MYSQL_TYPE_JSON = 245,
7979
MYSQL_TYPE_NEWDECIMAL = 246,
8080
MYSQL_TYPE_ENUM = 247,

include/mysql.h.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
MYSQL_TYPE_TIMESTAMP2,
2323
MYSQL_TYPE_DATETIME2,
2424
MYSQL_TYPE_TIME2,
25-
MYSQL_TYPE_TYPED_ARRAY = 244,
25+
MYSQL_TYPE_TYPED_ARRAY,
2626
MYSQL_TYPE_JSON = 245,
2727
MYSQL_TYPE_NEWDECIMAL = 246,
2828
MYSQL_TYPE_ENUM = 247,

0 commit comments

Comments
 (0)