Skip to content

Support zero-arg method calls in DIY SQL params#1444

Merged
qqxhb merged 1 commit intomasterfrom
fix/diy-method-call
Feb 28, 2026
Merged

Support zero-arg method calls in DIY SQL params#1444
qqxhb merged 1 commit intomasterfrom
fix/diy-method-call

Conversation

@qqxhb
Copy link
Member

@qqxhb qqxhb commented Feb 28, 2026

Summary\n- allow @obj.Method() in DIY SQL templates (zero-arg)\n- add coverage for method-call params\n\n## Testing\n- go test ./internal/generate

@propel-code-bot
Copy link

This PR extends SQL template parsing to accept zero-argument method calls like @obj.Method() when resolving parameters. It also adds a new test case covering method-call parameters in internal/generate/clause_test.go.

Affected Areas

internal/generate/interface.go
internal/generate/clause_test.go

This summary was automatically generated by @propel-code-bot

Copy link

@propel-code-bot propel-code-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, ship it! 🚢

Details
Why was this auto-approved?
APPROVED: No issues detected.

@qqxhb qqxhb merged commit 81d191e into master Feb 28, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant