summaryrefslogtreecommitdiffstats
path: root/vendor/xorm.io/xorm/session_find.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/xorm.io/xorm/session_find.go')
-rw-r--r--vendor/xorm.io/xorm/session_find.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/vendor/xorm.io/xorm/session_find.go b/vendor/xorm.io/xorm/session_find.go
index 642093f22a..0daea005dd 100644
--- a/vendor/xorm.io/xorm/session_find.go
+++ b/vendor/xorm.io/xorm/session_find.go
@@ -57,6 +57,9 @@ func (session *Session) FindAndCount(rowsSlicePtr interface{}, condiBean ...inte
if session.statement.SelectStr != "" {
session.statement.SelectStr = ""
}
+ if len(session.statement.ColumnMap) > 0 {
+ session.statement.ColumnMap = []string{}
+ }
if session.statement.OrderStr != "" {
session.statement.OrderStr = ""
}