Comments (3)
Please try to simplify your example as much as possible, and in a reproducible code snippet (we're all volunteers here!)
from better-sqlite3.
When this column would start with a number it results in a SqliteError: unrecognized token error.
Did you try to just quote your identifiers? Just to make you statement more expressive. If the column starts with number, is it guaranteed to not just consist of digits but also has some other characters in its name?
SELECT
COUNT(*) AS "count"
FROM
"JOB"
WHERE
('61' IN (
WITH "split"("option", "csv") AS (
SELECT
'',
"<whatever column name>" ||','
FROM
"JOB" j2
WHERE
j2."id" = "JOB".id
UNION ALL
SELECT
substr("csv", 0, instr("csv", ',')),
substr("csv", instr("csv", ',') + 1)
FROM
"split"
WHERE
"csv" != ''
)
SELECT "option" FROM "split" WHERE "option" != ''
)
)
from better-sqlite3.
I am terribly sorry for wasting your time. There where 2 places in my code and I only changed one to include the column name in brackets. It was one of those days...
Very sorry and thanks a lot.
from better-sqlite3.
Related Issues (20)
- I can't install this package HOT 4
- BigInt values is queries incorrectly HOT 1
- Using drizzle-kit with better-sqlite3 in an electron application HOT 1
- Update SQLite to version 3.45.2 HOT 1
- 7.6.1 does not build on Linux HOT 4
- treatment of default column aliases when none are specified HOT 3
- nodejs v20.12.2 python.exe v3.12 VS2017/2022 don‘t’ install better-sqlite3, ask for help HOT 1
- Error: Error relocating /nodejs/app/node_modules/better-sqlite3/build/Release/better_sqlite3.node: _ZN2v89Exception10RangeErrorENS_5LocalINS_6StringEEE: symbol not found HOT 1
- Is there any solution to speed up the UPDATE command? HOT 1
- cannot start from a readonly path HOT 2
- Add prebuilds for Node.js 22 HOT 2
- Missing v10.0.0 prebuilt packages for darwin-x64 and linux-arm HOT 7
- Support parameters names in exactly the syntax in which they are used in the query HOT 2
- Better-sqlite3 not working on termux HOT 1
- Uncaught TypeError:Cannot read properties od null(reading 'access‘) at node_modules/better-sqlite3/lib/methods/backup.js HOT 1
- Prebuild compilation error on win32-arm64 + Electron v25 HOT 4
- vscode extension use better-sqlite3 error HOT 1
- No prebuilt binaries found (target=20.14.0 runtime=node arch=arm64 libc= platform=win32)
- error /Users/praveen36singhq/Desktop/nimbold/bit-chainit-id/node_modules/better-sqlite3: Command failed. HOT 2
- Install Script Fails HOT 1
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 better-sqlite3.