diff --git a/engine.go b/engine.go index 6a77746b..aad6049a 100644 --- a/engine.go +++ b/engine.go @@ -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 }