29 Nov
2001
29 Nov
'01
4:21 p.m.
Thanks Mike, I've checked this in to our CVS sources. mike hong wrote:
I found ZODBC bug at max_rows.
file name: db.py
line: 230
Current version is getting all rows regardless of max_rows.
Fixed version is getting rows until rows are smaller than max_rows.
Current version:
while status==SQL_SUCCESS:
.....
r.append(rd)
status=SQLFetch(stmt)
.....
Fixed version:
cnt = 0
while status==SQL_SUCCESS and cnt < max_rows:
.......
r.append(rd)
cnt = cnt + 1
status=SQLFetch(stmt)
.......
Have a nice day !!!!!!