Can't get "Inserting large data sets" tutorial to work
Bug #545104 reported by
Dave Flitney
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oursql |
Fix Released
|
Medium
|
Aaron Gallagher |
Bug Description
Was having trouble using the IterWrapper classes so tried to test with the tutorial example (see attached file). It fails with the following traceback:
[OVALTINE-VM6 flitney]# python oursqltest.py
In main!
Traceback (most recent call last):
File "oursql_test.py", line 46, in ?
db.
File "oursql_test.py", line 30, in insert_blobs
iw = oursql.
File "statement.pyx", line 30, in oursql.
AttributeError: 'list' object has no attribute 'next'
Thanks,
Dave
Related branches
Changed in oursql: | |
status: | In Progress → Fix Committed |
Changed in oursql: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
IterWrapper expects an iterator object.
Replace: IterWrapper( [u'foo' , u'bar']) IterWrapper( iter([u' foo', u'bar']))
iw = oursql.
by:
iw = oursql.