Problems with pgResultSet
"Leo Leo" <[email protected]> Wed, 16 Jun 2004 14:25:04 +0200 (MEST)
| Newsgroups | gmane.comp.python.db.pypgsql.user |
|---|---|
| Message-ID | <[email protected]> |
Hello! I just tried to make a few SQL-statements: Environment: Win XP SP1, PostgreSQL 7.4.1 (via Cygwin), Python 2.3.3 and PyPgSQL 2.4 Here is the code I use (it's inside a classe, therfore the "self's"): from pyPgSQL import PgSQL [...] self.__kConn = PgSQL.connect(<DSN-String>) self.__kCurs = self.__kConn.cursor() self.__kCurs.execute(<Statement>) return self.__kCurs.fetchall() The Statement itself returns more than one line Now the Problem is, that the fetchall()-Method returns a list [[...],[...],...] and not a pgResultSet as mentioned in the documentation. PgSQL.fetchReturnsList ist set to 0. Does anybody know, what might be wrong? Thank you, Leo -- +++ Jetzt WLAN-Router für alle DSL-Einsteiger und Wechsler +++ GMX DSL-Powertarife zudem 3 Monate gratis* http://www.gmx.net/dsl ------------------------------------------------------- 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