Skip to content

MySQL.load bug with unsigned ints #194

@jeffpollock9

Description

@jeffpollock9

Hello, I think I have found an issue with writing usigned integers from a DataFrame to a db, I have tried to display this in the following example:

julia> using MySQL, DataFrames, DBInterface

julia> df = DataFrame(x = UInt8[1, 2, 3])
3×1 DataFrame
 Row │ x
     │ UInt8
─────┼───────
   11
   22
   33

julia> conn = DBInterface.connect(MySQL.Connection, ...)

julia> MySQL.load(df, conn, "test")
"`test`"

julia> DataFrame(DBInterface.execute(conn, "select * from test"))
3×1 DataFrame
 Row │ x
     │ UInt8?
─────┼────────
   11
   20
   31

Any help with the issue would be great, and I could perhaps help by writing test cases for a PR if that would help?

Thanks!

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