From: Leo L. <le...@gm...> - 2004-06-16 12:25:13
|
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 |