-
Notifications
You must be signed in to change notification settings - Fork 98
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
It is not possible to use register_converter #240
Comments
I'm still hitting this. Exact same scenario.
|
I was able to work around this: sqlite3.register_adapter(bool, int)
sqlite3.register_converter("BOOLEAN", lambda v: bool(int(v)))
connection = await aiosqlite.connect(DATABASE, detect_types=sqlite3.PARSE_DECLTYPES) Note that I had to use |
@wreimers Thanks for sharing the workaround. It's odd that |
|
Description
In sqlite3 I can register converters to get correct data types.
I can't use register_converter
Thats take no effect
Details
The text was updated successfully, but these errors were encountered: