This project is archived and is in readonly mode.
connect(cursor_factory=NamedTupleCursor) seems broken
-
Daniele Varrazzo
- State changed from new to invalid
The error is pretty obvious:
ValueError: Type names and field names can only contain alphanumeric characters and underscores: '?column?'if you want to use a named tuple why don't you give a damn name to your fields?
cur.execute("SELECT 'ok' as blah;") print(cur.fetchone()) Record(blah='ok')