aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/go-xorm/xorm/postgres_dialect.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/go-xorm/xorm/postgres_dialect.go')
-rw-r--r--vendor/github.com/go-xorm/xorm/postgres_dialect.go2
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
}