sqlitebrowser / sqlitebrowser/sqlitebrowser

More of a question

Open
#3,066 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

linux ubuntu
Dominant language
C++
Stars
24.6k
Forks
2.4k
Avg merge
3d 49m
Merged PRs (30d)
3

Description

I have a query

SELECT "words"."word", count("files"."file") as "count" FROM "words", "phones", "files" WHERE "words"."word_id" = "phones"."word_id" AND "words"."word_id" = "files"."word_id" AND "phones"."phone1" = 'SH' GROUP BY "words"."word"

What is confusing me is if I run through ODBC and libreoffice base the above returns records and also fairly quickly.

If I open the database direct with sqlitebrowser on ubuntu 22.04 with a db created in python I get the following

Execution finished without errors.
Result: 0 rows returned in 24529ms
At line 1:
SELECT "words"."word", count("files"."file") as "count" FROM "words", "phones", "files" WHERE "words"."word_id" = "phones"."word_id" AND "words"."word_id" = "files"."word_id" AND "phones"."phone1" = 'SH' GROUP BY "words"."word"

1stly as seen its very slow but also how can it return zero rows when the exact same via ODBC does.
Maybe its the snap of sqlitebrowser on Ubuntu 22.04 as never had anything like this on 20.04

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

Start by reproducing the supplied SQL query in SQLiteBrowser on Ubuntu 22.04 using the database created in Python, then compare it with the ODBC and LibreOffice Base results. Done means identifying a reproducible cause for the differing rows or query time, or documenting the missing information needed to investigate it.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, sqlite
Domain
database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.