aboutsummaryrefslogtreecommitdiff
path: root/internal/sqlutil/trace.go
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2021-07-20 11:18:14 +0100
committerGitHub <noreply@github.com>2021-07-20 11:18:14 +0100
commitf63068df3b9efb11f2677dd527994477b806ed19 (patch)
tree69c55298d104a9615ed50eb592a75297b0a416dc /internal/sqlutil/trace.go
parent0ff078ebd706600f69a6491538e97abec6e0606f (diff)
Only include go-sqlite3 on the relevant binaries (#1900)
* Only include go-sqlite3 on the relevant binaries * The driver name is always sqlite3 now * Update to matrix-org/go-sqlite3-js@e537baa
Diffstat (limited to 'internal/sqlutil/trace.go')
-rw-r--r--internal/sqlutil/trace.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/sqlutil/trace.go b/internal/sqlutil/trace.go
index 5138aa59..51eaa1b4 100644
--- a/internal/sqlutil/trace.go
+++ b/internal/sqlutil/trace.go
@@ -104,7 +104,7 @@ func Open(dbProperties *config.DatabaseOptions) (*sql.DB, error) {
var driverName, dsn string
switch {
case dbProperties.ConnectionString.IsSQLite():
- driverName = SQLiteDriverName()
+ driverName = "sqlite3"
dsn, err = ParseFileURI(dbProperties.ConnectionString)
if err != nil {
return nil, fmt.Errorf("ParseFileURI: %w", err)
@@ -123,7 +123,7 @@ func Open(dbProperties *config.DatabaseOptions) (*sql.DB, error) {
if err != nil {
return nil, err
}
- if driverName != SQLiteDriverName() {
+ if driverName != "sqlite3" {
logrus.WithFields(logrus.Fields{
"MaxOpenConns": dbProperties.MaxOpenConns(),
"MaxIdleConns": dbProperties.MaxIdleConns(),