-
Bug
-
-
Major
-
Resolution:
Unresolved
-
11.8
-
-
-
Warning message info is not showing in the result set when SQL_MODE is set to ORACLE in a procedure
Test case
SET SQL_MODE=ORACLE;
|
CREATE OR REPLACE TABLE t1( c VARCHAR(2));
|
|
DELIMITER $$
|
|
CREATE OR REPLACE PROCEDURE p1 AS
|
TYPE RecT IS RECORD (
|
c_name t1.c%TYPE
|
);
|
rec RecT:= RecT('aaa');
|
|
|
BEGIN
|
INSERT INTO t1 SELECT rec.c_name;
|
END;
|
$$
|
DELIMITER ;
|
CALL p1;
|
INSERT INTO t1 SELECT 'xyz';
|
SHOW WARNINGS;
|
SELECT * FROM t1;
|
Output
11.7.0-dbg>SET SQL_MODE=ORACLE;
|
Query OK, 0 rows affected (0.001 sec)
|
|
11.7.0-dbg>CREATE OR REPLACE TABLE t1( c VARCHAR(2));
|
Query OK, 0 rows affected (0.070 sec)
|
|
11.7.0-dbg>
|
11.7.0-dbg>DELIMITER $$
|
11.7.0-dbg>
|
11.7.0-dbg>CREATE OR REPLACE PROCEDURE p1 AS
|
-> TYPE RecT IS RECORD (
|
-> c_name t1.c%TYPE
|
-> );
|
-> rec RecT:= RecT('aaa');
|
->
|
->
|
-> BEGIN
|
-> INSERT INTO t1 SELECT rec.c_name;
|
-> END;
|
-> $$
|
Query OK, 0 rows affected (0.037 sec)
|
|
11.7.0-dbg>DELIMITER ;
|
11.7.0-dbg>CALL p1;
|
Query OK, 1 row affected (0.004 sec)
|
|
11.7.0-dbg>INSERT INTO t1 SELECT 'xyz';
|
Query OK, 1 row affected, 1 warning (0.003 sec)
|
Records: 1 Duplicates: 0 Warnings: 1
|
|
11.7.0-dbg>SHOW WARNINGS;
|
+---------+------+----------------------------------------+
|
| Level | Code | Message |
|
+---------+------+----------------------------------------+
|
| Warning | 1265 | Data truncated for column 'c' at row 1 |
|
+---------+------+----------------------------------------+
|
1 row in set (0.000 sec)
|
|
11.7.0-dbg>SELECT * FROM t1;
|
+------+
|
| c |
|
+------+
|
| aa |
|
| xy |
|
+------+
|
2 rows in set (0.000 sec)
|
|
11.7.0-dbg>
|
No workflow transitions have been executed yet.
{"report":{"fcp":792.2000000476837,"ttfb":210.20000004768372,"pageVisibility":"visible","entityId":131494,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"e902a018-f9fb-42c0-acfb-e38fd7b818fc","navigationType":0,"readyForUser":908.7000000476837,"redirectCount":0,"resourceLoadedEnd":551.4000000953674,"resourceLoadedStart":218.20000004768372,"resourceTiming":[{"duration":5.399999976158142,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":218.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":218.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":223.60000002384186,"responseStart":0,"secureConnectionStart":0},{"duration":5.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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","startTime":218.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":218.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":223.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":193.89999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":218.60000002384186,"connectEnd":224.30000007152557,"connectStart":224.30000007152557,"domainLookupEnd":224.30000007152557,"domainLookupStart":224.30000007152557,"fetchStart":218.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":224.40000009536743,"responseEnd":412.5,"responseStart":237.80000007152557,"secureConnectionStart":224.30000007152557},{"duration":311.10000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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","startTime":218.80000007152557,"connectEnd":218.80000007152557,"connectStart":218.80000007152557,"domainLookupEnd":218.80000007152557,"domainLookupStart":218.80000007152557,"fetchStart":218.80000007152557,"redirectEnd":0,"redirectStart":0,"requestStart":225.20000004768372,"responseEnd":529.9000000953674,"responseStart":239.30000007152557,"secureConnectionStart":218.80000007152557},{"duration":33.299999952316284,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":218.90000009536743,"connectEnd":218.90000009536743,"connectStart":218.90000009536743,"domainLookupEnd":218.90000009536743,"domainLookupStart":218.90000009536743,"fetchStart":218.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":228.80000007152557,"responseEnd":252.20000004768372,"responseStart":250.70000004768372,"secureConnectionStart":218.90000009536743},{"duration":36.10000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":219.20000004768372,"connectEnd":219.20000004768372,"connectStart":219.20000004768372,"domainLookupEnd":219.20000004768372,"domainLookupStart":219.20000004768372,"fetchStart":219.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":232.30000007152557,"responseEnd":255.30000007152557,"responseStart":252.40000009536743,"secureConnectionStart":219.20000004768372},{"duration":36.199999928474426,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":219.30000007152557,"connectEnd":219.30000007152557,"connectStart":219.30000007152557,"domainLookupEnd":219.30000007152557,"domainLookupStart":219.30000007152557,"fetchStart":219.30000007152557,"redirectEnd":0,"redirectStart":0,"requestStart":233.10000002384186,"responseEnd":255.5,"responseStart":252.70000004768372,"secureConnectionStart":219.30000007152557},{"duration":11,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":219.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":219.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":230.5,"responseStart":0,"secureConnectionStart":0},{"duration":36.60000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":219.70000004768372,"connectEnd":219.70000004768372,"connectStart":219.70000004768372,"domainLookupEnd":219.70000004768372,"domainLookupStart":219.70000004768372,"fetchStart":219.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":234,"responseEnd":256.3000000715256,"responseStart":253.70000004768372,"secureConnectionStart":219.70000004768372},{"duration":12.199999928474426,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/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":219.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":219.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":232.10000002384186,"responseStart":0,"secureConnectionStart":0},{"duration":42,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/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":220,"connectEnd":220,"connectStart":220,"domainLookupEnd":220,"domainLookupStart":220,"fetchStart":220,"redirectEnd":0,"redirectStart":0,"requestStart":236.30000007152557,"responseEnd":262,"responseStart":257,"secureConnectionStart":220},{"duration":327.6999999284744,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":223.40000009536743,"connectEnd":223.40000009536743,"connectStart":223.40000009536743,"domainLookupEnd":223.40000009536743,"domainLookupStart":223.40000009536743,"fetchStart":223.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":265.90000009536743,"responseEnd":551.1000000238419,"responseStart":542.7000000476837,"secureConnectionStart":223.40000009536743},{"duration":327.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":223.5,"connectEnd":223.5,"connectStart":223.5,"domainLookupEnd":223.5,"domainLookupStart":223.5,"fetchStart":223.5,"redirectEnd":0,"redirectStart":0,"requestStart":299.7000000476837,"responseEnd":551.4000000953674,"responseStart":544.3000000715256,"secureConnectionStart":223.5},{"duration":88,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":556.9000000953674,"connectEnd":556.9000000953674,"connectStart":556.9000000953674,"domainLookupEnd":556.9000000953674,"domainLookupStart":556.9000000953674,"fetchStart":556.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":600.2000000476837,"responseEnd":644.9000000953674,"responseStart":643.6000000238419,"secureConnectionStart":556.9000000953674}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":36,"responseStart":210,"responseEnd":221,"domLoading":214,"domInteractive":963,"domContentLoadedEventStart":963,"domContentLoadedEventEnd":999,"domComplete":1378,"loadEventStart":1378,"loadEventEnd":1378,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":950.6000000238419},{"name":"bigPipe.sidebar-id.end","time":951.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":951.3000000715256},{"name":"bigPipe.activity-panel-pipe-id.end","time":951.7000000476837},{"name":"activityTabFullyLoaded","time":1007.4000000953674}],"measures":[],"correlationId":"63602419d0eaac","effectiveType":"4g","downlink":9.1,"rtt":0,"serverDuration":95,"dbReadsTimeInMs":16,"dbConnsTimeInMs":24,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}