private int readColumnMetaDef()

in db-protocol/mysql/src/main/java/org/apache/shardingsphere/db/protocol/mysql/packet/binlog/row/MySQLBinlogTableMapEventPacket.java [88:111]


    private int readColumnMetaDef(final MySQLBinaryColumnType columnType, final MySQLPacketPayload payload) {
        switch (columnType) {
            case STRING:
            case DECIMAL:
            case NEWDECIMAL:
                return payload.getByteBuf().readUnsignedShort();
            case BIT:
            case VAR_STRING:
            case VARCHAR:
            case ENUM:
                return payload.readInt2();
            case BLOB:
            case TINY_BLOB:
            case DOUBLE:
            case FLOAT:
            case TIME2:
            case TIMESTAMP2:
            case DATETIME2:
            case JSON:
                return payload.readInt1();
            default:
                return 0;
        }
    }