mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-07-31 17:11:25 -07:00
fix missing Warning attr. on MockCursor
This commit is contained in:
parent
54b4effcc6
commit
81045d074b
1 changed files with 4 additions and 1 deletions
|
@ -20,9 +20,12 @@ class dummy_cursor_class():
|
|||
|
||||
|
||||
class MockCursor:
|
||||
def __init__(self, status="ONLINE"):
|
||||
Warning = None
|
||||
|
||||
def __init__(self, status="ONLINE", warning = None):
|
||||
self.status = status
|
||||
self.executed_queries = []
|
||||
self.Warning = warning
|
||||
|
||||
def execute(self, query):
|
||||
self.executed_queries.append(query)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue