8000 Dynamic query by jwc-clinnection · Pull Request #2343 · sqlc-dev/sqlc · GitHub
[go: up one dir, main page]

Skip to content

Dynamic query #2343

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

Closed
wants to merge 6 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove debugging code
  • Loading branch information
jwc-clinnection committed Jun 20, 2023
commit 0a8df64ad33e33fb45e4bfc0abc95cc01b248697
2 changes: 0 additions & 2 deletions internal/codegen/golang/result.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,10 @@ func buildQueries(req *plugin.CodeGenRequest, structs []Struct) ([]Query, error)
for _, p := range query.Params {
number := int(p.Number)
if p.Column.Name == "filter" && p.Column.Table == nil {
fmt.Println("Filter found:", number)
gq.FilterNumber = number
filterNumber = number
}
if p.Column.Name == "orderby" && p.Column.Table == nil {
fmt.Println("OrderBy found:", p.Number)
gq.OrderByNumber = number
orderByNumber = number
}
Expand Down
0