Fix: Add fetchall() to consume remaining results and prevent MySQL cursor error

parent b6e675c1
......@@ -2948,6 +2948,7 @@ class DatabaseManager:
''', (user_id, provider_id, model_name))
existing = cursor.fetchone()
cursor.fetchall() # Consume any remaining results to avoid "Unread result found" error
if existing:
# Update existing record
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment