[MDEV-13149] "Incorrect database name" error by SHOW FUNCTION STATUS in PAD_CHAR_TO_FULL_LENGTH mode Created: 2017-06-22 Updated: 2020-08-25 Resolved: 2017-10-10 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data types |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.2 |
| Fix Version/s: | 5.5.58, 10.0.33, 10.1.29, 10.2.10 |
| Type: | Bug | Priority: | Major |
| Reporter: | Richard Stracke | Assignee: | Vesa Pentti (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | upstream-fixed | ||
| Environment: |
all, tested with official docker images |
||
| Sprint: | 10.2.10 |
| Description |
|
If sql-mode PAD_CHAR_TO_FULL_LENGTH is active, show function not work returns ERROR 1102 (42000): Incorrect database name 'aa ' To Reproduce: Preparation:
Show function in with default sql_mode works well:
Set SQL_mode PAD_CHAR_TO_FULL_LENGTH
Show Function throws an error. Search query is filled with spaces up to 64 chars.
It looks like, that the root cause is the column db in the table mysql.proc. Perhaps the sql mode 'PAD_CHAR_TO_FULL_LENGTH' should be ignored |
| Comments |
| Comment by Elena Stepanova [ 2017-06-24 ] | ||||||||||||||||||||||
|
Also reproducible on MySQL 5.5/5.6, but apparently fixed in 5.7 (or maybe it's become so different there that it's incomparable). | ||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2017-10-09 ] | ||||||||||||||||||||||
|
The approach looks ok. Comments: | ||||||||||||||||||||||
| Comment by Vesa Pentti (Inactive) [ 2017-10-09 ] | ||||||||||||||||||||||
|
fix in "bb-5.5-pentve" (still struggling with post-commit mail sender so there hasn't been a commit notification) | ||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2017-10-09 ] | ||||||||||||||||||||||
|
I'd suggest to move
after tables are opened, then you won't need to restore it twice. Ok to push after that. | ||||||||||||||||||||||
| Comment by Vesa Pentti (Inactive) [ 2017-10-09 ] | ||||||||||||||||||||||
|
Good idea. Done. Shall I push the commit directly to "5.5" ? | ||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2017-10-10 ] | ||||||||||||||||||||||
|
Yes, please | ||||||||||||||||||||||
| Comment by Vesa Pentti (Inactive) [ 2017-10-10 ] | ||||||||||||||||||||||
|
Pushed to 5.5 |