It should be ok to do db._cursor.description.
Let us know if it works.

Massimo

On Apr 27, 10:14 am, ae <[email protected]> wrote:
> I am need to run a stored procedure and I need column headings.
> Normally, I would be using MySQLdb and, after running cursor.execute
> (), get the column heading names with:
>
>     headings = [h[0] for h in cursor.description].
>
> Should I use MySQLdb directly (seems like a bad idea) or is it OK to
> get the column headings from db._cursor.description after running
> db.executesql() ?
>
> ae
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to