[MDEV-10155] Autonomous transactions Created: 2016-05-31 Updated: 2019-04-26 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major |
| Reporter: | Michael Widenius | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 8 |
| Labels: | Compatibility, procedures | ||
| Issue Links: |
|
||||||||
| Epic Link: | Oracle Compatibility | ||||||||
| Description |
|
Add support for autonomous blocks in stored routines. This would allow a stored routine marked with autonomous_transaction to commit Oracle defines this as "PRAGMA AUTONOMOUS_TRANSACTION": This pragma can be applied to:
For the moment a workaround is to use the Aria storage engine for tables that should be persistent against ROLLBACK. Aria tables are never rollbacked The suggested implementation is to run the autonomous routine with it's own THD (== user), like it would be a new independent connection. An example of an Oracle stored function using AUTONOMOUS_TRANSACTION:
|
| Comments |
| Comment by Yuriy Kuleshov [ 2019-04-26 ] |
|
When you plan to implement this feature? This will be a great thing in oracle compatibility and app design techniques. |