Opened 9 years ago

Closed 4 years ago

#17 closed enhancement (fixed)

Enhance the cursor.description attribute

Reported by: cito Owned by: D'Arcy J.M. Cain
Priority: major Milestone: 5.1
Component: DB API 2 Version: 4.1
Keywords: cursor Cc:

Description (last modified by cito)

Enhance the cursor.description attribute, delivering more information
available with PQftype(), PQfmod(), PQfsize() or PQftable() for instance.

Change History (6)

comment:1 Changed 7 years ago by cito

Might also return a named tuple, as PySqlite? does.

comment:2 Changed 4 years ago by cito

Description: modified (diff)
Keywords: cursor added
Milestone: 4.25.0
Version: 4.04.1

comment:3 Changed 4 years ago by cito

Since r681 we return named tuples now. But most of the fields are still returned empty (None).

comment:4 Changed 4 years ago by cito

See also the psycopg2 docs - providing the other items in the tuple seems to be difficult or costly.

comment:5 Changed 4 years ago by cito

Milestone: 5.05.1

comment:6 Changed 4 years ago by cito

Resolution: fixed
Status: newclosed

Has now been improved in r784

Note: See TracTickets for help on using tickets.