Skip to content

Creating a single item ENUM result incorrect #2

@ramdyne

Description

@ramdyne

Creating an enum using a Python tuple could result in the following:
python my_enum = ("FIRST")

This results in a column in the database (at least for MySQL) with the following:
mysql column enum('F','I','R','S','T') DEFAULT NULL,
Which is of course not what was meant. The generated tuple should have the following format to fix this:
python my_enum = ("FIRST",)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions