Comments (9)
Can you provide a reproduction for this error?
from sqlite3.
I'm just doing an UPDATE using db.exec()
.
db.exec("UPDATE table SET column=value where id=?", id);
from sqlite3.
![image](https://private-user-images.githubusercontent.com/43033058/334532240-a5dc1d61-70df-462e-a639-337f9cd5ce96.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM3MDAwODMsIm5iZiI6MTcyMzY5OTc4MywicGF0aCI6Ii80MzAzMzA1OC8zMzQ1MzIyNDAtYTVkYzFkNjEtNzBkZi00NjJlLWE2MzktMzM3ZjljZDVjZTk2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE1VDA1Mjk0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVjYWRhNWYyNGY1NjlkMmMyYmU0OWQzMDg4YjFkOGYwYzgzOTc0M2FjYjkxY2Q1Y2E0MTJiZmIyNjUwZTU4OWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.irbYR31j6r21QvHr6ca8QmmGV_bEgn8dkHPyZBF4d3M)
Is there anything I'm missing?
from sqlite3.
Hmm, I wonder if its because I have mine wrapped in a Promise.all
?
from sqlite3.
Promise.all shouldn't be making a difference, it seems like it is failing when calling sqlite3_prepare_v2 which means there is likely something wrong with the query itself, but I don't see it... what if you change all bind parameters to ? instead of using :release_download_count ?
from sqlite3.
Did not notice that mistake, but that did not work either. Is there anything else I could provide that would help?
from sqlite3.
Is it possible for you to reproduce the problem in a small test script instead? We need to isolate the case
from sqlite3.
@DjDeveloperr Indeed it was a problem with my code. I was using the wrong table and closing the database before all the async calls were finished.
Thank you for your help!
from sqlite3.
No problem, glad you found the issue.
from sqlite3.
Related Issues (20)
- SQL statement not support chinese ? HOT 1
- Running in a Web Worker HOT 6
- Different API to node-sqlite3 HOT 5
- Error: Failed to load SQLite3 Dynamic Library HOT 3
- Permission denied when trying to only allow access to a certain ffi path HOT 1
- Error: no such table: fsdir HOT 3
- Compiled binary throws zlib dependency error HOT 10
- SQLITE_ENABLE_UPDATE_DELETE_LIMIT does not work on Linux HOT 2
- Allow configuring libsqlite location HOT 2
- bump sqlite bundled version to 3.45 HOT 1
- Extensions and Callbacks prevent using this library with macOS bundled dylib HOT 6
- "TypeError: Invalid ArrayBuffer pointer, pointer is null" while reading blob column HOT 8
- Standardize SQL database interface for TS/JS HOT 1
- `new Database()` in Web Worker freezing HOT 4
- How to do WHERE col in (:array) ?
- Question: How to use array parameters, OR alternative? HOT 2
- jsr can avoid native binary downloads HOT 1
- Change the Default Value for `int64` to `true` HOT 2
- got TS2344 [ERROR]: Type does not satisfy the constraint 'Record<string, unknown>' using stmt.get
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 sqlite3.