﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
10320	CursorDebugWrapper should allow using iterators/generators for executemany().	Vadim Fint	nobody	"executemany on cursors can have a little speedup on huge lists if developer sends iterators or generators as args. Thus, they will have no __len__. CursorDebugWrapper tries to determine length for only one reason: put a record about number of executed queries into connection.queries.

It's good idea probably to determine if args have no len -- dont put info about amount of executed queries into connection.queries.

Right now I can do connection.cursor().cursor.executemany(sql, iterator) for that purpose. I mean -- python db wrappers usually allow iterators in executemany's args. Another ugly way right now - catch TypeError and silently ignore. This is because django do len() after calling executemany on underlying cursor =). Non-pythonic, yeah?"	New feature	closed	Database layer (models, ORM)	1.0	Normal	fixed			Accepted	1	0	1	1	0	0
