@JRubyMethod(alias = "reset_poll")
public IRubyObject connect_poll(ThreadContext context) {
try {
ConnectionState state = postgresqlConnection.connectPoll();
return context.runtime.newFixnum(state.ordinal());
} catch (Exception e) {
throw newPgError(context, e.getLocalizedMessage(), null, getClientEncodingAsJavaEncoding(context));
}
}