diff --git a/rag/utils/opendal_conn.py b/rag/utils/opendal_conn.py index 715c18d19..7a3b44f0d 100644 --- a/rag/utils/opendal_conn.py +++ b/rag/utils/opendal_conn.py @@ -95,7 +95,7 @@ class OpenDALStorage: ) cursor = conn.cursor() max_packet = self._kwargs.get('max_allowed_packet', 4194304) # Default to 4MB if not specified - cursor.execute(SET_MAX_ALLOWED_PACKET_SQL.format(max_packet)) + cursor.execute(SET_MAX_ALLOWED_PACKET_SQL, (max_packet,)) conn.commit() cursor.close() conn.close()