Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
Bug description:
importsqlite3defdict_factory(cursor,row):d= {}foridx,colinenumerate(cursor.description):d[col[0]]=row[idx]returnddefmain():conn=sqlite3.connect(":memory:")cur=conn.cursor()# conn.row_factory = sqlite3.Row # is okconn.row_factory=dict_factory# is failcur.executescript(""" create table if not exists test( id integer primary key AUTOINCREMENT ); """)cur.close()forlineinconn.iterdump():print(line)main()
CPython versions tested on:
3.12
Operating systems tested on:
Windows