Skip to content

Can't convert Bool to Int32 (TINYINT) #782

@danielgindi

Description

@danielgindi

With Oracle's MySql.Data, when you read a TINYINT column - you can read it as a bool or as an Int32 - either way works.

And it only makes sense as TINYINT is not explicitly a boolean, it's just so tiny that it can only hold 0 or 1... And it's called TINYINT.

Seems like an easy fix.

It currently throws: Can't convert Bool to Int32
From: MySqlConnector\Core\Row.cs:line 224

For me - this was an unexpected breaking change when trying the transition to this library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions