mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-24 23:23:15 +01:00
Fix quotes
This commit is contained in:
4 files changed
+12
-11
No files matched your search
@@ -18,11 +18,12 @@ const (
|
||||
// is for special cases where we run raw sql
|
||||
func QuoteTableName(tbl string) string {
|
||||
switch strings.ToLower(config.Configuration.DB.Driver) {
|
||||
case config.DatabasePostgres:
|
||||
return fmt.Sprintf(`"%s"`, tbl)
|
||||
default:
|
||||
// This is the same for Mysql and Sqlite
|
||||
case config.DatabaseMysql:
|
||||
// backticks for mysql
|
||||
return fmt.Sprintf("`%s`", tbl)
|
||||
default:
|
||||
// double quotes for everything else
|
||||
return fmt.Sprintf(`"%s"`, tbl)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user