Open Meztlicoatl opened 2 weeks ago
Do you have a question or just wanted to share this? As you said, you tried to access the database using a different process that didn't have the necessary extension to work with the database file.
I posted this issue as recommended here in the API docs:
Sorry, I did not realize that. It was not clear from your message, you should re-open the issue then as it has not been resolved.
I think the error needs to be added to https://github.com/WiseLibs/better-sqlite3/blob/f01e0e42da4b8ba509961e772132e69ef5aa11c0/src/util/constants.lzz#L116 if you're interested in creating a PR.
Sorry for not being clear. First time doing this :D. Fixed as requested and PR done #1273.
I'm using a SQLite extension, particularly ICU support: I loaded it in the database creation and did normal things. Then, I tried to fill up that database with a separate script and connection, running a different ts-node instance. I forgot to update this script to also load this particular extension with the required connection, so I guess that was the cause. Also, the error code description matches my guess: https://www.sqlite.org/rescode.html#error_missing_collseq
The error stack:
And the other main script where I loaded the extension: