Skip to content
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

Bug Report: SQLite Error in Notes Query #7301

Open
hpnightowl opened this issue Jan 10, 2025 · 0 comments
Open

Bug Report: SQLite Error in Notes Query #7301

hpnightowl opened this issue Jan 10, 2025 · 0 comments

Comments

@hpnightowl
Copy link

What happened?

Image

SQLite query error occurs when attempting to count notes, specifically with the IN clause parameter binding.

Steps to reproduce the problem

  • Open NotesNook Desktop
  • Attempt to view/filter notes (specific action that triggers the count query)
  • Observe SQLite error in console

Version

3.0.23-123705f-desktop

Platform/OS

Windows

Relevant log output

SqliteError: near "?": syntax error (query: select count("id") as "count" from "notes" where ("dateDeleted" is null or "dateDeleted" == 0) and ("deleted" is null or "deleted" == 0) and "id" in ?)
SqliteError: near "?": syntax error (query: select count("id") as "count" from "notes" where ("dateDeleted" is null or "dateDeleted" == 0) and ("deleted" is null or "deleted" == 0) and "id" in ?)
    at Database.prepare (C:\Users\hpal\AppData\Local\Programs\@notesnookdesktop\resources\app\node_modules\better-sqlite3-multiple-ciphers\lib\methods\wrappers.js:5:21)
    at z.<anonymous> (https://app.notesnook.com/assets/sqlite.worker.desktop-CP9v2gK6.js:1:884)
    at Generator.next (<anonymous>)
    at https://app.notesnook.com/assets/sqlite.worker.desktop-CP9v2gK6.js:1:298
    at new Promise (<anonymous>)
    at g (https://app.notesnook.com/assets/sqlite.worker.desktop-CP9v2gK6.js:1:95)
    at z.prepare (https://app.notesnook.com/assets/sqlite.worker.desktop-CP9v2gK6.js:1:701)
    at z.<anonymous> (https://app.notesnook.com/assets/sqlite.worker.desktop-CP9v2gK6.js:1:1312)
    at Generator.next (<anonymous>)
    at https://app.notesnook.com/assets/sqlite.worker.desktop-CP9v2gK6.js:1:298
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant