diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2024-04-11 09:12:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-11 01:12:40 +0000 |
commit | f0bfad29ea00eea7fd421d51352825aaa931aba8 (patch) | |
tree | 95bc6510ef6dd36c26ba3431ccfe395a7a5f6abd /models/db | |
parent | 17c7ebb327faf6f8b6d659a0adb451b553405116 (diff) | |
download | gitea-f0bfad29ea00eea7fd421d51352825aaa931aba8.tar.gz gitea-f0bfad29ea00eea7fd421d51352825aaa931aba8.zip |
Replace MSSQL driver with a better maintained version (#30390)
As the latest tag of `github.com/denisenkom/go-mssqldb` is in 2022, but
as a fork of it, `github.com/microsoft/go-mssqldb` has more activities
than the original repository. We can convert the driver to the fork.
Since the interface of Go database driver are the same, it should have
no any affect for the end users.
Diffstat (limited to 'models/db')
-rwxr-xr-x | models/db/engine.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/models/db/engine.go b/models/db/engine.go index 2a2743e927..8684c4e2f1 100755 --- a/models/db/engine.go +++ b/models/db/engine.go @@ -21,9 +21,9 @@ import ( "xorm.io/xorm/names" "xorm.io/xorm/schemas" - _ "github.com/denisenkom/go-mssqldb" // Needed for the MSSQL driver - _ "github.com/go-sql-driver/mysql" // Needed for the MySQL driver - _ "github.com/lib/pq" // Needed for the Postgresql driver + _ "github.com/go-sql-driver/mysql" // Needed for the MySQL driver + _ "github.com/lib/pq" // Needed for the Postgresql driver + _ "github.com/microsoft/go-mssqldb" // Needed for the MSSQL driver ) var ( |