limit=0 in sqlalchemy means 0 instead of unlimit
Bug #1337191 reported by
Feilong Wang
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zaqar |
Fix Released
|
Medium
|
Feilong Wang |
Bug Description
We're using limit=0 to query unlimited records. Unfornuately, it doesn't work when a sql based database is used as pool management database. In sqlalchemy, it means 0. See:
https:/
https:/
https:/
https:/
Changed in marconi: | |
assignee: | nobody → Fei Long Wang (flwang) |
importance: | Undecided → Medium |
Changed in marconi: | |
milestone: | none → juno-2 |
Changed in marconi: | |
status: | Fix Committed → Fix Released |
Changed in zaqar: | |
milestone: | juno-2 → 2014.2 |
To post a comment you must log in.
Is it the conversion that limit=0 means unlimited records?
from the current storage controller for mongodb and sqlalchemy , limit=0 is meaningful though it does not make sence, the code will only check whether it's None or not , if None ,then unlimited , or not event it's 0.