From: Lars Kellogg-S. <la...@la...> - 2002-01-20 17:24:09
|
Hello all, I've just started using pyPgSQL, and I've run into a frustrating problem -- how do I determine the size of a result set *before* calling one of the fetchxxx() functions? The rowcount attribute doesn't appear to be terribly useful. As far as I can tell, it simply tells me the number of rows returned by the previous fetchxxx() call -- a value which I can also get just by calling len() on the return from fetchxxx(). Before a fetch call, rowcount always contains -1. Is there any other way of getting at this information? Thanks, -- Lars |