2023-06-07 12:00:46 +01:00
|
|
|
diff --git a/tests/.gitignore b/tests/.gitignore
|
|
|
|
|
index 08cb523..72e8ffc 100644
|
|
|
|
|
--- a/tests/.gitignore
|
|
|
|
|
+++ b/tests/.gitignore
|
|
|
|
|
@@ -1 +1 @@
|
|
|
|
|
-go.sum
|
|
|
|
|
+*
|
|
|
|
|
diff --git a/tests/go.mod b/tests/go.mod
|
2023-06-07 12:28:21 +01:00
|
|
|
index f47d175..84b80c2 100644
|
2023-06-07 12:00:46 +01:00
|
|
|
--- a/tests/go.mod
|
|
|
|
|
+++ b/tests/go.mod
|
2023-06-07 12:28:21 +01:00
|
|
|
@@ -7,13 +7,13 @@ require (
|
2023-06-07 12:00:46 +01:00
|
|
|
github.com/jackc/pgx/v5 v5.3.1 // indirect
|
|
|
|
|
github.com/jinzhu/now v1.1.5
|
|
|
|
|
github.com/lib/pq v1.10.8
|
|
|
|
|
- github.com/mattn/go-sqlite3 v1.14.16 // indirect
|
2023-06-07 12:28:21 +01:00
|
|
|
+ github.com/ncruces/go-sqlite3 v0.7.2
|
|
|
|
|
+ github.com/ncruces/go-sqlite3/gormlite v0.0.0
|
2023-06-07 12:00:46 +01:00
|
|
|
golang.org/x/crypto v0.8.0 // indirect
|
|
|
|
|
gorm.io/driver/mysql v1.5.0
|
|
|
|
|
gorm.io/driver/postgres v1.5.0
|
|
|
|
|
- gorm.io/driver/sqlite v1.5.0
|
|
|
|
|
gorm.io/driver/sqlserver v1.4.3
|
|
|
|
|
- gorm.io/gorm v1.25.0
|
|
|
|
|
+ gorm.io/gorm v1.25.1
|
2023-06-07 12:28:21 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
-replace gorm.io/gorm => ../
|
|
|
|
|
+replace github.com/ncruces/go-sqlite3/gormlite => ../
|
2023-06-07 12:00:46 +01:00
|
|
|
diff --git a/tests/scanner_valuer_test.go b/tests/scanner_valuer_test.go
|
|
|
|
|
index 1412169..472434b 100644
|
|
|
|
|
--- a/tests/scanner_valuer_test.go
|
|
|
|
|
+++ b/tests/scanner_valuer_test.go
|
|
|
|
|
@@ -170,10 +170,10 @@ func (data *EncryptedData) Scan(value interface{}) error {
|
|
|
|
|
return errors.New("Too short")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
- *data = b[3:]
|
|
|
|
|
+ *data = append((*data)[0:], b[3:]...)
|
|
|
|
|
return nil
|
|
|
|
|
} else if s, ok := value.(string); ok {
|
|
|
|
|
- *data = []byte(s)[3:]
|
|
|
|
|
+ *data = []byte(s[3:])
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
diff --git a/tests/tests_test.go b/tests/tests_test.go
|
|
|
|
|
index 90eb847..cd9af43 100644
|
|
|
|
|
--- a/tests/tests_test.go
|
|
|
|
|
+++ b/tests/tests_test.go
|
|
|
|
|
@@ -7,9 +7,11 @@ import (
|
|
|
|
|
"path/filepath"
|
|
|
|
|
"time"
|
|
|
|
|
|
|
|
|
|
+ _ "github.com/ncruces/go-sqlite3/embed"
|
|
|
|
|
+ sqlite "github.com/ncruces/go-sqlite3/gormlite"
|
|
|
|
|
+
|
|
|
|
|
"gorm.io/driver/mysql"
|
|
|
|
|
"gorm.io/driver/postgres"
|
|
|
|
|
- "gorm.io/driver/sqlite"
|
|
|
|
|
"gorm.io/driver/sqlserver"
|
|
|
|
|
"gorm.io/gorm"
|
|
|
|
|
"gorm.io/gorm/logger"
|