change connection check symantecs

This commit is contained in:
Brian Lopez 2010-10-05 23:36:05 -07:00
parent 687487d5a5
commit 40f0cd012c
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ static ID sym_id, sym_version, sym_async, sym_symbolize_keys, sym_as, sym_array;
static ID intern_merge, intern_error_number_eql, intern_sql_state_eql;
#define REQUIRE_OPEN_DB(wrapper) \
if(wrapper->closed || !wrapper->client->net.vio) { \
if(wrapper->closed) { \
rb_raise(cMysql2Error, "closed MySQL connection"); \
return Qnil; \
}