mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-26 08:03:06 +01:00
Another tweak for postgres sigh
This commit is contained in:
2 files changed
+16
-3
No files matched your search
@@ -25,3 +25,14 @@ func QuoteTableName(tbl string) string {
|
||||
return fmt.Sprintf("`%s`", tbl)
|
||||
}
|
||||
}
|
||||
|
||||
// GetCaseInsensitiveLike returns a different operator based on
|
||||
// the db driver
|
||||
func GetCaseInsensitiveLike() string {
|
||||
switch strings.ToLower(config.Configuration.DB.Driver) {
|
||||
case config.DatabasePostgres:
|
||||
return "ILIKE"
|
||||
default:
|
||||
return "LIKE"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user