Skip to content

Comments

Fix alias source empty response bug#10

Merged
nkphysics merged 3 commits intomasterfrom
fix-same-source-empty-response-bug
Oct 1, 2025
Merged

Fix alias source empty response bug#10
nkphysics merged 3 commits intomasterfrom
fix-same-source-empty-response-bug

Conversation

@nkphysics
Copy link
Owner

This PR will resolve #9 detailing a bug when querying by object for the same source with different alias'.

This problem emerges due to the queries being recognized as different, however since the responses are identified as the same, the link between the query and the response wouldn't get established in the pivot table, so as a result there would be no new rows associated with the query, thus an empty repsonse.

To fix this I created SQLiteDB._check_query_response_link() and included its use in SQLiteDB.fetch_sync() with some extra logic to ensure that the link between query and response id's exists.

@nkphysics nkphysics self-assigned this Sep 30, 2025
@nkphysics nkphysics added the bug Something isn't working label Sep 30, 2025
@nkphysics nkphysics merged commit a89d6f8 into master Oct 1, 2025
4 checks passed
@nkphysics nkphysics deleted the fix-same-source-empty-response-bug branch October 1, 2025 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: Different queries which yield the same response provide empty table after the initial query

1 participant