docs: [ci skip] add desc for postgres.

This commit is contained in:
Bo-Yi Wu 2018-04-08 22:02:37 +08:00
parent ed84bb2b2c
commit bd2e83b38d
1 changed files with 2 additions and 0 deletions

View File

@ -547,6 +547,8 @@ func (engine *Engine) tableName(beanOrTableName interface{}) (string, error) {
}
func (engine *Engine) tbSchemaName(v string) string {
// Add schema name as prefix of table name.
// Only for postgres database.
if engine.dialect.DBType() == core.POSTGRES &&
engine.dialect.URI().Schema != "" &&
engine.dialect.URI().Schema != DefaultPostgresSchema &&