Comments (11)
Code at fault:
datasette/datasette/utils/__init__.py
Lines 1137 to 1150 in 7437d40
from datasette.
The key problem here is that opcodes are not a stable feature of SQLite, so it was always risk to attempt to use them in this way.
from datasette.
We need to ensure SQLite 3.46.0 is covered in the new tests here:
from datasette.
Posted about this on the SQLite forum - https://sqlite.org/forum/forumpost/0adbc56447 - but since opcodes are an undocumented and unsupported interface I don't expect them to fix it.
from datasette.
This mechanism here was already supposed to catch things if SQLite broke the mechanism I was using:
datasette/datasette/utils/__init__.py
Lines 1149 to 1150 in 7437d40
But it didn't think to catch AttributeError
.
from datasette.
Here's the macOS SQLite 3.46.0 libsqlite3.0.dylib
I was using: https://static.simonwillison.net/static/2024/libsqlite3.0.dylib
from datasette.
Here's the commit that removed this feature: https://sqlite.org/src/info/dd5977c9a8a418be
Via https://sqlite.org/forum/forumpost/1cafc721009cef7f
from datasette.
I manually tested the patch to 0.64.x like this:
DYLD_LIBRARY_PATH=sqlite-3.46.0 datasette fixtures.db -m issue-2353.yaml -p 8034
Then visited http://127.0.0.1:8034/fixtures/demo?table=facetable and it worked.
I confirmed that the page had an error before applying that cherry-pick.
from datasette.
Here's the full set of changes going out in 0.64.7: 0.64.6...0.64.7
from datasette.
Released: https://pypi.org/project/datasette/0.64.7/ / https://docs.datasette.io/en/stable/changelog.html#v0-64-7
from datasette.
Blogged about the release here: https://simonwillison.net/2024/Jun/12/datasette-0647/
from datasette.
Related Issues (20)
- Fix font size on filter inputs
- base_url getting appended twice in redirects when applying filters? HOT 3
- Accessibility: add a `lang` attribute to `html` HOT 1
- What minimal SQLite version should Datasette support? HOT 9
- Remove upserts in `set_XXX_metadata()` methods
- PyOdide test failure HOT 7
- derive_named_parameters() method that works with latest SQLite HOT 5
- Flaky test_max_csv_mb test HOT 3
- Very weird flaky test_create_table_ignore_replace and test_upsert tests HOT 18
- multiple plugins extending the same base template?
- Consider using isolation_level="IMMEDIATE" for write connections HOT 5
- Database/Table/Row not found errors echo back text from URL HOT 7
- Proposal — Datasette JSON API changes for 1.0 HOT 4
- Block or rate limit based on User Agent? HOT 3
- Datasette 1.0 Canned Queries Broken HOT 3
- [Error] no such table: main.events HOT 1
- Cannot run datasette on 3.13 HOT 1
- Documentation Bug: URL Syntax at SQLite Full-Text Search with Wildcards
- FTS5 wildcard query does not work as Intended
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datasette.