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

No need to accept multi_result as conn option in Ruby binding #68

Merged
merged 1 commit into from
Apr 20, 2023

Conversation

adrianna-chang-shopify
Copy link
Collaborator

@adrianna-chang-shopify adrianna-chang-shopify commented Apr 17, 2023

Follow up to #57

We added the ability to pass :multi_result as a connection option to the client in the Ruby binding, but the MULTI_RESULTS flag is set by default so this isn't necessary. (I made the changes to the Ruby binding before we decided to set the flag as part of the default bitmask).

Might as well clean this code up in the C-ext :)

Copy link
Contributor

@paarthmadan paarthmadan left a comment

Choose a reason for hiding this comment

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

Makes sense to me, always better to reduce the number of options, especially if this is a default (and expected to always be enabled)

We added the ability to pass `:multi_result` as a connection option to
the client in the Ruby binding, but the MULTI_RESULTS flag is set by
default so this isn't necessary.
@adrianna-chang-shopify adrianna-chang-shopify merged commit 6dd14cc into main Apr 20, 2023
@adrianna-chang-shopify adrianna-chang-shopify deleted the ac-multi-results-cleanup branch April 20, 2023 18:36
composerinteralia added a commit that referenced this pull request Apr 26, 2023
#57 set multi-results as a
default.

To safely upgrade to the latest version of Trilogy, we want to turn that
off for now, and then turn it on one cluster at a time.

This commit removes the default from the C library and into the Ruby C
extension so we can disable it as needed. (We had an option to enable
multi results, but removed it in
#68 because the option was always
a no-op. This PR adds the option back, with some modification).
luanzeba added a commit that referenced this pull request May 17, 2023
#57 set multi-results capability
as a default.

To safely upgrade to the latest version of Trilogy, we want to turn that
option off and then turn it on one cluster at a time.

This commit removes the multi-results capability default from
TRILOGY_CAPABILITIES_CLIENT but will still set it unless the client is
initialized with `multi_results: false`.

We had an option to enable
multi results, but removed it in
#68 because the option was always
a no-op. This PR adds the option back, with some modification.

Co-authored-by: Daniel Colson <composerinteralia@github.com>
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.

3 participants