diff options
author | Unknwon <u@gogs.io> | 2017-02-18 11:22:44 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-02-18 11:22:44 -0500 |
commit | dbd9f05c066a097dad206c394e785bb30d176fe4 (patch) | |
tree | 0e37784031c36882aea798de336fa203bb75644c /vendor/github.com/go-xorm/xorm/postgres_dialect.go | |
parent | 77757f6d39e2c8af3f13405bc1500dc9c03813fd (diff) |
vendor: update github.com/go-xorm/*
Diffstat (limited to 'vendor/github.com/go-xorm/xorm/postgres_dialect.go')
-rw-r--r-- | vendor/github.com/go-xorm/xorm/postgres_dialect.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/github.com/go-xorm/xorm/postgres_dialect.go b/vendor/github.com/go-xorm/xorm/postgres_dialect.go index ad7a76f8..c23ab6f3 100644 --- a/vendor/github.com/go-xorm/xorm/postgres_dialect.go +++ b/vendor/github.com/go-xorm/xorm/postgres_dialect.go @@ -1077,7 +1077,7 @@ func (db *postgres) GetIndexes(tableName string) (map[string]*core.Index, error) colNames = strings.Split(cs[1][0:len(cs[1])-1], ",") if strings.HasPrefix(indexName, "IDX_"+tableName) || strings.HasPrefix(indexName, "UQE_"+tableName) { - newIdxName := indexName[5+len(tableName) : len(indexName)] + newIdxName := indexName[5+len(tableName):] if newIdxName != "" { indexName = newIdxName } |