re : Casting macaddr types to text - Mailing list pgsql-general

From
Subject re : Casting macaddr types to text
Date
Msg-id 200101291655.f0TGtSq08071@mail.postgresql.org
Whole thread Raw
List pgsql-general
Hi,

Try this function ( with psql ) and redo your query.
This function allow cast beetween macaddr and text

CREATE FUNCTION text(macaddr) returns text AS '
BEGIN
        return $1;
END;
' LANGUAGE 'plpgsql';

Cheers,

PEJAC Pascal

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Calculated values
Next
From: John Frank
Date:
Subject: Re: perl use of cursors and fetch forward