doc/book/en/devrepo/devcore/dbapi.rst
branchstable
changeset 6385 9f91d09ee5fa
parent 6361 843684a50e48
child 8717 0436c231ac48
equal deleted inserted replaced
6383:19ebe0b994d6 6385:9f91d09ee5fa
    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   If a query generates an error related to security (:exc:`Unauthorized`) or to
    25   If a query generates an error related to security (:exc:`Unauthorized`) or to
    26   integrity (:exc:`ValidationError`), a rollback is automatically done on the
    26   integrity (:exc:`ValidationError`), the transaction can still continue but you
    27   current transaction.
    27   won't be able to commit it, a rollback will be necessary to start a new
       
    28   transaction.
    28 
    29 
    29   Also, a rollback is done if an error occurs during commit.
    30   Also, a rollback is automatically done if an error occurs during commit.
    30 
    31 
    31 
    32 
    32 Executing RQL queries from a view or a hook
    33 Executing RQL queries from a view or a hook
    33 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    34 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    34 
    35