Skip to content

Commit

Permalink
Fix for MariaDB 10.2 which does not define CLIENT_LONG_PASSWORD
Browse files Browse the repository at this point in the history
  • Loading branch information
sodabrew committed Jun 30, 2017
1 parent ab490a3 commit b44cb3d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ext/mysql2/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -1448,6 +1448,10 @@ void init_mysql2_client() {
#ifdef CLIENT_LONG_PASSWORD
rb_const_set(cMysql2Client, rb_intern("LONG_PASSWORD"),
LONG2NUM(CLIENT_LONG_PASSWORD));
#else
/* HACK because MariaDB 10.2 no longer defines this constant,
* but we're using it in our default connection flags. */
rb_const_set(cMysql2Client, rb_intern("LONG_PASSWORD"), INT2NUM(0));
#endif

#ifdef CLIENT_FOUND_ROWS
Expand Down

0 comments on commit b44cb3d

Please sign in to comment.