summaryrefslogtreecommitdiffstats
path: root/models/db/common.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/db/common.go')
-rw-r--r--models/db/common.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/db/common.go b/models/db/common.go
index 76c7c119f4..af6130c9f2 100644
--- a/models/db/common.go
+++ b/models/db/common.go
@@ -15,7 +15,7 @@ import (
// BuildCaseInsensitiveLike returns a condition to check if the given value is like the given key case-insensitively.
// Handles especially SQLite correctly as UPPER there only transforms ASCII letters.
func BuildCaseInsensitiveLike(key, value string) builder.Cond {
- if setting.Database.UseSQLite3 {
+ if setting.Database.Type.IsSQLite3() {
return builder.Like{"UPPER(" + key + ")", util.ToUpperASCII(value)}
}
return builder.Like{"UPPER(" + key + ")", strings.ToUpper(value)}