This is an automated email from the ASF dual-hosted git repository.
wuweijie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 2c78c8d Use hex to represent MySQLColumnFieldDetailFlag value (#13313)
2c78c8d is described below
commit 2c78c8d69c5bf1328bee6fef8d97bd28c61a13ae
Author: Cheng Pan <[email protected]>
AuthorDate: Wed Oct 27 18:28:27 2021 +0800
Use hex to represent MySQLColumnFieldDetailFlag value (#13313)
---
.../command/query/MySQLColumnFieldDetailFlag.java | 30 +++++++++++-----------
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git
a/shardingsphere-db-protocol/shardingsphere-db-protocol-mysql/src/main/java/org/apache/shardingsphere/db/protocol/mysql/packet/command/query/MySQLColumnFieldDetailFlag.java
b/shardingsphere-db-protocol/shardingsphere-db-protocol-mysql/src/main/java/org/apache/shardingsphere/db/protocol/mysql/packet/command/query/MySQLColumnFieldDetailFlag.java
index 77e545b..d086446 100644
---
a/shardingsphere-db-protocol/shardingsphere-db-protocol-mysql/src/main/java/org/apache/shardingsphere/db/protocol/mysql/packet/command/query/MySQLColumnFieldDetailFlag.java
+++
b/shardingsphere-db-protocol/shardingsphere-db-protocol-mysql/src/main/java/org/apache/shardingsphere/db/protocol/mysql/packet/command/query/MySQLColumnFieldDetailFlag.java
@@ -29,35 +29,35 @@ import lombok.RequiredArgsConstructor;
@Getter
public enum MySQLColumnFieldDetailFlag {
- NOT_NULL(1),
+ NOT_NULL(0x00000001),
- PRIMARY_KEY(2),
+ PRIMARY_KEY(0x00000002),
- UNIQUE_KEY(4),
+ UNIQUE_KEY(0x00000004),
- MULTIPLE_KEY(8),
+ MULTIPLE_KEY(0x00000008),
- BLOB(16),
+ BLOB(0x00000010),
- UNSIGNED(32),
+ UNSIGNED(0x00000020),
- ZEROFILL_FLAG(64),
+ ZEROFILL_FLAG(0x00000040),
- BINARY_COLLATION(128),
+ BINARY_COLLATION(0x00000080),
- ENUM(256),
+ ENUM(0x00000100),
- AUTO_INCREMENT(512),
+ AUTO_INCREMENT(0x00000200),
- TIMESTAMP(1024),
+ TIMESTAMP(0x00000400),
- SET(2048),
+ SET(0x00000800),
- NO_DEFAULT_VALUE_FLAG(4096),
+ NO_DEFAULT_VALUE_FLAG(0x00001000),
- ON_UPDATE_NOW_FLAG(8192),
+ ON_UPDATE_NOW_FLAG(0x00002000),
- NUM_FLAG(32768);
+ NUM_FLAG(0x00008000);
private final int value;
}