Re: Problems with pgResultSet

"Leo Leo" <[email protected]> Wed, 16 Jun 2004 18:17:19 +0200 (MEST)
Newsgroups gmane.comp.python.db.pypgsql.user
Message-ID <[email protected]>
Hello Adam!

> It behaves correctly, because fetchall() retuns a list of PgResult
> objects.  You'd better try something like this:
> 
> 	self.__kCurs.execute(sStatement)
> 	kRes = self.__kCurs.fetchall()
> 	for x in kRes:
> 		print type(x)
> 
> If you want to get single PgResult object, use fetchone() instead.


Of course, maybe it was too obvious..

thanks a lot..

Leo


-- 
"Sie haben neue Mails!" - Die GMX Toolbar informiert Sie beim Surfen!
Jetzt aktivieren unter http://www.gmx.net/info



-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND