/* * 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; { int status; status = PQresultStatus(get_pgresult(obj)); return INT2NUM(status); }