Skip to content

Conversation

@rodrigozhou
Copy link
Contributor

What changed?
Pass pointer of slice element when calling convertValueExpr so it's converted in-place.

Why?
Query converter parses and changes expressions in-place, and all literal strings are expected to be converted to unsafeSQLString.
My previous PR #3950 refactoring the code broke tuple parsing.

How did you test it?
Writing unit tests.

Potential risks
No risks.

Is hotfix candidate?
Yes.

@rodrigozhou rodrigozhou requested a review from a team as a code owner February 18, 2023 07:41
Copy link
Member

@yiminc yiminc left a comment

Choose a reason for hiding this comment

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

can we add test coverage for this

@rodrigozhou
Copy link
Contributor Author

@yiminc Adding tests in this PR: #3972

@rodrigozhou rodrigozhou force-pushed the fix-sql-qc-value-expr branch from fbbd879 to 0087543 Compare February 21, 2023 22:47
@rodrigozhou rodrigozhou merged commit 3b71393 into temporalio:master Feb 21, 2023
@rodrigozhou rodrigozhou deleted the fix-sql-qc-value-expr branch February 21, 2023 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants