Cursor count attribute returns 0, when shouldn't
See original GitHub issueFor some reasons, when I try to check if request returns some data with the “count” attribute, the check fails because it always returns 0. Please, suggest. PS - this also worked in 2.X
>>> docs.select().execute()
<peewee.ModelObjectCursorWrapper object at 0x1089b80f0>
>>> docs.select().execute().count
0
>>> len(docs.select().execute())
308
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Oracle / PLSQL: Cursor Attributes - TechOnTheNet
- Returns the number of rows fetched. - The ROWCOUNT attribute doesn't give the real row count until you have iterated through the...
Read more >Cursor Attributes
A cursor attribute that can be appended to the name of a cursor or cursor variable. When a cursor is opened, %ROWCOUNT is...
Read more >How to check if a result set is empty? - python - Stack Overflow
cursor.rowcount will usually be set to 0. If, however, you are running a statement that would never return a result set (such as...
Read more >Cursor Object — cx_Oracle 8.2.0 documentation
This read-write attribute can be used to tune the number of rows internally fetched and buffered by internal calls to the database when...
Read more >Cursors in Oracle PL/SQL | Oracle PLSQL concepts - YouTube
This video is to understand the concept of Oracle PL/SQL Cursors. Here we discuss implicit cursor, explicit cursor, difference between ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Suggestion: Maybe it can be renamed to _count to signify the private status?
Agreed, this wasn’t documented, sorry for my note