doc/book/en/devrepo/devcore/dbapi.rst
branchstable
changeset 6361 843684a50e48
parent 5400 b7ab099b128a
child 6385 9f91d09ee5fa
equal deleted inserted replaced
6360:1edfc0f3bb1d 6361:843684a50e48
    20 of the transaction depending on the query execution success. They are
    20 of the transaction depending on the query execution success. They are
    21 however useful in other contexts such as tests or custom controllers.
    21 however useful in other contexts such as tests or custom controllers.
    22 
    22 
    23 .. note::
    23 .. note::
    24 
    24 
    25   While executing update queries (SET, INSERT, DELETE), if a query generates
    25   If a query generates an error related to security (:exc:`Unauthorized`) or to
    26   an error related to security, a rollback is automatically done on the current
    26   integrity (:exc:`ValidationError`), a rollback is automatically done on the
    27   transaction.
    27   current transaction.
       
    28 
       
    29   Also, a rollback is done if an error occurs during commit.
       
    30 
    28 
    31 
    29 Executing RQL queries from a view or a hook
    32 Executing RQL queries from a view or a hook
    30 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    33 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    31 
    34 
    32 When you're within code of the web interface, the db-api like connexion is
    35 When you're within code of the web interface, the db-api like connexion is