Skip to content

Commit

Permalink
Workaround for the "too many rows" bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Jokler committed Jan 22, 2024
1 parent cd794b2 commit 63c69f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qw-site/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ WHERE account.name ILIKE $1",
.query_opt(
"
SELECT id FROM stream_session
WHERE account_id = $1 AND stop_time IS NULL",
WHERE account_id = $1 AND stop_time IS NULL
LIMIT 1",
&[&id],
)
.await?;
Expand Down

0 comments on commit 63c69f2

Please sign in to comment.