Skip to content

Commit d08c577

Browse files
committed
add test for Random
1 parent 0e8ab56 commit d08c577

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ DecFP = "55939f99-70c6-5e9b-8bb0-5071ed7d61fd"
1010
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
1111
MariaDB_Connector_C_jll = "aabc7e14-95f1-5e66-9f32-aea603782360"
1212
Parsers = "69de0a69-1ddd-5017-9359-2bf0b02dc9f0"
13+
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
1314
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
1415

1516
[compat]
1617
DBInterface = "2.5"
1718
DecFP = "0.4.9, 0.4.10, 1"
1819
MariaDB_Connector_C_jll = "3.1.12"
1920
Parsers = "0.3, 1, 2"
21+
Random = "1.11.0"
2022
Tables = "1"
2123
julia = "1.6"
2224

src/MySQL.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ module MySQL
22

33
using Dates, DBInterface, Tables, Parsers, DecFP
44
import DBInterface: transaction
5+
import Random
56

67
export DBInterface, DateAndTime
78

test/runtests.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ for nm in keys(res)
156156
@test isequal(res[nm], expected[nm][1:4])
157157
end
158158

159+
#https://github.com/JuliaDatabases/MySQL.jl/issues/226
160+
ct0 = (x = UInt8[1, 22, 23],)
161+
MySQL.load(ct0,conn, debug=true)
162+
#there is no @test invocation here; but the above call failed due to Random not being imported
159163

160164
# now test insert/parameter binding
161165
DBInterface.execute(conn, "DELETE FROM Employee")

0 commit comments

Comments
 (0)