mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-06-18 10:06:26 +00:00
Another tweak for postgres sigh
This commit is contained in:
@ -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