File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 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() {
15461546 rb_const_set (cMysql2Client , rb_intern ("SECURE_CONNECTION" ), LONG2NUM (0 ));
15471547#endif
15481548
1549- #ifdef MYSQL_OPTION_MULTI_STATEMENTS_ON
1549+ #ifdef HAVE_CONST_MYSQL_OPTION_MULTI_STATEMENTS_ON
15501550 rb_const_set (cMysql2Client , rb_intern ("OPTION_MULTI_STATEMENTS_ON" ),
15511551 LONG2NUM (MYSQL_OPTION_MULTI_STATEMENTS_ON ));
15521552#endif
15531553
1554- #ifdef MYSQL_OPTION_MULTI_STATEMENTS_OFF
1554+ #ifdef HAVE_CONST_MYSQL_OPTION_MULTI_STATEMENTS_OFF
15551555 rb_const_set (cMysql2Client , rb_intern ("OPTION_MULTI_STATEMENTS_OFF" ),
15561556 LONG2NUM (MYSQL_OPTION_MULTI_STATEMENTS_OFF ));
15571557#endif
Original file line number Diff line number Diff line change @@ -111,6 +111,8 @@ def add_ssl_defines(header)
111111have_const ( 'SERVER_QUERY_NO_GOOD_INDEX_USED' , mysql_h )
112112have_const ( 'SERVER_QUERY_NO_INDEX_USED' , mysql_h )
113113have_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 )
114116
115117# my_bool is replaced by C99 bool in MySQL 8.0, but we want
116118# to retain compatibility with the typedef in earlier MySQLs.
You can’t perform that action at this time.
0 commit comments