-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
fetch data from sqllite module give me 'ERR_SQLITE_ERROR', #55577
Comments
That seems to be the problem? |
The table in database is exsiten |
Not according to SQLite 😄 |
@cjihrig nice😀 |
@cjihrig could problem because of windows os? |
If you load the database in a seperate client, is the |
Windows is supported and tested, but it's possible. What if you update |
it solves the problem thanks |
Hi @sharafabacery, I wanted to look into this issue but couldn't reproduce it (I tried Node 22.10.0, and 23.1.0). I used the code you've provided in the description and the attached database. Could you please try to run the code with the attached db? |
when I get back to code last week I change the path to |
Since this seems to be working now, I'll close the issue. Feel free to reopen if needed. |
Version
v22.10.0
Platform
Subsystem
No response
What steps will reproduce the bug?
`import path from 'node:path';
import {DatabaseSync} from 'node:sqlite'
export class Connectdb{
}
`
How often does it reproduce? Is there a required condition?
always it produce
What is the expected behavior? Why is that the expected behavior?
get data I need
What do you see instead?
`const query = this.database.prepare('SELECT * FROM "titles" ');
^
Error: no such table: titles
{
code: 'ERR_SQLITE_ERROR',
errcode: 1,
errstr: 'SQL logic error'
}
`
and titles found in the database
Additional information
No response
The text was updated successfully, but these errors were encountered: