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

Add support for nil parameters #47

Merged
merged 9 commits into from
Oct 15, 2021
Merged

Add support for nil parameters #47

merged 9 commits into from
Oct 15, 2021

Conversation

thelindat
Copy link
Member

No description provided.

- Throws an error if no params are defined when using named parameters, otherwise seems okay
- Remove extra _resolveNamedPlaceholders call from query

- Apply several patches by github/testn (pending merge); refer to pull requests #1408, #1402, #1401, #1400

- Optimise query.row call
- Cache lazy-evaluated field
- Optimise string decoding
- Avoid leaking TextRow/BinaryRow
- Throws a more specific error when receiving mismatch for column and value counts

- Resolves error when final parameter is nil
Assigning the entries to an array first permits comparing the lengths and setting undefined entries as null
I'd like some control over incoming changes to fit our use-case, and patch-package doesn't quite fulfil our needs.
- '...?, ?, ?', {nil, nil, nil} will set all placeholders to null
@thelindat thelindat merged commit ce87bc4 into main Oct 15, 2021
@thelindat thelindat deleted the whyisnil branch October 19, 2021 18:10
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