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

Cannot execute queries with JOIN operator #100

Open
Bas1950 opened this issue Feb 2, 2025 · 3 comments
Open

Cannot execute queries with JOIN operator #100

Bas1950 opened this issue Feb 2, 2025 · 3 comments

Comments

@Bas1950
Copy link

Bas1950 commented Feb 2, 2025

First of all thanks for the excellent work!
Now my problem is that I cannot get a query executing that has a JOIN. All simple queries run fine!

Example:
when I run Q1:
"SELECT AF.ROWID,AF.NAME FROM AIRFIELDS AF WHERE AF.ROWID = 30"
it calls the callback and returns the row

when I run Q2:
"SELECT AF.ROWID,AF.NAME FROM AIRFIELDS AF INNER JOIN AF_DIST AFD ON AF.ROWID = AFD.AF_ROWID WHERE AF.ROWID = 30"
it does not call the callback.

BTW Q2 runsfine in SQLiteStudio (3.4.13)

Please help

@siara-cc
Copy link
Owner

siara-cc commented Feb 3, 2025

Hi, Only reason I can think of is that the result set is quite large, even then it I think it should call back.

Can you try running the query on the sqlite_web_console example which is based on sqlite3_step instead of callback?

@Bas1950
Copy link
Author

Bas1950 commented Feb 3, 2025 via email

@siara-cc
Copy link
Owner

siara-cc commented Feb 3, 2025

@Bas1950 You might load the sqlite3_console example given with this lib and run different queries on different tables to figure out what the problem could be.

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

2 participants