sqlitebrowser / sqlitebrowser/sqlitebrowser

json_extract returns wrong values for REAL numbers

Open
#2,094 4 comments 0 reactions 0 assignees View on GitHub

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?
  1. Open sqlitebrowser, any database
  2. 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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.