Opened 9 years ago

Closed 4 years ago

#17 closed enhancement (fixed)

Enhance the cursor.description attribute

Reported by: cito Owned by: darcy
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 changed from 4.2 to 5.0
  • Version changed from 4.0 to 4.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 changed from 5.0 to 5.1

comment:6 Changed 4 years ago by cito

  • Resolution set to fixed
  • Status changed from new to closed

Has now been improved in r784

Note: See TracTickets for help on using tickets.