Type:
Bug
Priority:
Critical
Resolution:
Won't Fix
Affects Version/s:
None
can be discussed
Is there a reason this row number cannot be a part of the error message itself (in addition to diagnostics property)?
It wouldn't be anything new, we already have it for some errors, e.g.
MariaDB [test]> insert into t1 values (1, 'foo' ),(2, 'foobar' );
ERROR 1406 (22001): Data too long for column 'c' at row 2
While diagnostics property is useful to detect the number of the flawed row programmatically, in interactive execution having it in the error text is clearly more user-friendly, especially when many values are involved:
MariaDB [test]> insert ignore into t1 values (1, 'foo' ),(2, 'foobar' ),(2, 'bar' ),(3, 'a' ),(4, 'qux' ),(4, 'quux' ),(5, 'baz' );
Query OK, 5 rows affected, 4 warnings (0.014 sec)
Records: 7 Duplicates: 2 Warnings: 4
MariaDB [test]> show warnings;
+ ---------+------+----------------------------------------+
| Level | Code | Message |
+ ---------+------+----------------------------------------+
| Warning | 1265 | Data truncated for column 'c' at row 2 |
| Warning | 1062 | Duplicate entry '2' for key 'PRIMARY' |
| Warning | 1265 | Data truncated for column 'c' at row 6 |
| Warning | 1062 | Duplicate entry '4' for key 'PRIMARY' |
+ ---------+------+----------------------------------------+
4 rows in set (0.000 sec)
is caused by
MDEV-10075
Provide index of error causing error in array INSERT
Closed
{"report":{"fcp":2309,"ttfb":890.6999998092651,"pageVisibility":"visible","entityId":102759,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"a853da4b-91ff-47d9-8bcf-118d6dbb5a58","navigationType":0,"readyForUser":2417.7999997138977,"redirectCount":0,"resourceLoadedEnd":2029.5999999046326,"resourceLoadedStart":897.6999998092651,"resourceTiming":[{"duration":332.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":897.6999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":897.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1230.2999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":332.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":898,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":898,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1230.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":846.3000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":898.1999998092651,"connectEnd":898.1999998092651,"connectStart":898.1999998092651,"domainLookupEnd":898.1999998092651,"domainLookupStart":898.1999998092651,"fetchStart":898.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":1232.4000000953674,"responseEnd":1744.5,"responseStart":1332.4000000953674,"secureConnectionStart":898.1999998092651},{"duration":1042.8999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":898.4000000953674,"connectEnd":898.4000000953674,"connectStart":898.4000000953674,"domainLookupEnd":898.4000000953674,"domainLookupStart":898.4000000953674,"fetchStart":898.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1232.5,"responseEnd":1941.2999997138977,"responseStart":1302.5999999046326,"secureConnectionStart":898.4000000953674},{"duration":402.7999997138977,"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":898.5,"connectEnd":898.5,"connectStart":898.5,"domainLookupEnd":898.5,"domainLookupStart":898.5,"fetchStart":898.5,"redirectEnd":0,"redirectStart":0,"requestStart":1232.6999998092651,"responseEnd":1301.2999997138977,"responseStart":1297.9000000953674,"secureConnectionStart":898.5},{"duration":411.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":898.7999997138977,"connectEnd":898.7999997138977,"connectStart":898.7999997138977,"domainLookupEnd":898.7999997138977,"domainLookupStart":898.7999997138977,"fetchStart":898.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":1232.7999997138977,"responseEnd":1310.5999999046326,"responseStart":1309.6999998092651,"secureConnectionStart":898.7999997138977},{"duration":413.90000009536743,"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":899,"connectEnd":899,"connectStart":899,"domainLookupEnd":899,"domainLookupStart":899,"fetchStart":899,"redirectEnd":0,"redirectStart":0,"requestStart":1250.7999997138977,"responseEnd":1312.9000000953674,"responseStart":1310.6999998092651,"secureConnectionStart":899},{"duration":331.90000009536743,"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":899.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":899.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1231,"responseStart":0,"secureConnectionStart":0},{"duration":435,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":899.2999997138977,"connectEnd":899.2999997138977,"connectStart":899.2999997138977,"domainLookupEnd":899.2999997138977,"domainLookupStart":899.2999997138977,"fetchStart":899.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":1250.9000000953674,"responseEnd":1334.2999997138977,"responseStart":1313.0999999046326,"secureConnectionStart":899.2999997138977},{"duration":332,"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":899.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":899.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1231.5,"responseStart":0,"secureConnectionStart":0},{"duration":414.90000009536743,"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":899.5999999046326,"connectEnd":899.5999999046326,"connectStart":899.5999999046326,"domainLookupEnd":899.5999999046326,"domainLookupStart":899.5999999046326,"fetchStart":899.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":1251,"responseEnd":1314.5,"responseStart":1311.5999999046326,"secureConnectionStart":899.5999999046326},{"duration":1068,"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":905.5999999046326,"connectEnd":905.5999999046326,"connectStart":905.5999999046326,"domainLookupEnd":905.5999999046326,"domainLookupStart":905.5999999046326,"fetchStart":905.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":1504.2999997138977,"responseEnd":1973.5999999046326,"responseStart":1961.2999997138977,"secureConnectionStart":905.5999999046326},{"duration":1123.8000001907349,"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":905.7999997138977,"connectEnd":905.7999997138977,"connectStart":905.7999997138977,"domainLookupEnd":905.7999997138977,"domainLookupStart":905.7999997138977,"fetchStart":905.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":2002.6999998092651,"responseEnd":2029.5999999046326,"responseStart":2015.6999998092651,"secureConnectionStart":905.7999997138977},{"duration":369.59999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1891.4000000953674,"connectEnd":1891.4000000953674,"connectStart":1891.4000000953674,"domainLookupEnd":1891.4000000953674,"domainLookupStart":1891.4000000953674,"fetchStart":1891.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":2219,"responseEnd":2261,"responseStart":2259.0999999046326,"secureConnectionStart":1891.4000000953674}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":723,"responseStart":891,"responseEnd":899,"domLoading":895,"domInteractive":2483,"domContentLoadedEventStart":2483,"domContentLoadedEventEnd":2541,"domComplete":3571,"loadEventStart":3571,"loadEventEnd":3572,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2461.5999999046326},{"name":"bigPipe.sidebar-id.end","time":2462.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":2462.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":2463.699999809265},{"name":"activityTabFullyLoaded","time":2562.7999997138977}],"measures":[],"correlationId":"f23be2acc0e2aa","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":98,"dbReadsTimeInMs":19,"dbConnsTimeInMs":28,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}