(20241225) Small fix in reconnection attempts for MySQL.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user