Skip to content

Commit e43f367

Browse files
committed
tests: drop dead _server_is_v2
1 parent 60d0ac2 commit e43f367

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

test/test_type_roundtrip.jl

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,6 @@ function _roundtrip(db, id::String, value)
3939
return row["v"]
4040
end
4141

42-
# SurrealDB v2 rejects strings containing NUL bytes with "Parse error" at the
43-
# SurrealQL level (server-side limitation, fixed in v3). Detect once per
44-
# testset to gate the NUL-byte assertion.
45-
function _server_is_v2(db)
46-
try
47-
v = SurrealDB.version(db)
48-
ver = v isa NamedTuple ? v.version : string(v)
49-
return occursin(r"surrealdb-2\.", ver)
50-
catch
51-
return false
52-
end
53-
end
5442

5543
@testset "scalar types" begin
5644
db = _rt_client()

0 commit comments

Comments
 (0)