The problem is repeatable with all versions from 10.2 to 10.7.
CREATE OR REPLACE TABLE t1 (a TINYTEXT character set utf8) engine=myisam default charset=utf8;
INSERT IGNORE INTO t1 VALUES (REPEAT(_utf8 0xD184, 250));
SELECT LENGTH(a), CHAR_LENGTH(a), RIGHT (a,3) FROM t1;
+-----------+----------------+------------+
| LENGTH(a) | CHAR_LENGTH(a) | RIGHT(a,3) |
+-----------+----------------+------------+
| 255 | 128 | фф? |
+-----------+----------------+------------+
Looks wrong. There should not be ? at the end. The expected result is:
+-----------+----------------+------------+
| LENGTH(a) | CHAR_LENGTH(a) | RIGHT(a,3) |
+-----------+----------------+------------+
| 254 | 127 | ффф |
+-----------+----------------+------------+
Elena Stepanova
made changes -
2021-01-11 21:40
Field
Original Value
New Value
Fix Version/s
10.2
[ 14601
]
Fix Version/s
10.3
[ 22126
]
Fix Version/s
10.4
[ 22408
]
Fix Version/s
10.5
[ 23123
]
Affects Version/s
10.2
[ 14601
]
Affects Version/s
10.3
[ 22126
]
Affects Version/s
10.4
[ 22408
]
Elena Stepanova
made changes -
2021-01-11 21:40
Status
Open
[ 1
]
Confirmed
[ 10101
]
Alexander Barkov
made changes -
2021-11-02 04:48
Assignee
Alexander Barkov
[ bar
]
Alexander Barkov
made changes -
2021-11-02 04:48
Status
Confirmed
[ 10101
]
In Progress
[ 3
]
Alexander Barkov
made changes -
2021-11-02 05:04
Status
In Progress
[ 3
]
Stalled
[ 10000
]
Alexander Barkov
made changes -
2021-11-02 05:06
Description
Tested with 10.5. But the problem is probably repeatable with earlier versions.
{code:sql}
CREATE OR REPLACE TABLE t1 (a TINYTEXT character set utf8) engine=myisam default charset=utf8;
INSERT IGNORE INTO t1 VALUES (REPEAT(_utf8 0xD184, 250));
SELECT LENGTH(a), CHAR_LENGTH(a), RIGHT(a,3) FROM t1;
{code}
{noformat}
+-----------+----------------+------------+
| LENGTH(a) | CHAR_LENGTH(a) | RIGHT(a,3) |
+-----------+----------------+------------+
| 255 | 128 | фф? |
+-----------+----------------+------------+
{noformat}
Looks wrong. There should not be ? at the end. The expected result is:
{noformat}
+-----------+----------------+------------+
| LENGTH(a) | CHAR_LENGTH(a) | RIGHT(a,3) |
+-----------+----------------+------------+
| 254 | 127 | ффф |
+-----------+----------------+------------+
{noformat}
The problem is repeatable with all versions from 10.2 to 10.7.
{code:sql}
CREATE OR REPLACE TABLE t1 (a TINYTEXT character set utf8) engine=myisam default charset=utf8;
INSERT IGNORE INTO t1 VALUES (REPEAT(_utf8 0xD184, 250));
SELECT LENGTH(a), CHAR_LENGTH(a), RIGHT(a,3) FROM t1;
{code}
{noformat}
+-----------+----------------+------------+
| LENGTH(a) | CHAR_LENGTH(a) | RIGHT(a,3) |
+-----------+----------------+------------+
| 255 | 128 | фф? |
+-----------+----------------+------------+
{noformat}
Looks wrong. There should not be ? at the end. The expected result is:
{noformat}
+-----------+----------------+------------+
| LENGTH(a) | CHAR_LENGTH(a) | RIGHT(a,3) |
+-----------+----------------+------------+
| 254 | 127 | ффф |
+-----------+----------------+------------+
{noformat}
Alexander Barkov
made changes -
2021-11-02 05:24
issue.field.resolutiondate
2021-11-02 05:24:19.0
2021-11-02 05:24:19.849
Alexander Barkov
made changes -
2021-11-02 05:24
Fix Version/s
10.2.41
[ 26032
]
Fix Version/s
10.3.32
[ 26029
]
Fix Version/s
10.4.22
[ 26031
]
Fix Version/s
10.5.13
[ 26026
]
Fix Version/s
10.6.5
[ 26034
]
Fix Version/s
10.7.1
[ 26120
]
Fix Version/s
10.2
[ 14601
]
Fix Version/s
10.3
[ 22126
]
Fix Version/s
10.4
[ 22408
]
Fix Version/s
10.5
[ 23123
]
Resolution
Fixed
[ 1
]
Status
Stalled
[ 10000
]
Closed
[ 6
]
Daniel Bartholomew
made changes -
2021-11-08 19:24
Fix Version/s
10.2.42
[ 26803
]
Fix Version/s
10.3.33
[ 26805
]
Fix Version/s
10.4.23
[ 26807
]
Fix Version/s
10.5.14
[ 26809
]
Fix Version/s
10.6.6
[ 26811
]
Fix Version/s
10.7.2
[ 26813
]
Fix Version/s
10.5.13
[ 26026
]
Fix Version/s
10.3.32
[ 26029
]
Fix Version/s
10.4.22
[ 26031
]
Fix Version/s
10.2.41
[ 26032
]
Fix Version/s
10.6.5
[ 26034
]
Fix Version/s
10.7.1
[ 26120
]
Sergei Golubchik
made changes -
2021-12-06 21:52
Workflow
MariaDB v3
[ 116415
]
MariaDB v4
[ 158647
]
{"report":{"fcp":1359.7000000476837,"ttfb":732.2000000476837,"pageVisibility":"visible","entityId":94491,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"bfc50ca6-56c5-4d59-a6ea-348ff20c0e99","navigationType":0,"readyForUser":1440.2000000476837,"redirectCount":0,"resourceLoadedEnd":1658.5,"resourceLoadedStart":737.8000001907349,"resourceTiming":[{"duration":59,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":737.8000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":737.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":796.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":59.09999990463257,"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":738.1000001430511,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":738.1000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":797.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":115.10000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":738.2000000476837,"connectEnd":738.2000000476837,"connectStart":738.2000000476837,"domainLookupEnd":738.2000000476837,"domainLookupStart":738.2000000476837,"fetchStart":738.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":738.2000000476837,"responseEnd":853.3000001907349,"responseStart":853.3000001907349,"secureConnectionStart":738.2000000476837},{"duration":197.20000004768372,"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":738.5,"connectEnd":738.5,"connectStart":738.5,"domainLookupEnd":738.5,"domainLookupStart":738.5,"fetchStart":738.5,"redirectEnd":0,"redirectStart":0,"requestStart":738.5,"responseEnd":935.7000000476837,"responseStart":935.7000000476837,"secureConnectionStart":738.5},{"duration":201.20000004768372,"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":738.7000000476837,"connectEnd":738.7000000476837,"connectStart":738.7000000476837,"domainLookupEnd":738.7000000476837,"domainLookupStart":738.7000000476837,"fetchStart":738.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":738.7000000476837,"responseEnd":939.9000000953674,"responseStart":939.9000000953674,"secureConnectionStart":738.7000000476837},{"duration":201.40000009536743,"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":738.9000000953674,"connectEnd":738.9000000953674,"connectStart":738.9000000953674,"domainLookupEnd":738.9000000953674,"domainLookupStart":738.9000000953674,"fetchStart":738.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":738.9000000953674,"responseEnd":940.3000001907349,"responseStart":940.3000001907349,"secureConnectionStart":738.9000000953674},{"duration":201.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":739.1000001430511,"connectEnd":739.1000001430511,"connectStart":739.1000001430511,"domainLookupEnd":739.1000001430511,"domainLookupStart":739.1000001430511,"fetchStart":739.1000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":739.1000001430511,"responseEnd":940.7000000476837,"responseStart":940.7000000476837,"secureConnectionStart":739.1000001430511},{"duration":263.19999980926514,"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":739.3000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":739.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1002.5,"responseStart":0,"secureConnectionStart":0},{"duration":201.70000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":739.4000000953674,"connectEnd":739.4000000953674,"connectStart":739.4000000953674,"domainLookupEnd":739.4000000953674,"domainLookupStart":739.4000000953674,"fetchStart":739.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":739.4000000953674,"responseEnd":941.1000001430511,"responseStart":941.1000001430511,"secureConnectionStart":739.4000000953674},{"duration":263,"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":739.6000001430511,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":739.6000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1002.6000001430511,"responseStart":0,"secureConnectionStart":0},{"duration":201.89999985694885,"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":739.8000001907349,"connectEnd":739.8000001907349,"connectStart":739.8000001907349,"domainLookupEnd":739.8000001907349,"domainLookupStart":739.8000001907349,"fetchStart":739.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":739.8000001907349,"responseEnd":941.7000000476837,"responseStart":941.7000000476837,"secureConnectionStart":739.8000001907349},{"duration":489.30000019073486,"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":740.5,"connectEnd":740.5,"connectStart":740.5,"domainLookupEnd":740.5,"domainLookupStart":740.5,"fetchStart":740.5,"redirectEnd":0,"redirectStart":0,"requestStart":740.5,"responseEnd":1229.8000001907349,"responseStart":1229.8000001907349,"secureConnectionStart":740.5},{"duration":889.7000000476837,"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":745.4000000953674,"connectEnd":745.4000000953674,"connectStart":745.4000000953674,"domainLookupEnd":745.4000000953674,"domainLookupStart":745.4000000953674,"fetchStart":745.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":745.4000000953674,"responseEnd":1635.1000001430511,"responseStart":1635.1000001430511,"secureConnectionStart":745.4000000953674},{"duration":215.59999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1014.8000001907349,"connectEnd":1014.8000001907349,"connectStart":1014.8000001907349,"domainLookupEnd":1014.8000001907349,"domainLookupStart":1014.8000001907349,"fetchStart":1014.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1014.8000001907349,"responseEnd":1230.4000000953674,"responseStart":1230.3000001907349,"secureConnectionStart":1014.8000001907349},{"duration":350.19999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1308.3000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1308.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1658.5,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":519,"responseStart":732,"responseEnd":739,"domLoading":736,"domInteractive":1670,"domContentLoadedEventStart":1670,"domContentLoadedEventEnd":1718,"domComplete":2185,"loadEventStart":2185,"loadEventEnd":2185,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1636.9000000953674},{"name":"bigPipe.sidebar-id.end","time":1637.8000001907349},{"name":"bigPipe.activity-panel-pipe-id.start","time":1638},{"name":"bigPipe.activity-panel-pipe-id.end","time":1642.9000000953674},{"name":"activityTabFullyLoaded","time":1736.3000001907349}],"measures":[],"correlationId":"42d5b511d07ee3","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":143,"dbReadsTimeInMs":18,"dbConnsTimeInMs":28,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}