Cursor.fetchall
Felipe Vinturini
felipe.vinturini at gmail.com
Mon Nov 28 07:06:30 EST 2011
Hi Jayron,
Instead of using "Q" to loop over the result, use: "dbcursor".
resp = dbcursor.fetchall()
I hope it helps.
Regards,
Felipe.
On Mon, Nov 28, 2011 at 9:54 AM, Jayron Soares <jayronsoares at gmail.com>wrote:
> Hi guys!
>
> I'm stuck at a problem, when I run the follow code:
>
> http://pastebin.com/4Gd9V325
>
> I get this error:
>
> Traceback (most recent call last):
> File "/home/jayron/Downloads/grafos.py", line 49, in <module>
> g, e = ministro_lei()
> File "/home/jayron/Downloads/grafos.py", line 24, in ministro_lei
> resp = Q.fetchall()
> AttributeError: 'long' object has no attribute 'fetchall'
>
> Please any help ?
>
> cheers
>
>
> --
> *" A Vida é arte do Saber...Quem quiser saber tem que Estudar!"*
>
> http://bucolick.tumblr.com
> http://artecultural.wordpress.com/
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20111128/2ac85ea8/attachment-0001.html>
More information about the Python-list
mailing list