This commit is contained in:
Lunny Xiao 2014-08-08 14:05:51 +08:00
parent 381a0f154e
commit ab8716a447
1 changed files with 1 additions and 0 deletions

View File

@ -1037,6 +1037,7 @@ func (statement *Statement) genCountSql(bean interface{}) (string, []interface{}
if statement.Engine.Dialect().DBType() == "ql" {
id = ""
}
statement.attachInSql()
return statement.genSelectSql(fmt.Sprintf("count(%v) AS %v", id, statement.Engine.Quote("total"))), append(statement.Params, statement.BeanArgs...)
}