Skip to content
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

engine/generate: fix repeated numbered arg typecast #1076

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

jchappelow
Copy link
Member

@jchappelow jchappelow commented Nov 11, 2024

This fixes a bug in engine/generate.(*sqlGenerator).VisitExpressionVariable where an explicit typecast would be lost where:

  1. there are multiple occurrences of an ordered parameter in an action body
  2. any of the occurrences other than the first have an explicit typecast

engine/generate: TestGenerateActionBody
@jchappelow jchappelow added the backport-to-release-v0.8 backport to release-v0.8 branch label Nov 11, 2024
@brennanjl brennanjl merged commit 2f8259d into kwilteam:main Nov 12, 2024
2 checks passed
brennanjl pushed a commit that referenced this pull request Nov 12, 2024
brennanjl pushed a commit that referenced this pull request Nov 12, 2024
brennanjl pushed a commit that referenced this pull request Nov 12, 2024
brennanjl added a commit that referenced this pull request Nov 12, 2024
engine/generate: TestGenerateActionBody

Co-authored-by: jchappelow <[email protected]>
jchappelow added a commit that referenced this pull request Nov 18, 2024
engine/generate: TestGenerateActionBody
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-release-v0.8 backport to release-v0.8 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants