Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ jobs:
steps:
- uses: actions/checkout@v2
- run: docker compose up -d
- uses: julia-actions/setup-julia@v1
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v1
- uses: actions/cache@v4
env:
cache-name: cache-artifacts
with:
Expand Down
2 changes: 2 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ DecFP = "55939f99-70c6-5e9b-8bb0-5071ed7d61fd"
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
MariaDB_Connector_C_jll = "aabc7e14-95f1-5e66-9f32-aea603782360"
Parsers = "69de0a69-1ddd-5017-9359-2bf0b02dc9f0"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"

[compat]
DBInterface = "2.5"
DecFP = "0.4.9, 0.4.10, 1"
MariaDB_Connector_C_jll = "3.1.12"
Parsers = "0.3, 1, 2"
Random = "1.11.0"
Tables = "1"
julia = "1.6"

Expand Down
1 change: 1 addition & 0 deletions src/MySQL.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module MySQL

using Dates, DBInterface, Tables, Parsers, DecFP
import DBInterface: transaction
import Random

export DBInterface, DateAndTime

Expand Down
6 changes: 5 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ for nm in keys(res)
@test isequal(res[nm], expected[nm][1:4])
end

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

# now test insert/parameter binding
DBInterface.execute(conn, "DELETE FROM Employee")
Expand Down Expand Up @@ -299,7 +303,7 @@ res, st = state
ret = columntable(res)
@test length(ret[1]) == 5
state = iterate(results, st)
@test state !== nothing
@test state !== nothing
res, st = state
@test !st
@test length(res) == 4
Expand Down
Loading