Probably something with foreign key integrity (cascade, restrict, ...) 
because after deleting of records in other tables it works.
However, how to understand such error tickets?



Dne pondělí 22. srpna 2016 13:31:50 UTC+2 Mirek Zvolský napsal(a):
>
> I am trying delete all records with appadmin.
> Error message is not very descriptive.
> Any idea?
>
>
> Traceback (most recent call last):
>   File "/home/www-data/web2py/gluon/main.py", line 464, in wsgibase
>     session._try_store_in_db(request, response)
>   File "/home/www-data/web2py/gluon/globals.py", line 1180, in 
> _try_store_in_db
>     if not table._db(table.id == record_id).update(**dd):
>   File "/home/www-data/web2py/gluon/packages/dal/pydal/objects.py", line 
> 2054, in update
>     ret = db._adapter.update("%s" % table._tablename, self.query, fields)
>   File "/home/www-data/web2py/gluon/packages/dal/pydal/adapters/base.py", 
> line 1031, in update
>     raise e
> ProgrammingError: ('ERROR', '25P02', 'current transaction is aborted, 
> commands ignored until end of transaction block')
>
> ln 1026 - 1035:
>         except Exception:
>             e = sys.exc_info()[1]
>             table = self.db[tablename]
>             if hasattr(table,'_on_update_error'):
>                 return table._on_update_error(table,query,fields,e)
>             raise e
>
>         try:
>             return self.cursor.rowcount
>         except:
>             return None
>
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to