-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use enum (or any type) as argumenets #30
Comments
Could you give link for that? |
do you mean |
Yes |
didn't find doc about this, but it's raised in the exception message |
OK |
Maybe it's a undefined behavior? What ever, it would be better if we can use enum value directly. |
long2ice
added a commit
that referenced
this issue
Dec 27, 2021
Fixed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to build a query like this
Table.column == TopicState.TOPIC_STATE_NONE
, but I got aValueError
TypeError: Argument 'value' has incorrect type (expected str, got TopicState)
To avoid this, I need to
Table.column == TopicState.TOPIC_STATE_NONE.value
to get enum's underlying value.In aiomysql, I can add a method
translate(self, _escape_table)
to support any type, is there any way in asyncmy we can do this?The text was updated successfully, but these errors were encountered: