Skip to content

Commit

Permalink
Enable MULTI_RESULTS when MULTI_STATEMENTS is enabled
Browse files Browse the repository at this point in the history
To achieve as much parity as possible, let's enable MULTI_RESULTS
capability when MULTI_STATEMENTS is used. This is inline with the
assumptions the MySQL Client makes, as one implicates the other.
  • Loading branch information
paarthmadan committed Mar 10, 2023
1 parent 6e2ef78 commit 5b8c869
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contrib/ruby/ext/trilogy-ruby/cext.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ static VALUE rb_trilogy_initialize(VALUE self, VALUE opts)

if (RTEST(rb_hash_aref(opts, ID2SYM(id_multi_statement)))) {
connopt.flags |= TRILOGY_CAPABILITIES_MULTI_STATEMENTS;
connopt.flags |= TRILOGY_CAPABILITIES_MULTI_RESULTS;
}

if ((val = rb_hash_aref(opts, ID2SYM(id_ssl_ca))) != Qnil) {
Expand Down

0 comments on commit 5b8c869

Please sign in to comment.