From 951fa1d2729c898376a6f73c6ab29e1c7299eafe Mon Sep 17 00:00:00 2001 From: Lourens Naude Date: Sat, 6 Sep 2008 00:01:09 +0100 Subject: [PATCH] Access the file descriptor directly from the MySQL net structure --- ext/mysql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/mysql.c b/ext/mysql.c index eba94e2..95f95fe 100644 --- a/ext/mysql.c +++ b/ext/mysql.c @@ -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) */