You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The sqlite3 client takes user defined functions and replaces the text with "user-defined function raised exception`" so it's not apparent what's gone wrong:
Unexpected error: user-defined function raised exception
I'm nervous to set this by default in the Python library because it's a global setting, so I can't isolate it to just code that is being called by a sqlite_utils method.
The new sqlite-utils convert command from #251 DOES turn it on - I think having it on by default for a CLI tool that uses user-defined functions makes sense:
The sqlite3 client takes user defined functions and replaces the text with "user-defined function raised exception`" so it's not apparent what's gone wrong:
As mentioned in https://code.djangoproject.com/ticket/29500 and https://stackoverflow.com/questions/45824209/how-to-get-an-error-kind-from-sqlite-create-function/45834923#45834923 the workaround for this is to enable callback tracebacks:
It would be nice if https://sqlite-utils.datasette.io/en/stable/python-api.html#registering-custom-sql-functions either included a reference to
enable_callback_tracebacks
or if registering a user defined function set this flag automatically.The text was updated successfully, but these errors were encountered: