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

Fix budgeted_count subquery #333

Merged
merged 2 commits into from
Oct 28, 2024
Merged

Conversation

gileri
Copy link
Contributor

@gileri gileri commented Oct 20, 2024

Fix the following error :

oct. 20 23:52:11 ub4-nixos postgres[1856]: [1856] STATEMENT:  SELECT count(*) as count, 0 as cost, false as budget_exceeded from (SELECT * FROM "torrent_files" WHERE torrent_files.info_hash IN (DECODE('6c0ec56bb5496ba70ab0dd63dac6090408bf90c9', 'hex')))
oct. 20 23:52:11 ub4-nixos postgres[1856]: [1856] HINT:  For example, FROM (SELECT ...) [AS] foo.
oct. 20 23:52:11 ub4-nixos postgres[1856]: [1856] ERROR:  subquery in FROM must have an alias at character 68

@mgdigital
Copy link
Collaborator

Thanks @gileri !

@mgdigital mgdigital merged commit c5461a0 into bitmagnet-io:main Oct 28, 2024
6 checks passed
@gileri gileri deleted the fix-budget-subquery branch October 28, 2024 16:33
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

Successfully merging this pull request may close these issues.

2 participants