Session.Count 在有 group by 时处理的问题 #1910
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
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xorm/xorm#1910
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?
GenCountSQL 生成的 sqlStr 存在直接的 group by 时,Session.Count 就会改变原语义了,
嗯,其实是应该调整 GenCountSQL 或 genSelectSQL,
这里是我一个比较粗暴的简单处理修改,因为并不非常完善也不能完全适用所有情况,所以只是扩展了一个函数,大部分时候倒也是够用了,仅供参考