/*
 * call-seq:
 *    res.clear() -> nil
 *
 * Clears the PGresult object as the result of the query.
 */
static VALUE
pgresult_clear(VALUE self)
{
    PQclear(get_pgresult(self));
    DATA_PTR(self) = NULL;
    return Qnil;
}