Type:
Task
Priority:
Major
Resolution:
Unresolved
Fix Version/s:
None
Below are mostly minor notes for which clarification is needed.
Conceptual: are we sure that ORACLE mode should invalidate native MariaDB constructs? We need some consistency and in my understanding following should still work in Oracle mode:
ELSE / ELSEIF
% operation (if possible)
2. MDEV-10343 sql_mode=ORACLE: Providing compatibility for basic SQL data types
following are valid build-in datatypes declaration in oracle which cause syntax error at the moment (needs to be documented or created another task):
these probably had to be implemented inside MDEV-10343
create or replace table t1(a binary_float);
create or replace table t1(a binary_double);
create or replace table t1(a long raw);
create or replace table t1(a NCLOB);
these need more effort or maybe just must be documented or separate task is needed
create or replace table t1(a varchar (30 byte));
create or replace table t1(a varchar (30 char ));
create or replace table t1(a timestamp with local time zone);
create or replace table t1(a timestamp with time zone);
create or replace table t1(a interval day );
create or replace table t1(a interval year );
create or replace table t1(a BFILE);
create or replace table t1(a rowid);
create or replace table t1(a urowid(5));
this should give an error (oracle will return ORA-02017: integer value required )
MariaDB [test]> create or replace table t1(a number(2.2));
Query OK, 0 rows affected (0.24 sec)
3. MDEV-10411 Providing compatibility for basic PL/SQL constructs
3.6 Assignment operator
It doesn't sound intuitive that one may write "wait_timeout:=a", but "a:=wait_timeout" shows syntax error.
begin declare a int ; begin a:=wait_timeout; end ; end ;;
3.7 Variable declarations
Oracle allows NOT NULL in variable declaration. Maybe we should allow that syntax as well?
begin declare a NOT NULL int ; begin a:=1; a:= NULL ; end ; end ;;
10. MDEV-10585 EXECUTE IMMEDIATE
In ORACLE the command supports 'RETURNING INTO' clause, we should probably document the difference?
sql_stmt := 'UPDATE emp SET sal = 2000 WHERE empno = :1
RETURNING sal INTO :2' ;
EXECUTE IMMEDIATE sql_stmt USING emp_id RETURNING INTO salary;
12. MDEV-10588 TRUNCATE TABLE t1 DROP|REUSE STORAGE
Following clauses should be allowed in TRUNCATE command as well:
[ PRESERVE MATERIALIZED VIEW LOG | PURGE MATERIALIZED VIEW LOG ]
18. MDEV-10577 sql_mode=ORACLE: %TYPE in variable declarations
It is not clear what is expected to happen if table's column definition is altered after stored program creation.
{"report":{"fcp":1428.2999999523163,"ttfb":360.90000009536743,"pageVisibility":"visible","entityId":61592,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"12214e38-628c-477b-b7dc-531992184385","navigationType":0,"readyForUser":1525.5,"redirectCount":0,"resourceLoadedEnd":1622.6000001430511,"resourceLoadedStart":369.10000014305115,"resourceTiming":[{"duration":352.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":369.10000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":369.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":721.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":352.5,"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":369.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":369.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":721.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":573.0999999046326,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":369.60000014305115,"connectEnd":369.60000014305115,"connectStart":369.60000014305115,"domainLookupEnd":369.60000014305115,"domainLookupStart":369.60000014305115,"fetchStart":369.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":369.60000014305115,"responseEnd":942.7000000476837,"responseStart":942.7000000476837,"secureConnectionStart":369.60000014305115},{"duration":673.8000001907349,"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":369.7999999523163,"connectEnd":369.7999999523163,"connectStart":369.7999999523163,"domainLookupEnd":369.7999999523163,"domainLookupStart":369.7999999523163,"fetchStart":369.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":369.7999999523163,"responseEnd":1043.6000001430511,"responseStart":1043.6000001430511,"secureConnectionStart":369.7999999523163},{"duration":677.4000000953674,"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":370,"connectEnd":370,"connectStart":370,"domainLookupEnd":370,"domainLookupStart":370,"fetchStart":370,"redirectEnd":0,"redirectStart":0,"requestStart":370,"responseEnd":1047.4000000953674,"responseStart":1047.4000000953674,"secureConnectionStart":370},{"duration":677.7999999523163,"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":370.10000014305115,"connectEnd":370.10000014305115,"connectStart":370.10000014305115,"domainLookupEnd":370.10000014305115,"domainLookupStart":370.10000014305115,"fetchStart":370.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":370.10000014305115,"responseEnd":1047.9000000953674,"responseStart":1047.9000000953674,"secureConnectionStart":370.10000014305115},{"duration":678.2999999523163,"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":370.2000000476837,"connectEnd":370.2000000476837,"connectStart":370.2000000476837,"domainLookupEnd":370.2000000476837,"domainLookupStart":370.2000000476837,"fetchStart":370.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":370.2000000476837,"responseEnd":1048.5,"responseStart":1048.5,"secureConnectionStart":370.2000000476837},{"duration":717.3999998569489,"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":370.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":370.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1087.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":678.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":370.60000014305115,"connectEnd":370.60000014305115,"connectStart":370.60000014305115,"domainLookupEnd":370.60000014305115,"domainLookupStart":370.60000014305115,"fetchStart":370.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":370.60000014305115,"responseEnd":1048.9000000953674,"responseStart":1048.9000000953674,"secureConnectionStart":370.60000014305115},{"duration":717.2000000476837,"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":370.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":370.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1087.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":678.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":371,"connectEnd":371,"connectStart":371,"domainLookupEnd":371,"domainLookupStart":371,"fetchStart":371,"redirectEnd":0,"redirectStart":0,"requestStart":371,"responseEnd":1049.5,"responseStart":1049.5,"secureConnectionStart":371},{"duration":1011.7999999523163,"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":378.7000000476837,"connectEnd":378.7000000476837,"connectStart":378.7000000476837,"domainLookupEnd":378.7000000476837,"domainLookupStart":378.7000000476837,"fetchStart":378.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":378.7000000476837,"responseEnd":1390.5,"responseStart":1390.5,"secureConnectionStart":378.7000000476837},{"duration":1241.9000000953674,"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":380.7000000476837,"connectEnd":380.7000000476837,"connectStart":380.7000000476837,"domainLookupEnd":380.7000000476837,"domainLookupStart":380.7000000476837,"fetchStart":380.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":380.7000000476837,"responseEnd":1622.6000001430511,"responseStart":1622.6000001430511,"secureConnectionStart":380.7000000476837},{"duration":291.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1099.7000000476837,"connectEnd":1099.7000000476837,"connectStart":1099.7000000476837,"domainLookupEnd":1099.7000000476837,"domainLookupStart":1099.7000000476837,"fetchStart":1099.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":1099.7000000476837,"responseEnd":1391.2000000476837,"responseStart":1391.2000000476837,"secureConnectionStart":1099.7000000476837}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":194,"responseStart":361,"responseEnd":380,"domLoading":368,"domInteractive":1647,"domContentLoadedEventStart":1647,"domContentLoadedEventEnd":1698,"domComplete":2565,"loadEventStart":2565,"loadEventEnd":2567,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1624.7000000476837},{"name":"bigPipe.sidebar-id.end","time":1625.6000001430511},{"name":"bigPipe.activity-panel-pipe-id.start","time":1625.7999999523163},{"name":"bigPipe.activity-panel-pipe-id.end","time":1628.2999999523163},{"name":"activityTabFullyLoaded","time":1706.2000000476837}],"measures":[],"correlationId":"72eaa806dabce1","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":101,"dbReadsTimeInMs":14,"dbConnsTimeInMs":23,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}