Il ven, 2002-02-08 alle 12:47, de ZORZI Frederic ha scritto:
> > Hi all,
> > Is it possible to use cursors and their functions (dictfetchall,
> > fetchone...) with zpsycopg connection ?
> >
>
> Easy stupid :) :
>
> conn = getattr(self, self.connection_id)
> db = conn().db
>
> c
> Hi all,
> Is it possible to use cursors and their functions (dictfetchall,
> fetchone...) with zpsycopg connection ?
>
Easy stupid :) :
conn = getattr(self, self.connection_id)
db = conn().db
curs = db.cursor()
curs.execute("select * from support limit 2")
return "%s" % cur