Closed GoogleCodeExporter closed 8 years ago
Original comment by jiangwen...@gmail.com
on 15 Feb 2013 at 2:45
Original comment by jiangwen...@gmail.com
on 25 Feb 2013 at 2:30
You can change one line to enable it:
In the method Cursor.__init__() from:
self.row_type_callable = row_type_callable or TupleRow
To:
self.row_type_callable = row_type_callable or NamedTupleRow
After some consideration and testing, I tend to not enable that feature by
default, which is not in DBI 2.0 standard, and also only ascii attribute will
success:
for row in cursor.fetchall():
id = row.号码 # <<<< fails, field name must be ascii attributes
Original comment by jiangwen...@gmail.com
on 24 Mar 2013 at 11:42
Original issue reported on code.google.com by
johnjian...@gmail.com
on 13 Feb 2013 at 4:54