[MDEV-27544] database() function under UNION ALL truncates results to 34 characters despite databases having up to 64 character names Created: 2022-01-19 Updated: 2022-01-20 Resolved: 2022-01-20 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data types |
| Affects Version/s: | 5.5.68, 10.7.1 |
| Fix Version/s: | 10.2.42, 10.3.33, 10.4.23, 10.5.14, 10.6.6, 10.7.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Daniel Black | Assignee: | Daniel Black |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
From https://dba.stackexchange.com/questions/306183/why-is-my-database-name-truncated
Above with 5.5 however have verified it on 10.2. |
| Comments |
| Comment by Daniel Black [ 2022-01-19 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
bar is the fix just the following?
This results in:
Are you happy with this fix? If so I can progress with test cases. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Alexander Barkov [ 2022-01-19 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
danblack, I think the correct way would be:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Daniel Black [ 2022-01-19 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
bar are you happy with https://github.com/MariaDB/server/pull/1988 (test case word taken from https://www.thoughtco.com/longest-german-word-in-the-world-4061494) |