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 1892313 commit c93aaf8Copy full SHA for c93aaf8
ext/mysql2/client.c
@@ -907,14 +907,10 @@ static VALUE rb_mysql_client_server_info(VALUE self) {
907
* Return the file descriptor number for this client.
908
*/
909
static VALUE rb_mysql_client_socket(VALUE self) {
910
- GET_CLIENT(self);
911
#ifndef _WIN32
912
- {
913
- int fd_set_fd;
914
- REQUIRE_CONNECTED(wrapper);
915
- fd_set_fd = wrapper->client->net.fd;
916
- return INT2NUM(fd_set_fd);
917
- }
+ GET_CLIENT(self);
+ REQUIRE_CONNECTED(wrapper);
+ return INT2NUM(wrapper->client->net.fd);
918
#else
919
rb_raise(cMysql2Error, "Raw access to the mysql file descriptor isn't supported on Windows");
920
#endif
0 commit comments