i got an error during bulk_insert (the same script is work fine in 2.7.4)
code :
db.rack.bulk_insert([{'rack' : '1', 'branch' : 1, 'name' : 'B1R1'},
{'rack' : '2', 'branch' : 1, 'name' : 'B1R2'},
{'rack' : '3', 'branch' : 1, 'name' : 'B1R3'}, ])
traceback :
Traceback (most recent call last):
File "/home/mdipierro/make_web2py/web2py/gluon/restricted.py", line 217, in
restricted
File
"C:/Users/sugizo/Desktop/web2py/2.8.1/applications/onlineshopping/controllers/install.py"
<http://127.0.0.1:8000/admin/default/edit/onlineshopping/controllers/install.py>,
line 368, in <module>
File "/home/mdipierro/make_web2py/web2py/gluon/globals.py", line 372, in
<lambda>
File
"C:/Users/sugizo/Desktop/web2py/2.8.1/applications/onlineshopping/controllers/install.py"
<http://127.0.0.1:8000/admin/default/edit/onlineshopping/controllers/install.py>,
line 213, in index
{'rack' : '3', 'branch' : 1, 'name' : 'B1R3'}, ])
File "/home/mdipierro/make_web2py/web2py/gluon/dal.py", line 9071, in
bulk_insert
File "/home/mdipierro/make_web2py/web2py/gluon/dal.py", line 1323, in
bulk_insert
File "/home/mdipierro/make_web2py/web2py/gluon/dal.py", line 1311, in insert
IntegrityError: foreign key constraint failed
best regards,
stifan
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.