Skip to content

Commit

Permalink
Style nit fix for #943
Browse files Browse the repository at this point in the history
  • Loading branch information
sodabrew committed Mar 19, 2018
1 parent 86c352d commit b3fe727
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/mysql2/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -1546,12 +1546,12 @@ void init_mysql2_client() {
rb_const_set(cMysql2Client, rb_intern("SECURE_CONNECTION"), LONG2NUM(0));
#endif

#ifdef MYSQL_OPTION_MULTI_STATEMENTS_ON
#ifdef HAVE_CONST_MYSQL_OPTION_MULTI_STATEMENTS_ON
rb_const_set(cMysql2Client, rb_intern("OPTION_MULTI_STATEMENTS_ON"),
LONG2NUM(MYSQL_OPTION_MULTI_STATEMENTS_ON));
#endif

#ifdef MYSQL_OPTION_MULTI_STATEMENTS_OFF
#ifdef HAVE_CONST_MYSQL_OPTION_MULTI_STATEMENTS_OFF
rb_const_set(cMysql2Client, rb_intern("OPTION_MULTI_STATEMENTS_OFF"),
LONG2NUM(MYSQL_OPTION_MULTI_STATEMENTS_OFF));
#endif
Expand Down
2 changes: 2 additions & 0 deletions ext/mysql2/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ def add_ssl_defines(header)
have_const('SERVER_QUERY_NO_GOOD_INDEX_USED', mysql_h)
have_const('SERVER_QUERY_NO_INDEX_USED', mysql_h)
have_const('SERVER_QUERY_WAS_SLOW', mysql_h)
have_const('MYSQL_OPTION_MULTI_STATEMENTS_ON', mysql_h)
have_const('MYSQL_OPTION_MULTI_STATEMENTS_OFF', mysql_h)

# my_bool is replaced by C99 bool in MySQL 8.0, but we want
# to retain compatibility with the typedef in earlier MySQLs.
Expand Down

0 comments on commit b3fe727

Please sign in to comment.