Skip to content

Commit a5a01c1

Browse files
quinnjclaude
andcommitted
Fix test: handle Type column returned as Vector{UInt8}
The SHOW COLUMNS query returns the Type column as Vector{UInt8} (binary) rather than String. Convert to String before comparison. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent e7d526b commit a5a01c1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

test/runtests.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,10 @@ ct225 = (
169169
)
170170
MySQL.load(ct225, conn, "test225"; coltypes=Dict(:data => "LONGBLOB"), debug=true)
171171
col_info = DBInterface.execute(conn, "SHOW COLUMNS FROM test225 WHERE Field = 'data'") |> columntable
172-
@test lowercase(col_info.Type[1]) == "longblob"
172+
# Type column may be returned as Vector{UInt8} or String depending on MySQL version
173+
col_type = col_info.Type[1]
174+
col_type_str = col_type isa Vector{UInt8} ? String(col_type) : col_type
175+
@test lowercase(col_type_str) == "longblob"
173176
# Also verify data roundtrips correctly
174177
ct225_roundtrip = DBInterface.execute(conn, "SELECT * FROM test225") |> columntable
175178
@test ct225_roundtrip.data == ct225.data

0 commit comments

Comments
 (0)