/*
* call-seq:
* res.result_status() -> Fixnum
*
* Returns the status of the query. The status value is one of:
* * +PGRES_EMPTY_QUERY+
* * +PGRES_COMMAND_OK+
* * +PGRES_TUPLES_OK+
* * +PGRES_COPY_OUT+
* * +PGRES_COPY_IN+
* * +PGRES_BAD_RESPONSE+
* * +PGRES_NONFATAL_ERROR+
* * +PGRES_FATAL_ERROR+
*/
static VALUE
pgresult_result_status(VALUE self)
{
return INT2FIX(PQresultStatus(get_pgresult(self)));
}