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

Remove setConverted method usage #70

Merged
merged 1 commit into from
Oct 21, 2024
Merged

Remove setConverted method usage #70

merged 1 commit into from
Oct 21, 2024

Conversation

tomjw64
Copy link
Contributor

@tomjw64 tomjw64 commented Oct 18, 2024

Attempts resolution similar to the one in #27 but attempts to not run into the same types of failures seen previously. Digging into JOOQ's source, it looks like DSL::param returns a Val object, which inherits the implementation of method setConverted0 (which is called via the inherited method setConverted). This inherited setConverted0 method performs the conversion with getDataType().convert(value), instead of getType().cast(value) used in #27. This should hopefully get us the behavior we want without the whole mutation business.

#27 eventually was reverted in #28 due to failing builds because of failed casts. When I unreverted #27 to test it out, it also caused this more recent unit test to fail, also due to a failed cast.

After making this change I verified locally that both the newer unit test and the test referenced in the slack thread which led to the revert (I can provide more details about this in slack if desired, but I thought I'd leave the private links out of the public GitHub) no longer experience failed casting, so I think we may be more successful with this approach.

@tomjw64
Copy link
Contributor Author

tomjw64 commented Oct 21, 2024

Not sure why the version check is failing, but it seems to be a common problem in this repo.

@tomjw64
Copy link
Contributor Author

tomjw64 commented Oct 21, 2024

I think merging this in should be safe, since parent-pom points to 1.2 and after this is merged I can run an interproject build and try a use-parent-pom-branch mothership mission

@tomjw64 tomjw64 merged commit 947b745 into master Oct 21, 2024
1 check failed
@tomjw64 tomjw64 deleted the remove-setConverted branch October 21, 2024 20:25
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