sqlitebrowser / sqlitebrowser/sqlitebrowser
json_extract returns wrong values for REAL numbers
Open
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 24.6k
- Forks
- 2.4k
- Avg merge
- 3d 49m
- Merged PRs (30d)
- 3
Description
Details for the issue
What did you do?
- Open sqlitebrowser, any database
- Run
select json_extract('{"type":"Explicit","duration":2.133}', '$.duration')
What did you expect to see?
2.133
What did you see instead?
2.0
When doing the same in the sqlite3 shell, the returned value is as expected.
Useful extra information
What operating system are you using?
- Linux: ( _distro:Arch )
What is your DB4S version?
- 3.11.2
Did you also
- Try out the latest nightly version: https://github.com/sqlitebrowser/sqlitebrowser#nightly-builds
- Search for an existing similar issue: https://github.com/sqlitebrowser/sqlitebrowser/issues?utf8=%E2%9C%93&q=is%3Aissue%20
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in sqlitebrowser using the reported json_extract query, then compare its displayed result with the sqlite3 shell output. Trace the path that handles and displays REAL values; done means the application shows 2.133 rather than 2.0 for the reported query.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, sqlite
- Domain
- database
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100