Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions app/plugin/datasource_MySQL.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ async def execute(self, sql, params=()):
async with self.pool.acquire() as conn:
async with conn.cursor() as cursor:
await cursor.execute(sql, params)
await conn.commit()
except Exception as e:
if not self.connection_error_reported:
logging.error(f'MySQL Async Execute Error: {e}')
Expand All @@ -81,7 +80,6 @@ async def fetch(self, sql, params=()):
async with self.pool.acquire() as conn:
async with conn.cursor(aiomysql.DictCursor) as cursor:
await cursor.execute(sql, params)
await conn.commit()
rows = await cursor.fetchall()
except Exception as e:
if not self.connection_error_reported:
Expand Down Expand Up @@ -124,7 +122,8 @@ async def connect(self):

try:
pool = await aiomysql.create_pool(
host=self.host, port=self.port, user=self.user, password=self.password, db=self.database
host=self.host, port=self.port, user=self.user, password=self.password, db=self.database,
autocommit=True
)
except Exception as e:
logging.error(f'AsyncMySQL: {self.url}: {e}')
Expand Down
3 changes: 2 additions & 1 deletion app/plugin/datasource_MySQL_NoAsync.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ async def connect(self):
try:
conn = mysql.connect(
host=self.host, port=self.port, user=self.user,
password=self.password, database=self.database
password=self.password, database=self.database,
autocommit=True
)
except Exception as e:
logging.error("MySQL: %s: %s" % (self.url, str(e)))
Expand Down
2 changes: 1 addition & 1 deletion app/server/sd_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
slowdash_version = '260602 "Stawamus"'
slowdash_version = '260623 "Stawamus"'
Loading