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 9d971db commit a2440a7Copy full SHA for a2440a7
ext/mysql2/client.c
@@ -1546,9 +1546,12 @@ void init_mysql2_client() {
1546
rb_const_set(cMysql2Client, rb_intern("SECURE_CONNECTION"), LONG2NUM(0));
1547
#endif
1548
1549
-#if MYSQL_VERSION_ID >= 40101
+#ifdef MYSQL_OPTION_MULTI_STATEMENTS_ON
1550
rb_const_set(cMysql2Client, rb_intern("OPTION_MULTI_STATEMENTS_ON"),
1551
LONG2NUM(MYSQL_OPTION_MULTI_STATEMENTS_ON));
1552
+#endif
1553
+
1554
+#ifdef MYSQL_OPTION_MULTI_STATEMENTS_OFF
1555
rb_const_set(cMysql2Client, rb_intern("OPTION_MULTI_STATEMENTS_OFF"),
1556
LONG2NUM(MYSQL_OPTION_MULTI_STATEMENTS_OFF));
1557
0 commit comments