Skip to content

Reading u8 gives back a mysql_async::Value::Bytes #379

@barsdeveloper

Description

@barsdeveloper

Hello, I have this table in Mysql with a u8 field (I am writing unit tests)

CREATE TABLE IF NOT EXISTS `simple_fields` (
`alpha` TINYINT UNSIGNED PRIMARY KEY,
`bravo` INTEGER,
`charlie` SMALLINT,
`delta` BIGINT UNSIGNED,
`echo` CHAR(36),
`foxtrot` NUMERIC(39),
`golf` TIME,
`hotel` TEXT,
`india` CHAR(1),
`juliet` BOOLEAN,
`kilo` INTEGER UNSIGNED,
`lima` FLOAT,
`mike` DATE,
`november` DECIMAL(4,2),
`oscar` DECIMAL(8,3),
`papa` DECIMAL(20,1));

The I execute a insert query , then try to get back a row. The problem is that for some reason, the TINYINT alpha maps to Bytes, not UInt (or Int for the matter). I feel like this might be a bug.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions