debian-start: SQL Syntax Error with Table Name Containing Hyphen
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| mariadb (Ubuntu) |
Fix Released
|
Medium
|
Otto Kekäläinen | ||
Bug Description
Ubuntu 24.04.1 LTS
mariadb-server 10.11.8
Dear Maintainer,
When attempting to run the Debian start script (/etc/mysql/
Oct 24 16:14:53 ubuntu /etc/mysql/
Oct 24 16:14:53 ubuntu /etc/mysql/
There is a bug in the script /usr/share/
SELECT CONCAT("select count(*) into @discard from '\''", TABLE_SCHEMA, "'\''.'\''", TABLE_NAME, "'\''")
The SQL command fails because the table name is not enclosed in backticks. Under Ubuntu 22.04 with MariaDB 10.6.18 the corresponding line is correct and contains the necessary backticks:
select concat('\''select count(*) into @discard from `'\'', TABLE_SCHEMA, '\''`.`'\'', TABLE_NAME, '\''`'\'')
Best regards
CVE References
| Changed in mariadb (Ubuntu): | |
| status: | Confirmed → In Progress |
| assignee: | nobody → Otto Kekäläinen (otto) |
| importance: | Undecided → Medium |

Thanks for the bug report!
In the spirit of open source, would you like to submit your fix as a Merge Request at https:/ /salsa. debian. org/mariadb- team/mariadb- server?
This improvement should go into Debian unstable first, and if there are no regressions, it can be backported to Ubuntu 24.04.