A.
A setAutoCommit (False) method invocation starts a transaction context.
A setAutoCommit (False) method invocation starts a transaction context.
B.
An instance of savepoint represents a point in the current transaction context.
An instance of savepoint represents a point in the current transaction context.
C.
A rollback () method invocation rolls a transaction back to the last savepoint.
A rollback () method invocation rolls a transaction back to the last savepoint.
D.
A rollback () method invocation releases any database locks currently held by this connection object.
A rollback () method invocation releases any database locks currently held by this connection object.
E.
After calling rollback (mysavepoint), you must close the savepoint object by calling mySavepoint.close() .
After calling rollback (mysavepoint), you must close the savepoint object by calling mySavepoint.close() .
Risposta A,B e D.
La C è sbagliata perché se si usa un
rollback senza passargli un punto di salvataggio si rollbecca l’intera
transazione e non fino all’ultimo punto di salvataggio.
La E non è vera perché non serve
affatto chiudere il punto di salvataggio.
Nessun commento:
Posta un commento