(20241225) Small fix in reconnection attempts for MySQL.

This commit is contained in:
2024-12-25 14:51:24 +05:30
parent d0967854ed
commit 053e2c49e3
32 changed files with 1169 additions and 13 deletions
+1 -12
View File
@@ -129,7 +129,7 @@ class AsyncMySQL:
try:
self.__kwargs["db"] = self.__kwargs.pop("database")
self.__kwargs["db"] = self.__kwargs.pop("database", self.__kwargs["db"])
self.__pool = await aiomysql.create_pool(
minsize = self.__min_pool_size,
maxsize = self.__max_pool_size,
@@ -220,17 +220,6 @@ class AsyncMySQL:
all_result_sets = await self.fetch_all(cursor)
if commit: await connection.commit()
# # Iterate over all result sets,
# # and process them one-by-one:
# while True:
# this_result_set = []
# result = await cursor.fetchall()
# if not cursor.description: break
# columns = [desc[0] for desc in cursor.description]
# for row in result: this_result_set.append(dict(zip(columns, self.__parse_row(row))))
# all_result_sets.append(this_result_set)
# await cursor.nextset()
# Done here:
return all_result_sets