-
-
Notifications
You must be signed in to change notification settings - Fork 238
Closed
Description
go-mysql-server/sql/settype.go
Line 102 in 82a31ef
| lowercaseValue := strings.ToLower(value) |
I'm not sure what the reasoning is behind this, bu it is causing issues with the SQLAlchemy ORM which sees the ENUM values as lowercase, causing it to raise errors like:
'UNSPECIFIED' is not among the defined enum values. Enum name: None. Possible values: inpatient, outpatient, both, unspecifiedSchema (https://www.dolthub.com/repositories/dolthub/hospital-price-transparency-v3):
create table prices (
[...]
inpatient_outpatient enum('INPATIENT', 'OUTPATIENT', 'BOTH', 'UNSPECIFIED') default 'UNSPECIFIED',
[...]
);ENUM name is also None which should also be fixed.
Metadata
Metadata
Assignees
Labels
No labels