[MDEV-7055] MySQL#74664 - InnoDB: Failing assertion: len <= col->len || col->mtype == 5 || (col->len == 0 && col->mtype == 1) in file rem0rec.cc line 845 Created: 2014-11-09 Updated: 2018-01-01 Resolved: 2018-01-01 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 5.5, 10.0 |
| Fix Version/s: | 5.5.42, 10.0.17, 10.1.4 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Elena Stepanova | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | upstream | ||
| Issue Links: |
|
||||||||
| Sprint: | 5.5.47-1 | ||||||||
| Description |
|
Initially reported by Ramesh Sivaraman as http://bugs.mysql.com/bug.php?id=74664, refiling to make it searchable in Jira and to preserve the test case.
|
| Comments |
| Comment by Jan Lindström (Inactive) [ 2015-02-04 ] | |||||||
|
Debug assertion maybe too strict, no real affect on product builds. | |||||||
| Comment by Jan Lindström (Inactive) [ 2015-04-28 ] | |||||||
|
Fix wrong. | |||||||
| Comment by Jan Lindström (Inactive) [ 2015-12-08 ] | |||||||
|
http://lists.askmonty.org/pipermail/commits/2015-December/008706.html Not sure if test case should contain other possible client charsets where mbminlen > 1. | |||||||
| Comment by Alexander Barkov [ 2015-12-08 ] | |||||||
|
It seems date_format() creates a wrong result:
Notice, 3 bytes. In UCS2 length must be an even number. | |||||||
| Comment by Jan Lindström (Inactive) [ 2015-12-08 ] | |||||||
|
Correct, with my fix it will give following result set SET character_set_connection=ucs2; | |||||||
| Comment by Alexander Barkov [ 2015-12-08 ] | |||||||
|
These loops in make_date_time() and Item_func_date_format::format_length() stay as is since MySQL-4.0 time. | |||||||
| Comment by Jan Lindström (Inactive) [ 2015-12-08 ] | |||||||
|
I do not mind, if there is better and more correct way than directly referring to the string as an array of 8-bit characters, it should be used, I'm not familiar with those mb functions, so I fixed the issue with traditional methods, there could be other problems I did not yet explore. | |||||||
| Comment by Daniel Black [ 2018-01-01 ] | |||||||
|
Fixed with f32091532da365db85d5441ddff212995e15aa9e it seems. |