Re: executemany rowcount

Karsten Hilbert <[email protected]>
Newsgroups gmane.comp.python.db.psycopg.devel
Message-ID <[email protected]>
On Sun, Feb 08, 2009 at 12:39:35PM +0100, Federico Di Gregorio wrote:

> As you say below, executemany() is supposed to NOT be used with multiple
> SELECT statements. There was a discussion a couple of years ago about
> checking the query and raising an error on SELECT but we decided to
> let the client code decide what is good for it. I don't see many uses
> if SELECT in executemany() but I also don't see why issuing multiple
> selects should raise an exception if you know what you're doing.

Yep, one might want to invoke a few stored procedures and
eventually get the net result of them with an explicit
SELECT.

Karsten
-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.