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

qe: fix prisma/14001 #3185

Merged
merged 1 commit into from Sep 15, 2022
Merged

qe: fix prisma/14001 #3185

merged 1 commit into from Sep 15, 2022

Conversation

tomhoule
Copy link
Contributor

@tomhoule tomhoule commented Sep 13, 2022

@tomhoule tomhoule added this to the 4.4.0 milestone Sep 13, 2022
@tomhoule tomhoule marked this pull request as ready for review September 13, 2022 13:26
// Issue: https://github.com/prisma/prisma/issues/14001
// Here we can assume the field name is ASCII, because it is the _client_ field name,
// not the mapped name.
left[..1].make_ascii_lowercase();
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry, I don't understand what left[..1] is doing here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It just makes the first character of the left String lowercase (it takes a mutable slice of just the first character, then makes the whole slice lowercase). I'll add a comment to make that less obscure.

Copy link
Contributor

Choose a reason for hiding this comment

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

ok thanks.

Copy link
Contributor

@garrensmith garrensmith left a comment

Choose a reason for hiding this comment

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

Could you ask someone from the typescript side to add a test for this in the client. Once that is done we can look to merge this.

@millsp
Copy link
Member

millsp commented Sep 14, 2022

Added the tests here prisma/prisma#15327

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.

invalid character in $let in $lookup pipeline when using cursor and order by query
3 participants