From 2c9e78dd9b5510b4d78df765427cd5b6a95a1f36 Mon Sep 17 00:00:00 2001 From: Ishan Vaghela <86005959+Ishanv5@users.noreply.github.com> Date: Sun, 31 Mar 2024 18:56:23 +0530 Subject: [PATCH] Update connections.py Added New Field type char , set ,enums,Binary --- src/MySQLdb/connections.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/MySQLdb/connections.py b/src/MySQLdb/connections.py index c713229..0d2627c 100644 --- a/src/MySQLdb/connections.py +++ b/src/MySQLdb/connections.py @@ -222,6 +222,10 @@ class object, used to create cursors (keyword only) FIELD_TYPE.MEDIUM_BLOB, FIELD_TYPE.LONG_BLOB, FIELD_TYPE.BLOB, + FIELD_TYPE.SET, + FIELD_TYPE.ENUMS, + FIELD_TYPE.BINARY, + FIELD_TYPE.CHAR ): self.converter[t] = _bytes_or_str # Unlike other string/blob types, JSON is always text.