Skip to content

Commit c3396ea

Browse files
committed
BUG27639119: Use a list of dictionaries to store warnings
Currently warnings are stored in a list of tuples, this patch changes to a list of dictionaries.
1 parent 08de220 commit c3396ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mysqlx/result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ def append_warning(self, level, code, msg):
655655
code (int): The warning code.
656656
msg (str): The warning message.
657657
"""
658-
self._warnings.append((level, code, msg,))
658+
self._warnings.append({"level": level, "code": code, "msg": msg})
659659

660660
def set_generated_ids(self, generated_ids):
661661
"""Sets the generated ids.

0 commit comments

Comments
 (0)