Limit 設置0的問題 #1514
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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xorm/xorm#1514
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?
我使用db.Limit函式,在limit的參數上寫0,秀出來的SQL語法並沒有LIMIT的keyword,因此就會變成拿到全部的record
而我用db.SQL來寫raw SQL語句,將LIMIT設0,可以拿到0個資料達到我要的效果
這是個例外情況嗎?
Which xorm version are you using?
v0.7.9
Could you try the recent version, I just merged #1119 tha should fix your problem.
I try v0.8.1, but still no LIMIT keyword in SQL statement when setting limit = 0.
it should get 0 record when I set LIMIT = 0.
Sorry my fault, I try 0.8.2 version. It Works!
Thank you!