Skip to content

Commit 706da5f

Browse files
committed
✅ Use interface{} instead of any to compile in go 1.17
1 parent 3a24482 commit 706da5f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/sqlite3_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func TestWithSqlite3(t *testing.T) {
2929
Level string
3030
Msg string
3131
Query string
32-
Args []any
32+
Args []interface{}
3333
Duration float64
3434
Error string
3535
}
@@ -44,7 +44,7 @@ func TestWithSqlite3(t *testing.T) {
4444
tests := []struct {
4545
name string
4646
query string
47-
args []any
47+
args []interface{}
4848
level string
4949
msg string
5050
error string
@@ -58,7 +58,7 @@ func TestWithSqlite3(t *testing.T) {
5858
{
5959
name: "INSERT",
6060
query: "INSERT INTO users (name, age) VALUES (?, ?)",
61-
args: []any{"alice", float64(20)},
61+
args: []interface{}{"alice", float64(20)},
6262
level: "INFO",
6363
msg: "ExecContext",
6464
},
@@ -72,7 +72,7 @@ func TestWithSqlite3(t *testing.T) {
7272
{
7373
name: "unique constraint",
7474
query: "INSERT INTO users (name, age) VALUES (?, ?)",
75-
args: []any{"alice", float64(40)},
75+
args: []interface{}{"alice", float64(40)},
7676
level: "ERROR",
7777
msg: "ExecContext",
7878
error: "UNIQUE constraint failed",

0 commit comments

Comments
 (0)