Skip to content

Commit dcd5d12

Browse files
committed
Prefix the methods in client.c with rb_mysql_
1 parent 66db2dd commit dcd5d12

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/mysql2/client.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ static int opt_connect_attr_add_i(VALUE key, VALUE value, VALUE arg)
413413
}
414414
#endif
415415

416-
static VALUE rb_connect(VALUE self, VALUE user, VALUE pass, VALUE host, VALUE port, VALUE database, VALUE socket, VALUE flags, VALUE conn_attrs) {
416+
static VALUE rb_mysql_connect(VALUE self, VALUE user, VALUE pass, VALUE host, VALUE port, VALUE database, VALUE socket, VALUE flags, VALUE conn_attrs) {
417417
struct nogvl_connect_args args;
418418
time_t start_time, end_time, elapsed_time, connect_timeout;
419419
VALUE rv;
@@ -754,7 +754,7 @@ static VALUE rb_mysql_client_abandon_results(VALUE self) {
754754
* Query the database with +sql+, with optional +options+. For the possible
755755
* options, see default_query_options on the Mysql2::Client class.
756756
*/
757-
static VALUE rb_query(VALUE self, VALUE sql, VALUE current) {
757+
static VALUE rb_mysql_query(VALUE self, VALUE sql, VALUE current) {
758758
#ifndef _WIN32
759759
struct async_query_args async_args;
760760
#endif
@@ -1421,8 +1421,8 @@ void init_mysql2_client() {
14211421
rb_define_private_method(cMysql2Client, "ssl_mode=", rb_set_ssl_mode_option, 1);
14221422
rb_define_private_method(cMysql2Client, "enable_cleartext_plugin=", set_enable_cleartext_plugin, 1);
14231423
rb_define_private_method(cMysql2Client, "initialize_ext", initialize_ext, 0);
1424-
rb_define_private_method(cMysql2Client, "connect", rb_connect, 8);
1425-
rb_define_private_method(cMysql2Client, "_query", rb_query, 2);
1424+
rb_define_private_method(cMysql2Client, "connect", rb_mysql_connect, 8);
1425+
rb_define_private_method(cMysql2Client, "_query", rb_mysql_query, 2);
14261426

14271427
sym_id = ID2SYM(rb_intern("id"));
14281428
sym_version = ID2SYM(rb_intern("version"));

0 commit comments

Comments
 (0)