v0.0.359 fix tests
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 2m18s
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 2m18s
This commit is contained in:
parent
42bd4cf58d
commit
8757643399
@ -1,5 +1,5 @@
|
|||||||
package goext
|
package goext
|
||||||
|
|
||||||
const GoextVersion = "0.0.358"
|
const GoextVersion = "0.0.359"
|
||||||
|
|
||||||
const GoextVersionTimestamp = "2024-01-05T16:53:14+0100"
|
const GoextVersionTimestamp = "2024-01-05T16:55:53+0100"
|
||||||
|
@ -39,7 +39,9 @@ func TestCreateUpdateStatement(t *testing.T) {
|
|||||||
JsonVal JsonObj `json:"jsonVal" db:"json_val"`
|
JsonVal JsonObj `json:"jsonVal" db:"json_val"`
|
||||||
}
|
}
|
||||||
|
|
||||||
sqlite.RegisterAsSQLITE3()
|
if !langext.InArray("sqlite3", sql.Drivers()) {
|
||||||
|
sqlite.RegisterAsSQLITE3()
|
||||||
|
}
|
||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
|
|
||||||
|
@ -2,6 +2,7 @@ package sq
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"database/sql"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/glebarez/go-sqlite"
|
"github.com/glebarez/go-sqlite"
|
||||||
"github.com/jmoiron/sqlx"
|
"github.com/jmoiron/sqlx"
|
||||||
@ -20,7 +21,9 @@ func TestTypeConverter1(t *testing.T) {
|
|||||||
Timestamp time.Time `db:"timestamp"`
|
Timestamp time.Time `db:"timestamp"`
|
||||||
}
|
}
|
||||||
|
|
||||||
sqlite.RegisterAsSQLITE3()
|
if !langext.InArray("sqlite3", sql.Drivers()) {
|
||||||
|
sqlite.RegisterAsSQLITE3()
|
||||||
|
}
|
||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
|
|
||||||
@ -48,15 +51,15 @@ func TestTypeConverter1(t *testing.T) {
|
|||||||
|
|
||||||
func TestTypeConverter2(t *testing.T) {
|
func TestTypeConverter2(t *testing.T) {
|
||||||
|
|
||||||
sqlite.RegisterAsSQLITE3()
|
if !langext.InArray("sqlite3", sql.Drivers()) {
|
||||||
|
sqlite.RegisterAsSQLITE3()
|
||||||
|
}
|
||||||
|
|
||||||
type RequestData struct {
|
type RequestData struct {
|
||||||
ID string `db:"id"`
|
ID string `db:"id"`
|
||||||
Timestamp rfctime.UnixMilliTime `db:"timestamp"`
|
Timestamp rfctime.UnixMilliTime `db:"timestamp"`
|
||||||
}
|
}
|
||||||
|
|
||||||
sqlite.RegisterAsSQLITE3()
|
|
||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
|
|
||||||
dbdir := t.TempDir()
|
dbdir := t.TempDir()
|
||||||
|
Loading…
Reference in New Issue
Block a user