Thanks for the replies. I thought that Dataframes did’nt cast types as well it is probaly the DBInterface. This is the full stacktrace. The columnames are obfuscated and replaced by :Columns.
[1] error(s::String)
@ Base .\error.jl:33
[2] casterror(T::Type, ptr::Ptr{UInt8}, len::UInt32)
@ MySQL C:\Users\lheinz\.julia\packages\MySQL\0vHyV\src\execute.jl:53
[3] cast(#unused#::Type{DateTime}, ptr::Ptr{UInt8}, len::UInt32)
@ MySQL C:\Users\lheinz\.julia\packages\MySQL\0vHyV\src\execute.jl:76
[4] cast
@ C:\Users\lheinz\.julia\packages\MySQL\0vHyV\src\execute.jl:32 [inlined]
[5] getcolumn
@ C:\Users\lheinz\.julia\packages\MySQL\0vHyV\src\execute.jl:100 [inlined]
[6] eachcolumns
@ C:\Users\lheinz\.julia\packages\Tables\PxO1m\src\utils.jl:111 [inlined]
[7] buildcolumns(schema::Tables.Schema{(:Columnames), Tuple{String, Union{Missing, String}, Union{Missing, String}, Union{Missing, String}, Union{Missing, String}, Union{Missing, String}, Union{Missing, String}, Union{Missing, String}, Union{Missing, String}, Union{Missing, DateTime}}}, rowitr::MySQL.TextCursor{true})
@ Tables C:\Users\lheinz\.julia\packages\Tables\PxO1m\src\fallbacks.jl:135
[8] columns
@ C:\Users\lheinz\.julia\packages\Tables\PxO1m\src\fallbacks.jl:251 [inlined]
[9] DataFrame(x::MySQL.TextCursor{true}; copycols::Nothing)
@ DataFrames C:\Users\lheinz\.julia\packages\DataFrames\MA4YO\src\other\tables.jl:58
[10] DataFrame(x::MySQL.TextCursor{true})
@ DataFrames C:\Users\lheinz\.julia\packages\DataFrames\MA4YO\src\other\tables.jl:49
[11] top-level scope
@ c:\Users\lheinz\FlowDashboard.jl\test.jl:40
in expression starting at c:\Users\lheinz\FlowDashboard.jl\test.jl:40
Thanks for all the help