-
Notifications
You must be signed in to change notification settings - Fork 97
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
make_virtual_module
fails when using TypesConverterCursorFactory
#495
Comments
Nothing to do with Virtual tables are a SQLite thing which means they only operate on SQLite supported data types. I've changed the error message, so now you get this as the last line of the exception:
There is a You could change the yield line to this which would convert the value into something SQLite supports.
But then on running you will get this where the values are the adapted ones (strings).
The reason for that is the virtual table at the SQLite level does not have declared column types. Using apsw.ext.query_info will include this where the In short, this is trying really hard to pretend SQLite supports COMPLEX but that has to be done everywhere. If the You can however do it yourself. You can copy |
Thinking about it a little more, I'd recommend you avoid |
Will do. Thanks for your help! |
I have this small script based on examples in the Example/Tour section of the documentation (1, 2)
it fails with the following error on my system:
Is there a simple solution to this error, or do I need to look further into the documentation for virtual tables?
The text was updated successfully, but these errors were encountered: