fix: ignore DefaultPostgresSchema
This commit is contained in:
parent
f74ba0cf5c
commit
ed84bb2b2c
|
@ -549,6 +549,7 @@ func (engine *Engine) tableName(beanOrTableName interface{}) (string, error) {
|
|||
func (engine *Engine) tbSchemaName(v string) string {
|
||||
if engine.dialect.DBType() == core.POSTGRES &&
|
||||
engine.dialect.URI().Schema != "" &&
|
||||
engine.dialect.URI().Schema != DefaultPostgresSchema &&
|
||||
strings.Index(v, ".") == -1 {
|
||||
return engine.dialect.URI().Schema + "." + v
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue