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

Reorder overloads to give plural precedence over singular #24

Merged
merged 3 commits into from
Jan 22, 2024

Conversation

daogrady
Copy link
Contributor

It was reported that static selects and ones triggered with .from would behave slightly differently

SELECT(Books)  SELECT.from(Books)

This was caused by the ordering of overloads which would try to handle singulars before plurals. By reordering, we check if the passed type is an array first, and only then try to treat it as singular.

@daogrady daogrady merged commit e4e4db1 into main Jan 22, 2024
4 checks passed
@daogrady daogrady deleted the fix/incorrect-singular branch January 22, 2024 15:08
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