mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-18 16:31:26 -07:00
Fix the collection to work with mysqlclient connector (#293)
* Integration tests: restrict exclusion mysqlclient + MariaDB only when testing the mysql_role module * Fix * Fix underlying issue * Fix units * Add changelog fragment
This commit is contained in:
parent
71a628f82d
commit
f00f06df76
5 changed files with 11 additions and 9 deletions
|
@ -481,7 +481,7 @@ class MariaDBQueryBuilder():
|
|||
Returns:
|
||||
tuple: (query_string, tuple_containing_parameters).
|
||||
"""
|
||||
return "SELECT count(*) FROM mysql.user WHERE user = %s AND is_role = 'Y'", (self.name)
|
||||
return "SELECT count(*) FROM mysql.user WHERE user = %s AND is_role = 'Y'", (self.name,)
|
||||
|
||||
def role_grant(self, user):
|
||||
"""Return a query to grant a role to a user or role.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue