Dirty fixing of some more mariadb -> mysql-connector issues....
This commit is contained in:
+3
-1
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user