You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MariaDB version 11 is incompatible with MySQL - String columns are detected as Dec64 #208
column types are not correctly inferred when updating mariadb to version 11.
It's probably worthwhile switching to the latest mariadb c connector
with MariaDB Server 10:
julia>DataFrame(DBInterface.execute(conn, "select * from `benutzer`"))
2×1 DataFrame
Row │ uname
│ String?
─────┼─────────
1 │ test
2 │ rest
with MariaDB Server 11:
julia> DBInterface.execute(conn, "select * from `benutzer`") |> DataFrame
ERROR: ArgumentError: invalid number format test
Stacktrace:
[1] parse(#unused#::Type{DecFP.Dec64}, s::String)
@ DecFP C:\Users\helmu\.julia\packages\DecFP\Cud5F\src\DecFP.jl:323
If I store strings that can be parsed as numbers in the field 'uname' the columns are indeed read as Dec64.
Fixed in v2.0.0. Column types now come from the wire column definitions rather than the C connector's field reports; mariadb:11.4 is a CI lane. String columns decode to DataString and DECIMAL columns to MySQL.DecimalResult (exact). Migration guide: https://github.com/JuliaDatabases/MySQL.jl/blob/main/docs/src/migration.md
Activity
pascalr0410 commentedon Aug 11, 2023
Hello,
Same here, must fall back on branch 10 of MariaDb.
The C Lib used seems quite old, released in December. 2019.
In fact, after some debugging, the library returns a zero in field_type, causing it to be misinterpreted as Dec64
/src/MySQL.jl
Regards,
Pascal.
MySQL.jl 2.0: native Julia wire-protocol client (Connector/C removed) (…
quinnj commentedon Sep 9, 2026
Fixed in v2.0.0. Column types now come from the wire column definitions rather than the C connector's field reports; mariadb:11.4 is a CI lane. String columns decode to
DataStringandDECIMALcolumns toMySQL.DecimalResult(exact). Migration guide: https://github.com/JuliaDatabases/MySQL.jl/blob/main/docs/src/migration.md