findAndCount无法使用count(distinct()) #2070
Labels
No Label
backport/done
backport/v1
blocked
db
oracle
db
sqlserver
duplicate
feature
cache
frontport/done
frontport/main
invalid
kind
breaking
kind
bug
kind
build
kind
dependencies
kind
docs
kind
driver
kind
enhancement
kind
feature
kind
performance
kind
proposal
kind
question
kind
refactor
kind
testing
need
feedback
need
test
proposal:accepted
RaspBerry Pi
regression
skip-changelog
upstream
wip
wontfix
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xorm/xorm#2070
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
https://gitea.com/xorm/xorm/src/branch/master/session_find.go
这里的columnMap为什么要置空 那我如何在findAndCount的字段里面传递count(distinct(cols))的cols?
columnMap置空导致sql变成了count(distinct )
无法使用count(distinct())to findAndCount无法使用count(distinct())Could you paste your codes here?
the demo like this
https://gitea.com/attachments/36708640-1e57-4c15-adbd-d2539e363019
here here
if the length of columnMap gt 0,set empty? how to use distinct in count(distinct(
cols
)) of functionfindAndCount
,thecols
would be empty.这个问题解决了吗