[MDEV-15337] Collation handling in view changed in 10.1.29 Created: 2018-02-16 Updated: 2018-11-20 Resolved: 2018-11-20 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Documentation - Support, Server |
| Affects Version/s: | 10.1.29 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Claudio Nanni | Assignee: | Kenneth Dyer (Inactive) |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Environment: |
RHEL 7.3 |
||
| Attachments: |
|
| Description |
|
There's apparently a difference in view collation handling between 10.1.28 and 10.1.29 Test case :
It passes in 10.1.29 but it broke before 10.1.29 : It has been noticed it on 10.1.20. It also breaks on 5.6.39, 5.7.21 and 8.0.4
To reproduce, just run the below example or
The way client collation influences view collation is not well documented either in MariaDB nor MySQL. Is a documentation bug report needed? Apparently the collation used by the view is the collation of the connection that created the view. For stored procedures, it is the default database collation if not specified. So this works for any version :
|
| Comments |
| Comment by Elena Stepanova [ 2018-02-16 ] | |||||
|
The change was caused by the bugfix for
Unless there is a suspicion that the new behavior is wrong, the most we can do is redirect it to documentation. | |||||
| Comment by Arnaud Adant [ 2018-02-19 ] | |||||
|
Yes, the document is not very clear regarding collation and views. Maybe this is just a documentation bug. |