mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-07-15 17:40:52 -07:00
Allow the "%" character in database name
The naming rules for MySQL/MariaDB identifiers, when quoted, allow the `%` character. However, currently, the use of the `%` character in database names results in mismatch or missing databases. - Rewrite query to identify the databases in the catalog using `information_schema` instead of `SHOW DATABASES LIKE` - Escape the `%` character in `CREATE DATABASE` query. Signed-off-by: Nicolas Payart <npayart@gmail.com>
This commit is contained in:
parent
f47d4635f1
commit
1c5a23b2c3
4 changed files with 309 additions and 285 deletions
2
changelogs/fragments/227-db-create-special-name.yaml
Normal file
2
changelogs/fragments/227-db-create-special-name.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- mysql_db - Fix mismatch when database name contains a ``%`` character (https://github.com/ansible-collections/community.mysql/pull/227).
|
Loading…
Add table
Add a link
Reference in a new issue