Dirty fixing of some more mariadb -> mysql-connector issues....

This commit is contained in:
Cedric
2023-08-05 18:17:57 +02:00
parent e4586a5834
commit 7f55828c5f
5 changed files with 12 additions and 7 deletions
+3 -1
View File
@@ -5,6 +5,7 @@ import threading
import time
import mysql.connector
from mysql.connector.cursor import CursorBase
# noinspection PyProtectedMember
from pkg_resources import parse_version
@@ -64,7 +65,8 @@ class DB:
with self.pool.get_connection() as conn:
conn.auto_reconnect = True
conn.autocommit = True
with conn.cursor(dictionary=True) as cur:
with conn.cursor(dictionary=True, buffered=True) as cur:
cur: CursorBase
try:
string: str = sql.upper()