Skip to content

Commit

Permalink
Update connections.py
Browse files Browse the repository at this point in the history
Added New Field type char , set ,enums,Binary
  • Loading branch information
Ishanv5 authored Mar 31, 2024
1 parent 9fd238b commit 2c9e78d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/MySQLdb/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 2c9e78d

Please sign in to comment.