File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1546,12 +1546,12 @@ void init_mysql2_client() {
1546
1546
rb_const_set (cMysql2Client , rb_intern ("SECURE_CONNECTION" ), LONG2NUM (0 ));
1547
1547
#endif
1548
1548
1549
- #ifdef MYSQL_OPTION_MULTI_STATEMENTS_ON
1549
+ #ifdef HAVE_CONST_MYSQL_OPTION_MULTI_STATEMENTS_ON
1550
1550
rb_const_set (cMysql2Client , rb_intern ("OPTION_MULTI_STATEMENTS_ON" ),
1551
1551
LONG2NUM (MYSQL_OPTION_MULTI_STATEMENTS_ON ));
1552
1552
#endif
1553
1553
1554
- #ifdef MYSQL_OPTION_MULTI_STATEMENTS_OFF
1554
+ #ifdef HAVE_CONST_MYSQL_OPTION_MULTI_STATEMENTS_OFF
1555
1555
rb_const_set (cMysql2Client , rb_intern ("OPTION_MULTI_STATEMENTS_OFF" ),
1556
1556
LONG2NUM (MYSQL_OPTION_MULTI_STATEMENTS_OFF ));
1557
1557
#endif
Original file line number Diff line number Diff line change @@ -111,6 +111,8 @@ def add_ssl_defines(header)
111
111
have_const ( 'SERVER_QUERY_NO_GOOD_INDEX_USED' , mysql_h )
112
112
have_const ( 'SERVER_QUERY_NO_INDEX_USED' , mysql_h )
113
113
have_const ( 'SERVER_QUERY_WAS_SLOW' , mysql_h )
114
+ have_const ( 'MYSQL_OPTION_MULTI_STATEMENTS_ON' , mysql_h )
115
+ have_const ( 'MYSQL_OPTION_MULTI_STATEMENTS_OFF' , mysql_h )
114
116
115
117
# my_bool is replaced by C99 bool in MySQL 8.0, but we want
116
118
# to retain compatibility with the typedef in earlier MySQLs.
You can’t perform that action at this time.
0 commit comments