Skip to content

Commit a87b134

Browse files
committed
[fix] SQLAlchemy warning on subquery in IN clause
The follow warning message suggests that the IN clause should be given the query instead of the subquery object: codechecker_server/api/report_server.py:3554: SAWarning: Coercing Subquery object into a select() for use in IN(); please pass a select() construct explicitly
1 parent ee60f17 commit a87b134

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

web/server/codechecker_server/api/report_server.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3535,8 +3535,6 @@ def getRunHistoryTagCounts(self, run_ids, report_filter, cmp_data, limit,
35353535
tag_run_ids = tag_run_ids.filter(
35363536
RunHistory.run_id.in_(run_ids))
35373537

3538-
tag_run_ids = tag_run_ids.subquery()
3539-
35403538
report_cnt_q = session.query(Report.run_id,
35413539
Report.bug_id,
35423540
Report.detected_at,

0 commit comments

Comments
 (0)