Local, standalone, and packaged functions and procedures
Methods of a SQL object type
Database triggers
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
(except if the server crashes in the middle of a query).
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:
DROPTABLE employees;
DROPFUNCTION raise_salary;
CREATETABLE employees (
employee_id INTNOTNULLPRIMARYKEY,
salary INTNOTNULL
);
INSERTINTO employees VALUES (1, 100);
CREATEFUNCTION raise_salary
(emp_id NUMBER,
sal_raise NUMBER) RETURN NUMBER
IS
PRAGMA AUTONOMOUS_TRANSACTION;
new_sal NUMBER(8,2);
BEGIN
UPDATE employees
SET salary= salary + sal_raise
WHERE employee_id = emp_id;
COMMIT;
SELECT salary INTO new_sal FROM employees WHERE employee_id = emp_id;
When you plan to implement this feature? This will be a great thing in oracle compatibility and app design techniques.
Yuriy Kuleshov
added a comment - When you plan to implement this feature? This will be a great thing in oracle compatibility and app design techniques.
People
Michael Widenius
Michael Widenius
Votes:
8Vote for this issue
Watchers:
10Start watching this issue
Dates
Created:
Updated:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":1238.6999998092651,"ttfb":275.59999990463257,"pageVisibility":"visible","entityId":56901,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"134d8590-06df-4a07-9fbf-291662f05352","navigationType":0,"readyForUser":1161.5999999046326,"redirectCount":0,"resourceLoadedEnd":1567.8999996185303,"resourceLoadedStart":282.19999980926514,"resourceTiming":[{"duration":76.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":282.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":282.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":358.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":76.40000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":282.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":282.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":359,"responseStart":0,"secureConnectionStart":0},{"duration":140.7000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":282.7999997138977,"connectEnd":282.7999997138977,"connectStart":282.7999997138977,"domainLookupEnd":282.7999997138977,"domainLookupStart":282.7999997138977,"fetchStart":282.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":282.7999997138977,"responseEnd":423.5,"responseStart":423.5,"secureConnectionStart":282.7999997138977},{"duration":255.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":283,"connectEnd":283,"connectStart":283,"domainLookupEnd":283,"domainLookupStart":283,"fetchStart":283,"redirectEnd":0,"redirectStart":0,"requestStart":283,"responseEnd":538.1999998092651,"responseStart":538.1999998092651,"secureConnectionStart":283},{"duration":260.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":283.19999980926514,"connectEnd":283.19999980926514,"connectStart":283.19999980926514,"domainLookupEnd":283.19999980926514,"domainLookupStart":283.19999980926514,"fetchStart":283.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":283.19999980926514,"responseEnd":543.2999997138977,"responseStart":543.2999997138977,"secureConnectionStart":283.19999980926514},{"duration":260.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":283.3999996185303,"connectEnd":283.3999996185303,"connectStart":283.3999996185303,"domainLookupEnd":283.3999996185303,"domainLookupStart":283.3999996185303,"fetchStart":283.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":283.3999996185303,"responseEnd":544.1999998092651,"responseStart":544.1999998092651,"secureConnectionStart":283.3999996185303},{"duration":261.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":283.5,"connectEnd":283.5,"connectStart":283.5,"domainLookupEnd":283.5,"domainLookupStart":283.5,"fetchStart":283.5,"redirectEnd":0,"redirectStart":0,"requestStart":283.5,"responseEnd":545.0999999046326,"responseStart":545.0999999046326,"secureConnectionStart":283.5},{"duration":314.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":283.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":283.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":598.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":262.1000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":283.8999996185303,"connectEnd":283.8999996185303,"connectStart":283.8999996185303,"domainLookupEnd":283.8999996185303,"domainLookupStart":283.8999996185303,"fetchStart":283.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":283.8999996185303,"responseEnd":546,"responseStart":546,"secureConnectionStart":283.8999996185303},{"duration":314.69999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":284,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":284,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":598.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":262.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":284.19999980926514,"connectEnd":284.19999980926514,"connectStart":284.19999980926514,"domainLookupEnd":284.19999980926514,"domainLookupStart":284.19999980926514,"fetchStart":284.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":284.19999980926514,"responseEnd":546.6999998092651,"responseStart":546.6999998092651,"secureConnectionStart":284.19999980926514},{"duration":1262,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":289.8999996185303,"connectEnd":289.8999996185303,"connectStart":289.8999996185303,"domainLookupEnd":289.8999996185303,"domainLookupStart":289.8999996185303,"fetchStart":289.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":289.8999996185303,"responseEnd":1551.8999996185303,"responseStart":1551.8999996185303,"secureConnectionStart":289.8999996185303},{"duration":1277.8999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":290,"connectEnd":290,"connectStart":290,"domainLookupEnd":290,"domainLookupStart":290,"fetchStart":290,"redirectEnd":0,"redirectStart":0,"requestStart":290,"responseEnd":1567.8999996185303,"responseStart":1567.8999996185303,"secureConnectionStart":290},{"duration":938.3999996185303,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":614,"connectEnd":614,"connectStart":614,"domainLookupEnd":614,"domainLookupStart":614,"fetchStart":614,"redirectEnd":0,"redirectStart":0,"requestStart":614,"responseEnd":1552.3999996185303,"responseStart":1552.3999996185303,"secureConnectionStart":614},{"duration":576.6999998092651,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1010.6999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1010.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1587.3999996185303,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":122,"responseStart":276,"responseEnd":289,"domLoading":281,"domInteractive":1732,"domContentLoadedEventStart":1732,"domContentLoadedEventEnd":1797,"domComplete":2087,"loadEventStart":2087,"loadEventEnd":2087,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1698.1999998092651},{"name":"bigPipe.sidebar-id.end","time":1699.1999998092651},{"name":"bigPipe.activity-panel-pipe-id.start","time":1699.2999997138977},{"name":"bigPipe.activity-panel-pipe-id.end","time":1700.1999998092651},{"name":"activityTabFullyLoaded","time":1814.6999998092651}],"measures":[],"correlationId":"fa284b40f46ea2","effectiveType":"4g","downlink":9.9,"rtt":0,"serverDuration":89,"dbReadsTimeInMs":9,"dbConnsTimeInMs":17,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
When you plan to implement this feature? This will be a great thing in oracle compatibility and app design techniques.