Is true, I have a other problem, I have a sqlite file.csv, and I want
to import this file
to mysql database and appears the following error:
Cannot add or update a child row: a foreign key constraint fails
(`sinrisk`.`auth_event`, CONSTRAINT `auth_event_ibfk_1` FOREIGN KEY
(`user_id`) REFERENCES `auth_user` (`id`) ON DELETE CASCADE)')

With sqlite works fine but not with mysql.

On 2 mayo, 18:47, pbreit <pbreitenb...@gmail.com> wrote:
> According to the book:
>
> "When importing, the new records will be appended to the database if it is
> not empty. In general the new imported records will not have the same record
> id as the original (saved) records but web2py will restore references so
> they are not broken, even if the id values may change."
>
> http://web2py.com/book/default/chapter/06?search=export_to_csv_file
>
> Have you tried it?

Reply via email to