Skip to content
This repository was archived by the owner on Sep 7, 2021. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.

Commit f01db0b

Browse files
committed
resolved #374
1 parent d28e126 commit f01db0b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

session.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -1265,10 +1265,12 @@ func (session *Session) Find(rowsSlicePtr interface{}, condiBean ...interface{})
12651265
}
12661266
}
12671267

1268+
session.Statement.Params = append(session.Statement.Params, session.Statement.BeanArgs...)
1269+
12681270
session.Statement.attachInSql()
12691271

12701272
sqlStr = session.Statement.genSelectSql(columnStr)
1271-
args = append(session.Statement.Params, session.Statement.BeanArgs...)
1273+
args = session.Statement.Params
12721274
// for mssql and use limit
12731275
qs := strings.Count(sqlStr, "?")
12741276
if len(args)*2 == qs {

0 commit comments

Comments
 (0)