Permalink
Browse files

Access the file descriptor directly from the MySQL net structure

  • Loading branch information...
1 parent 19b4b10 commit 951fa1d2729c898376a6f73c6ab29e1c7299eafe @methodmissing methodmissing committed Sep 5, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext/mysql.c
View
@@ -753,7 +753,7 @@ static VALUE query(VALUE obj, VALUE sql)
static VALUE socket(VALUE obj)
{
MYSQL* m = GetHandler(obj);
- return INT2NUM(vio_fd(m->net.vio));
+ return INT2NUM(m->net.fd);
}
/* send_query(sql,timeout=nil) */

0 comments on commit 951fa1d

Please sign in to comment.