Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitacf7f83

Browse files
authored
import Random as it is used in the load function (#227)
* add test for Random* setup-julia v2* upgarde cache to v4* re trigger CI
1 parent0e8ab56 commitacf7f83

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

‎.github/workflows/ci.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ jobs:
2222
steps:
2323
-uses:actions/checkout@v2
2424
-run:docker compose up -d
25-
-uses:julia-actions/setup-julia@v1
25+
-uses:julia-actions/setup-julia@v2
2626
with:
2727
version:${{ matrix.version }}
2828
arch:${{ matrix.arch }}
29-
-uses:actions/cache@v1
29+
-uses:actions/cache@v4
3030
env:
3131
cache-name:cache-artifacts
3232
with:

‎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: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ for nm in keys(res)
156156
@testisequal(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")
@@ -299,7 +303,7 @@ res, st = state
299303
ret=columntable(res)
300304
@testlength(ret[1])==5
301305
state=iterate(results, st)
302-
@test state!==nothing
306+
@test state!==nothing
303307
res, st= state
304308
@test!st
305309
@testlength(res)==4

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp