Open GoogleCodeExporter opened 9 years ago
If the value is always -1, it is probably the driver. The rowcount value is
supposed to be -1 when the previous statement was not one that modifies or
selects rows. Note that pyodbc does not examine the SQL - it simply calls
SQLRowCount.
For example, if you execute a "create table ..." statement, the rowcount should
be -1.
Is the value some other negative number?
Original comment by mkleehammer
on 26 Jun 2012 at 1:35
The value depends on the number of rows in a table. If the number is less than
one billion, it can correctly show the positive number. If the number is larger
than a threshold, it shows a negative number, such as -49,186,683 records,
-1,820,934,434 or -1,799,086,733 records.
Original comment by chuangt...@gmail.com
on 26 Jun 2012 at 9:15
Original issue reported on code.google.com by
chuangt...@gmail.com
on 9 May 2012 at 12:29