We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6076b1c commit d71c24cCopy full SHA for d71c24c
atcoder-problems-backend/sql-client/src/submission_client.rs
@@ -121,7 +121,7 @@ impl SubmissionClient for PgPool {
121
r"
122
SELECT * FROM submissions
123
WHERE result = 'AC'
124
- AND LOWER(user_id) = ANY($1)
+ AND LOWER(user_id) = ANY(SELECT LOWER(u) FROM UNNEST($1) AS a(u))
125
",
126
)
127
.bind(user_ids)
@@ -163,7 +163,7 @@ impl SubmissionClient for PgPool {
163
} => sqlx::query_as(
164
165
166
- WHERE LOWER(user_id) = ANY($1)
+ WHERE LOWER(user_id) = ANY(SELECT LOWER(u) FROM UNNEST($1) AS a(u))
167
AND problem_id = ANY($2)
168
AND epoch_second >= $3
169
AND epoch_second <= $4
0 commit comments