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

Explicitly cast char in the query builder #30471

Merged
merged 2 commits into from
Jan 20, 2022
Merged

Conversation

juliusknorr
Copy link
Member

@juliusknorr juliusknorr commented Jan 3, 2022

If a query with a cast method is built, it should also result in an actual CAST function call in the sql query, as that may allow the query to make proper use of indexes as found in nextcloud/deck#3497

Now ideally we should allow casting other types as well, however automatically mapping from the parameter type does not work globally for PARAM_INT as for the CAST there would be two separate types (UNSIGNED/SIGNED)

@juliusknorr juliusknorr added bug 3. to review Waiting for reviews labels Jan 3, 2022
@juliusknorr juliusknorr added this to the Nextcloud 24 milestone Jan 3, 2022
@juliusknorr juliusknorr requested review from nickvergessen, skjnldsv, a team and CarlSchwan and removed request for a team January 3, 2022 11:08
Copy link
Member

@nickvergessen nickvergessen left a comment

Choose a reason for hiding this comment

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

Looks fine apart from Carl's comments

Signed-off-by: Joas Schilling <[email protected]>
@juliusknorr
Copy link
Member Author

Thanks for the follow up fix 👍

@skjnldsv
Copy link
Member

Failure seems unrelated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants