Access the file descriptor directly from the MySQL net structure

This commit is contained in:
Lourens Naude 2008-09-06 00:01:09 +01:00
parent 19b4b10d27
commit 951fa1d272

View File

@ -753,7 +753,7 @@ static VALUE query(VALUE obj, VALUE sql)
static VALUE socket(VALUE obj) static VALUE socket(VALUE obj)
{ {
MYSQL* m = GetHandler(obj); MYSQL* m = GetHandler(obj);
return INT2NUM(vio_fd(m->net.vio)); return INT2NUM(m->net.fd);
} }
/* send_query(sql,timeout=nil) */ /* send_query(sql,timeout=nil) */