Fix invalid SQL syntax in clause_discussions_commented_by_user for empty result sets#459
Merged
netchampfaris merged 3 commits intodevelopfrom Apr 22, 2026
Merged
Conversation
Copilot
AI
changed the title
[WIP] Fix invalid SQL syntax in clause_discussions_commented_by_user
Fix invalid SQL syntax in clause_discussions_commented_by_user for empty result sets
Feb 1, 2026
…s with no comments Co-authored-by: netchampfaris <9355208+netchampfaris@users.noreply.github.com>
Co-authored-by: netchampfaris <9355208+netchampfaris@users.noreply.github.com>
Co-authored-by: netchampfaris <9355208+netchampfaris@users.noreply.github.com>
a36476b to
cf3648a
Compare
gameplan
|
||||||||||||||||||||||||||||||
| Project |
gameplan
|
| Branch Review |
copilot/fix-invalid-sql-syntax
|
| Run status |
|
| Run duration | 00m 54s |
| Commit |
|
| Committer | Copilot |
| View all properties for this run ↗︎ | |
| Test results | |
|---|---|
|
|
0
|
|
|
0
|
|
|
0
|
|
|
0
|
|
|
7
|
Upgrade your plan to view test results. | |
| View all changes introduced in this branch ↗︎ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
clause_discussions_commented_by_user()materializes comment lookups into a Python list, then passes it toDiscussion.name.isin(list). When a user has no comments, this generatesWHERE name IN ()— invalid SQL that triggers MariaDB error 1064.Changes
clause_discussions_commented_by_user()Before
After
This matches the pattern already used in
clause_discussions_bookmarked_by_user().Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.