We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3026da1 commit 6784e11Copy full SHA for 6784e11
ext/mysql2/client.c
@@ -124,8 +124,8 @@ static VALUE rb_set_ssl_mode_option(VALUE self, VALUE setting) {
124
#ifdef HAVE_CONST_MYSQL_OPT_SSL_ENFORCE
125
GET_CLIENT(self);
126
int val = NUM2INT( setting );
127
- // Either MySQL 5.7.3 - 5.7.10, or Connector/C 6.1.3 - 6.1.x
128
- if ((version >= 50703 && version < 50711) || (version >= 60103 && version < 60200)) {
+ // Either MySQL 5.7.3 - 5.7.10, or Connector/C 6.1.3 - 6.1.x, or MariaDB 10.x
+ if ((version >= 50703 && version < 50711) || (version >= 60103 && version < 60200) || (version >= 100000 && version < 110000)) {
129
if (val == SSL_MODE_DISABLED || val == SSL_MODE_REQUIRED) {
130
my_bool b = ( val == SSL_MODE_REQUIRED );
131
int result = mysql_options( wrapper->client, MYSQL_OPT_SSL_ENFORCE, &b );
0 commit comments