fix table name

This commit is contained in:
Lunny Xiao 2019-03-20 20:41:45 +08:00
parent b03c5d5372
commit 425cbed8ee
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ func (engine *Engine) tbNameWithSchema(v string) string {
engine.dialect.URI().Schema != "" &&
engine.dialect.URI().Schema != postgresPublicSchema &&
strings.Index(v, ".") == -1 {
return engine.dialect.URI().Schema + "." + v
return engine.Quote(engine.dialect.URI().Schema) + "." + v
}
return v
}