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 ed746a1 commit c25ff86Copy full SHA for c25ff86
ext/mysql2/client.c
@@ -881,14 +881,10 @@ static VALUE rb_mysql_client_server_info(VALUE self) {
881
* Return the file descriptor number for this client.
882
*/
883
static VALUE rb_mysql_client_socket(VALUE self) {
884
- GET_CLIENT(self);
885
#ifndef _WIN32
886
- {
887
- int fd_set_fd;
888
- REQUIRE_CONNECTED(wrapper);
889
- fd_set_fd = wrapper->client->net.fd;
890
- return INT2NUM(fd_set_fd);
891
- }
+ GET_CLIENT(self);
+ REQUIRE_CONNECTED(wrapper);
+ return INT2NUM(wrapper->client->net.fd);
892
#else
893
rb_raise(cMysql2Error, "Raw access to the mysql file descriptor isn't supported on Windows");
894
#endif
0 commit comments