Menu

Very large cursor.rowcount

Help
2006-06-11
2012-09-19
  • August Bigelow

    August Bigelow - 2006-06-11

    I am getting a very large rowcount from all of my cursor objects and have no idea why. The number is always 18446744073709551615.

    Any ideas on what's up?

     
    • Andy Dustman

      Andy Dustman - 2006-06-12

      Using the standard cursor? What versions of MySQL, MySQLdb, Python? What platform?

       
      • August Bigelow

        August Bigelow - 2006-06-12

        Sorry for the lack of details. Running MySQL5, Python 2.4, and 1.2.1 of MySQLdb. I'm also using SSDictCursor.

         
        • Andy Dustman

          Andy Dustman - 2006-06-12

          cursor.rowcount does not work for SSCursor or any variant until all rows have been fetched.

          http://dev.mysql.com/doc/refman/5.0/en/mysql-num-rows.html

           
          • August Bigelow

            August Bigelow - 2006-06-12

            Doh! That makes such complete sense and I totally spaced it. Thanks a bunch!

             

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.