/*
* call-seq:
* res.status()
*
* Returns the status of the query. The status value is one of:
* * +EMPTY_QUERY+
* * +COMMAND_OK+
* * +TUPLES_OK+
* * +COPY_OUT+
* * +COPY_IN+
*/
static VALUE
pgresult_status(obj)
VALUE obj;
{
return INT2NUM(PQresultStatus(get_pgresult(obj)));
}